[jboss-user] [JBoss Seam] - Re: composite ui component
sonstone
do-not-reply at jboss.com
Mon Feb 5 17:21:17 EST 2007
No, I think you might be right about it being more of a jsf question. I was just hoping someone could help me here.
I'd like to do something like this in my page:
| <h:form>
| <z:mycomponent config="#{customer.config}"/>
| <h:commandButton value="Ok" action="doAuthenticate"/>
| </h:form>
|
I'd then like based off of the configuration given to the component to contain the following two groups of child components:
| <!-- Snippet Group 1: -->
| <h:outputText value="Account Number:"/>
| <h:inputText value="#{payment.accountNumber}" id="accountNumber" required="true">
| <s:validate/>
| </h:inputText>
| <h:message for="accountNumber" />
| <br/>
|
| <!-- Snippet Group 2: -->
| <h:outputText value="PIN:"/>
| <h:inputText value="#{payment.pinNumber}" id="pinNumber" required="true">
| <s:validate/>
| </h:inputText>
| <h:message for="pinNumber" />
| <br/>
|
I know I could render the html for the child snippets, but I'd like to re-use the jsf components so that I can take advantage of the databinding. Ideally I'd like to store the snippets in individual jspx files and dynamically link them into my component at runtime.
I'm kind of new to jsf/seam so I apologize if this is the wrong place or I'm missing something really obvious here.
Thanks,
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011627#4011627
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011627
More information about the jboss-user
mailing list