You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by BaTien Duong <ba...@dbgroups.com> on 2004/12/06 22:54:36 UTC
Jsf and tiles
Greetings:
Please either confirm and/or correct following proposed solution for
Myfaces tiles and save me some time.
Issue: isert a tile definition and attribute in a pure jsf page.
First passed solution: A hybrid of Jsp programming and Jsf. I was able
to create a tile page layout in pure jsf except in the portal columns i
used old fashion jsp programming to insert a list of portletDefinitions
which is extracted from jsf ValueBinding of its managed beans.
The problem with the above approach is that it works well only with html
portlet fragments. When a portlet fragment has some jsf elements, the
page rendering has conflict of simultaneous rendering between jsf and jsp.
Proposed solution: use <h:dataTable ...> to render the portletList and
extract the item portletDefinition as following:
<h:dataTable var="portlet"
value="#{portalTabbedBean.selectedPane.serviceListL}" >
<f:verbatim>
<h:outputText
value="<tiles:insert name=#{portlet.portletDefinition}
flush='false' /> " />
</f:verbatim>
</h:dataTable>
Note on the name of tiles:insert element, which i just extracted the
definition as a jsp variable to make it work in the first hybrid solution:
<tiles:insert name="<%=portletDefinition%>" flush="false" />
Thanks
BaTien
DBGROUPS
how to exclude paths when using tiles
Posted by Catalin Kormos <ca...@yahoo.com>.
Hi,
There are some paths to which my web application gets
redirected (after an action outcome) that i don't need
to be interpred by the JspTilesViewHandlerImpl. I
guess when using the TilesServlet one can map only the
paths which need interpretation. How can this be
accomplished when using the JspTilesViewHandlerImpl?
Thanks
Regards
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
Re: how to exclude paths when using tiles?
Posted by Catalin Kormos <ca...@yahoo.com>.
Never mind; for every viewId that shouldn't be placed
into a template the "path" attribute value cand used
to tell that the viewId is an actual path...
--- Catalin Kormos <ca...@yahoo.com> wrote:
> Hi,
>
> There are some paths to which my web application
> gets
> redirected (after an action outcome) that i don't
> need
> to be interpred by the JspTilesViewHandlerImpl. I
> guess when using the TilesServlet one can map only
> the
> paths which need interpretation. How can this be
> accomplished when using the JspTilesViewHandlerImpl?
> Thanks
>
> Regards
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage
> less.
> http://info.mail.yahoo.com/mail_250
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
how to exclude paths when using tiles?
Posted by Catalin Kormos <ca...@yahoo.com>.
Hi,
There are some paths to which my web application gets
redirected (after an action outcome) that i don't need
to be interpred by the JspTilesViewHandlerImpl. I
guess when using the TilesServlet one can map only the
paths which need interpretation. How can this be
accomplished when using the JspTilesViewHandlerImpl?
Thanks
Regards
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250