[jboss-jira] [JBoss JIRA] Updated: (JBSEAM-313) <s:validateAll> + facelets user tag

Denis Karpov (JIRA) jira-events at jboss.com
Fri Jul 21 11:23:11 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBSEAM-313?page=all ]

Denis Karpov updated JBSEAM-313:
--------------------------------

    Attachment: test.zip

Just uncomment <!--s:validateAll--> and you will get un exception.

> <s:validateAll> + facelets user tag
> -----------------------------------
>
>                 Key: JBSEAM-313
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-313
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>         Environment: jBoss 4.0.4.GA
> Seam 1.0.1.GA
>            Reporter: Denis Karpov
>         Attachments: test.zip
>
>
> =================================================
> *.xhtml file:
> --------------------
> .....
> <s:validateAll>
> 	<clv:edit id="edit" label="Test editable" value="#{test.obj.code}"/>  <!-- User defined tag inside validateAll-->
> </s:validateAll>
> .....
> ==================================================
> tag file:
> -----------------
> ....
> <ui:component 	xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
> 	<input id="#{id}" type="text" jsfc="h:inputText" value="#{value}"/>   <!--  Look at #{value} This is the root of problem -->
> </ui:component>
> ....
> =================================================
> Look at  value=#{value}
> Validation framework now can not process such binding that concerns facelets templateing.
> In attachment you will find simple working project. Just uncomment <!--s:validateAll--> and you will get exception.
> Exception:
> 19:07:19,921 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
> java.lang.RuntimeException: not an attribute value binding: #{value}
> 	at org.jboss.seam.ui.ModelValidator.validate(ModelValidator.java:30)
> 	at javax.faces.component._ComponentUtils.callValidators(_ComponentUtils.java:157)
> 	at javax.faces.component.UIInput.validateValue(UIInput.java:312)
> 	at javax.faces.component.UIInput.validate(UIInput.java:353)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:183)
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:70)
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
> 	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)

-- 
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

        



More information about the jboss-jira mailing list