[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1100) s:convertEnum doesn't throw exception if setter is missing

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Mar 23 16:50:43 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1100?page=comments#action_12357195 ] 
            
Pete Muir commented on JBSEAM-1100:
-----------------------------------

Hmm, this is nothing to do with s:convertEnum (the getters and setters are called by the select component).  You're inside some kind of iterating component?  If I misspell the property in the ui example of s:convertEnum I get a PropertyNotFoundException

> s:convertEnum doesn't throw exception if setter is missing
> ----------------------------------------------------------
>
>                 Key: JBSEAM-1100
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1100
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF
>            Reporter: Christian Bauer
>         Assigned To: Pete Muir
>            Priority: Minor
>
>                 <h:selectOneMenu value="#{a.attribute.visibility}">
>                     <s:convertEnum/>
>                     <s:enumItem enumValue="SYSTEM"  label="Only System" />
>                     <s:enumItem enumValue="USER"    label="Allow user override" />
>                     <s:enumItem enumValue="NODE"    label="Allow per-node override" />
>                 </h:selectOneMenu>
> 'attribute' is a class that was missing the setVisibility(enum) method. I did not get any exception and spent some time tracking down the problem. My request was just skipping the INVOKE APPLICATION phase and doing RENDER RESPONSE. No faces message either.

-- 
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 seam-issues mailing list