[jboss-user] [JBoss Seam] - s:decorate question
bsmithjj
do-not-reply at jboss.com
Fri Feb 8 10:39:18 EST 2008
I've been trying to use s:decorate in a form. Here is the fragment I am using to 'decorate':
| <ui:composition ...>
|
| <s:div id="#{id}" style="margin-bottom:9px;">
| <label class="topLabel">
| <ui:insert name="label">Field Label</ui:insert>
| </label>
| <div>
| <ui:insert name="field">Form Field</ui:insert>
| <s:span styleClass="required" rendered="#{required}">*</s:span>
| </div>
| <s:message styleClass="invalid"/>
| </s:div>
| </ui:composition>
|
and in my form, I'm using this with s:decorate like such:
| <a4j:form id="newApplication">
|
| <h:messages/>
|
| <s:decorate template="/WEB-INF/view/components/label-on-top-fieldset.xhtml">
| <ui:param name="id" value="nameRow"/>
| <ui:define name="label">Name:</ui:define>
| <ui:define name="field">
| <h:inputText id="name" value="#{appToEdit.name}"
| styleClass="textField" style="font-weight:bold;"
| size="32" required="true"/>
| </ui:define>
| </s:decorate>
|
| ....
|
|
The problem I am having is that in addition to a submit button, I want to use a cancel button (or link); no matter which technique (button or link) I use, validation is invoked and thus I can never 'cancel' out of my form.
Is there a way to tell s:decorate to not invoke validate for a JSF request?
Thanks,
Brad Smith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127863#4127863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127863
More information about the jboss-user
mailing list