Foren
JSF portlet
Rose Kad, geändert vor 13 Jahren.
JSF portlet
New Member Beiträge: 6 Beitrittsdatum: 13.05.10 Neueste Beiträge
We are using liferay 5.2.3 portal.
I have developed one JSF portlet with edit preferences option which is deployed and get running.
This portlet is configured for the admin users only.
view.jsp : displays list of names of the files.
filecontent.jsp: displays content of each file (this JSP will be called from view.jsp)
filecontent.jsp has something like this to display imageicon as a link:
so that if I click on it it should open in the new window.
<h:outputLink value="#{searchcontent.url}" target="_blank">
<h:graphicImage alt="jsf-alt33" id="img21" height="50" width="50" value=" {searchcontent.imagepath}" rendered="#{searchcontent.template.imagepath!=null}"/>
</h:outputLink>
(Have "Back" command button)
Now I can see this 50x50 image icon. If I click on this icon , image will be opened in the new tab in firefox, new window in IE.
If I click on the back button in the filecontent.jsp, the user is getting logged out from liferay. I had to relogin. This is happening for each image for the first time it is clicked.
the images are actually at another server:
so my searchcontent.url is http://localhost:18085/<imagepath>
Did anybody ever come across this situation?
Thanks in advance.
I have developed one JSF portlet with edit preferences option which is deployed and get running.
This portlet is configured for the admin users only.
view.jsp : displays list of names of the files.
filecontent.jsp: displays content of each file (this JSP will be called from view.jsp)
filecontent.jsp has something like this to display imageicon as a link:
so that if I click on it it should open in the new window.
<h:outputLink value="#{searchcontent.url}" target="_blank">
<h:graphicImage alt="jsf-alt33" id="img21" height="50" width="50" value=" {searchcontent.imagepath}" rendered="#{searchcontent.template.imagepath!=null}"/>
</h:outputLink>
(Have "Back" command button)
Now I can see this 50x50 image icon. If I click on this icon , image will be opened in the new tab in firefox, new window in IE.
If I click on the back button in the filecontent.jsp, the user is getting logged out from liferay. I had to relogin. This is happening for each image for the first time it is clicked.
the images are actually at another server:
so my searchcontent.url is http://localhost:18085/<imagepath>
Did anybody ever come across this situation?
Thanks in advance.