[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_12347163 ]
Gavin King commented on JBSEAM-432:
-----------------------------------
We would need to introduce s:commandLink and s:commandButton for this.
> 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, 5 months
[jbossseam-issues] [JBoss JIRA] Assigned: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=all ]
Gavin King reassigned JBSEAM-432:
---------------------------------
Assignee: Norman Richards (was: Gavin King)
> 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, 5 months
[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-432) Support @IfInvalid functionality without @IfInvalid
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-432?page=all ]
Gavin King updated JBSEAM-432:
------------------------------
Fix Version/s: 1.1.1.GA
(was: 1.1.0.CR1)
I guess this can be done by subclassing UICommand and overriding public void queueEvent(FacesEvent event). I won't have time to do it in the scope of this release. Perhaps Norman can find time.
> 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: Gavin King
> 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, 5 months
[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-286) SeamTest - Add support for authenticated user
by Gavin King (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-286?page=all ]
Gavin King closed JBSEAM-286.
-----------------------------
Resolution: Done
I implemented something similar.
> SeamTest - Add support for authenticated user
> ---------------------------------------------
>
> Key: JBSEAM-286
> URL: http://jira.jboss.com/jira/browse/JBSEAM-286
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.0.1
> Environment: All
> Reporter: Bradley Smith
> Assigned To: Gavin King
> Fix For: 1.1.0.CR1
>
> Attachments: MockExternalContext.java, MockExternalContext.java, MockHttpServletRequest.java, MockHttpServletRequest.java, SeamTest.java, SeamTest.java
>
>
> Add a property of type Principal and another property (maybe of type Group []?) to Script. The Principal should be used by the MockHttpServletRequest to represent and authenticated user. The Group [] property should be used by the MockHttpServletRequest to support the isUserInRole() implementation.
> These properties ideally should be settable by overriding the setup() method of Script.
--
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, 5 months