[jboss-user] [JBoss Seam] - Registration example again: method binding without component
dkane
do-not-reply at jboss.com
Mon Jun 25 15:58:53 EDT 2007
Hello
Please help me to understand the following code in Registration example :
register.xhtml uses RegisterAction component annotated as "register", e.g. :
<s:decorate id="verifyDecorate" template="edit.xhtml">
| <ui:define name="label">Verify Password:</ui:define>
| <h:inputSecret id="verify" value="#{register.verify}" required="true"/>
| </s:decorate>
|
RegisterAction.java also has method invalid() :
| public void invalid()
| {
| facesMessages.add("Please try again");
| }
|
And, edit.xhtml contains code :
<s:label styleClass="label #{invalid?'errors':''}">
| <ui:insert name="label"/>
| <s:span styleClass="required" rendered="#{required}">*</s:span>
| </s:label>
|
I don't understand which components "#{invalid}" and "#{required}" refers to in edit.html. Or these are some global variables outside of components, how do I know more about them then ?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057479#4057479
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057479
More information about the jboss-user
mailing list