[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348918 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
Y'know what I think is the best way to handle this: just have an API that you can call from an action method to validate the model. Let you attach the messages to the form field yourself. That gives complete control for all these crazy cases, I guess.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Christian Bauer (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348917 ]
Christian Bauer commented on JBSEAM-432:
----------------------------------------
"I had previously understood that what you wanted was a form with a submit button and a back button. When the submit button is pressed, input gets saved to the model, then validation runs."
Note that "then validation runs" can be at any time (like @IfInvalid allows). I might want to validate the model only after the _next_ screen is submitted, because these two screens in the wizard have some dependency.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Christian Bauer (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348916 ]
Christian Bauer commented on JBSEAM-432:
----------------------------------------
OK, I understand that technically the button can't do this. I was thinking from a users perspective (custom UI components are not necessarily the first thing the user has in mind for this).
"I had previously understood that what you wanted was a form with a submit button and a back button. When the submit button is pressed, input gets saved to the model, then validation runs. When the back button is pressed, input is saved to the model, and no validation runs. Right?"
Yes.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348915 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
No, you can't really. s:commandButton does not have a way to control the processing lifecycle of the inputs, AFAICT. It can't just "skip" the validation phase.
Perhaps you can do it with a custom Lifecyle.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348914 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
I had previously understood that what you wanted was a form with a submit button and a back button. When the submit button is pressed, input gets saved to the model, then validation runs. When the back button is pressed, input is saved to the model, and no validation runs. Right?
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348912 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
Well that was completely useless. After reading that I begin to think that you don't need this feature at all, and that you're mistaken.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Christian Bauer (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348913 ]
Christian Bauer commented on JBSEAM-432:
----------------------------------------
Can't we just have an s:commandButton that drops the useless "immediate" flag and allows me to control the processing phases more fine-grained?
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348911 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
I got a couple of the little details wrong. Actually it seems that conversion does often happen during process validations, but it doesn't need too. You can certainly have a component that applies values before processing validations. The real problem is that to make this stuff work right we would need to subclass *all* the subclasses of UIInput, and their JSP tags :-(.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Christian Bauer (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=all ]
Christian Bauer updated JBSEAM-432:
-----------------------------------
Attachment: wizard.pdf
There is some misunderstanding (I think both of you) of what I want to do with this stuff. To align everyone I attached the relevant pages from the book.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
> Attachments: wizard.pdf
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=comments#action_12348909 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
No, we want to disable *all* validation, not just model-based validation.
Forget about the transaction failing stuff. The user can't proceed through the wizard to get to the operation that commits the atomic conversation, since validation *will* get run, and fail, just *after* the model is updated.
For numeric data, if JSF can't do a type conversion, it already doesn't update the model. no problem there, from our point of view, the value is "null"
Leaving the data in the UI tree is kinda useless, since if you navigate to a diff page, it is gone.
> Support @IfInvalid functionality without @IfInvalid
> ---------------------------------------------------
>
> Key: JBSEAM-432
> URL: http://jira.jboss.com/jira/browse/JBSEAM-432
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.1.0.BETA1
> Reporter: Christian Bauer
> Assigned To: Norman Richards
> Fix For: 1.1.1.GA
>
>
> The "Previous Page" button has to Update Model Values, but not Process Validations:
> <h:form>
> <f:facet name="beforeInvalidField">
> <h:graphicImage value="/img/attention.gif"
> width="18" height="18"
> styleClass="attentionImage"/>
> </f:facet>
> <f:facet name="afterInvalidField">
> <s:message/>
> </f:facet>
> <f:facet name="aroundInvalidField">
> <s:span styleClass="errors"/>
> </f:facet>
> <div class="errors" align="center">
> <h:messages globalOnly="true"/>
> </div>
> <s:validateAll>
> <div class="entry">
> <div class="label">#{messages['Firstname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.firstname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Lastname']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.lastname}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label">#{messages['Email']}:</div>
> <div class="input">
> <s:decorate>
> <h:inputText size="32" required="true"
> value="#{register.user.email}"/>
> </s:decorate>
> </div>
> </div>
> <div class="entry">
> <div class="label"> </div>
> <div class="input">
> <h:commandButton value="#{messages['PrevPage']}" styleClass="button"
> action="register"/>
> <h:commandButton value="#{messages['NextPage']}" styleClass="button"
> action="#{register.enterProfile}"/>
> </div>
> </div>
> </s:validateAll>
> </h:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months