[seam-issues] [JBoss JIRA] Closed: (JBSEAM-4713) EntityConverter should allow empty String

Marek Novotny (JIRA) jira-events at lists.jboss.org
Thu Jan 6 07:49:18 EST 2011


     [ https://issues.jboss.org/browse/JBSEAM-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Novotny closed JBSEAM-4713.
---------------------------------



> EntityConverter should allow empty String
> -----------------------------------------
>
>                 Key: JBSEAM-4713
>                 URL: https://issues.jboss.org/browse/JBSEAM-4713
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Integration
>    Affects Versions: 2.2.1.CR2
>         Environment: seam 2.2.1CR2, PrimeFaces
>            Reporter: Cody Lerum
>            Assignee: Marek Novotny
>             Fix For: 2.2.1.CR3
>
>         Attachments: JBSEAM-4713-P1
>
>
> When using the <s:convertEntity /> tag along with a component such as primefaces autocomplete the EntityConverter will throw a NumberFormatException when it is passed an empty string as JSF is prone to do.
> <pf:autoComplete 
>        id="fromUserAC" 
>        value="#{emailTemplateData.fromUser}"
>        widgetVar="fromUserAC" 
>        forceSelection="true" 
>        completeMethod="#{userLists.searchUsers}" 
>        var="_user" 
>        itemValue="#{_user}" 
>        itemLabel="#{_user.name}" 
>        selectListener="#{emailTemplateDataAddUtil.selectFromUser}" 
>        onSelectUpdate="fromUser" 
>        required="true">
>    <s:convertEntity />
> </pf:autoComplete>
> The solution is to add a .isEmpty() check to the converter.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list