This content has been marked as final.
Show 2 replies
-
1. Re: Non-rendering s:decorate component
pmuir Feb 18, 2008 4:56 PM (in response to tomstrummer.tomstrummer.gmail.com) -
2. Re: Non-rendering s:decorate component
tomstrummer.tomstrummer.gmail.com Feb 19, 2008 4:17 PM (in response to tomstrummer.tomstrummer.gmail.com)Thank you.
I solved this by just decorating the field and leaving the label like so:
<h:panelGrid columns='2'> <h:outputLabel for='name' value='Name:' /> <s:decorate template='../layout/edit-tr.xhtml'> <h:inputText id='name' value='#{deviceConfig.name}' required='true'/> </s:decorate> ...
And the template (edit-tr.xhtml)
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:s="http://jboss.com/products/seam/taglib"> <s:validateAll> <ui:insert/> <s:message styleClass="error errLabel" /> </s:validateAll> </ui:composition>