掲示板
Faces Portlet with .xhtml and .jsp
11年前 に Prathamesh Gaddam によって更新されました。
Faces Portlet with .xhtml and .jsp
New Member 投稿: 7 参加年月日: 11/11/07 最新の投稿
Hi,
Using seam framework we worked on rendering *.jsp within facelets using <iframe>. Is it feasible to display/render *.jsp using FacesPortlet / facelets? The requirement is to merge the openxava 4.4 and jsf 2.0 application/projects. The requirement is somewhat similar to link
Any related guidance/clarification will be helpful.
Thank you in advance.
Regards
Environment:
- Liferay 6.0 with Tomcat Bundle
- OpenXava 4.4.1
- Eclipse IDE
Using seam framework we worked on rendering *.jsp within facelets using <iframe>. Is it feasible to display/render *.jsp using FacesPortlet / facelets? The requirement is to merge the openxava 4.4 and jsf 2.0 application/projects. The requirement is somewhat similar to link
Any related guidance/clarification will be helpful.
Thank you in advance.
Regards
Environment:
- Liferay 6.0 with Tomcat Bundle
- OpenXava 4.4.1
- Eclipse IDE
11年前 に David H Nebinger によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
Not sure what you're actually asking for here...
You can create portlets based upon facelets (.xhtml) directly. You could also use JSP for your rendering method.
You can create portlets based upon facelets (.xhtml) directly. You could also use JSP for your rendering method.
11年前 に Prathamesh Gaddam によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
New Member 投稿: 7 参加年月日: 11/11/07 最新の投稿
Let me put our requirement in another words. We need to use *.jsp and *.xhtml rendered through single JSF portlet. Example. Menu is built using JSF component with facelet and on select/click need to load/render either JSF(*.xhtml) or JSP (*.jsp). All these to be shown within single portlet.
11年前 に Juan Gonzalez P によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Guess this isn't possible. AFAIK you have to choose between Facelets renderer or JSP per webapp.
Perhaps you can create your own renderer and customize its behaviour....
Perhaps you can create your own renderer and customize its behaviour....
11年前 に Neil Griffin によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Are your JSPs JSF views or do they simply render an HTML fragment?
11年前 に Prathamesh Gaddam によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
New Member 投稿: 7 参加年月日: 11/11/07 最新の投稿
The JSPs are towards OpenXava without any JSF stuff.
Say, part of the application is implemented using Openxava portlets and other using JSF( & facelets) within single portlet.
Now we need a common menu/navigation with can invoke Openxava portlets each on community page OR render an view/xhtml in JSF portlet.
Let me know for any further details.
Say, part of the application is implemented using Openxava portlets and other using JSF( & facelets) within single portlet.
Now we need a common menu/navigation with can invoke Openxava portlets each on community page OR render an view/xhtml in JSF portlet.
Let me know for any further details.
11年前 に Neil Griffin によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
If I understand your requirements correctly, then I think the answer is yes. You can try this by putting your OpenXava portlets on a separate/hidden portal page, and using an <iframe> inside your Facelet XHTML view that invokes the portlet with the "exclusive" WindowState, which is a vendor-specific feature of Liferay Portal.
For example:
For example:
<iframe src="http://localhost:8080/web/guest/myhiddenportalpage?p_p_id=openxavademo_WAR_myportlet&p_p_lifecycle=0&p_p_state=exclusive&p_p_state_rcv=1&p_p_col_id=column-1&p_p_col_count=1"></iframe>
11年前 に Prathamesh Gaddam によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
New Member 投稿: 7 参加年月日: 11/11/07 最新の投稿
Thank you, Neil !
Was not aware how to deal with url in liferay. Now it is working with some modifications. The way we used it as:
Template.xhtml
Was not aware how to deal with url in liferay. Now it is working with some modifications. The way we used it as:
Template.xhtml
<iframe width="100%" height="400px" src="#{liferay.portalURL.concat('/widget/group/sfc/hidden/-/Addresses_WAR_oneportlet')}"></iframe> </code></pre><br /><br />The url fragments describes as:<br /><strong>sfc</strong> - community<br /><strong>hidden</strong> - hidden page<br /><strong>/-/</strong> - ?<br /><strong>Addresses_WAR_oneportlet</strong> - openxava portlet add to hidden page<br /><br />Note: <br /> The url pattern was copied from the &#39;Manage Page&#39; option from liferay from the snippet/script generated to share the portlet/widget.<br /> We have merged the folder structure of the OpenXava and Liferay JSF plugins towards development and/or deployment.
11年前 に Neil Griffin によって更新されました。
RE: Faces Portlet with .xhtml and .jsp
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
My pleasure Prathamesh -- thanks for using Liferay.