[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1526) Support selective validation with a:region

Luiz Fernando Signorelli Gon?alves (JIRA) jira-events at lists.jboss.org
Wed Jul 16 13:55:52 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12421580#action_12421580 ] 

Luiz Fernando Signorelli Gon?alves commented on JBSEAM-1526:
------------------------------------------------------------

This is exaclty what I need for a project that's going on now.
There are any chances to have it in a near future?

> Support selective validation with a:region
> ------------------------------------------
>
>                 Key: JBSEAM-1526
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-1526
>             Project: Seam
>          Issue Type: Feature Request
>          Components: JSF Controls
>            Reporter: Christian Bauer
>
> In complex forms I'd like to be able to customize validation per region:
> <h:form>
>   <a:region>
>       <h:inputText value="#{foo.bar}"/>
>     <a:region>
>         <h:inputText value="#{bar.foo}"/>
>         <a:commandButton action="#{bar.baz}"/>
>     </a>
>       <a:commandButton action="#{foo.baz}"/>
>   </a>
> </h:form>
> If the nested button is pressed, I only want #{bar.foo} validated (there is an <s:validateAll> around it). If the outer button is pressed, I want both properties validated. I realize that this is a major issue regarding model updates, however, I don't need to update the model for any non-validated property because 
> a) it is not decoded on the server anyway (? I don't understand the a:region docs)
> b) i don't need an updated model because my action doesn't expect it
> c) i don't need an updated model because i am re-rendering an area that doesn't expect it

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list