[jboss-jira] [JBoss JIRA] Reopened: (JBAS-8751) javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL not honored

Jason Greene (JIRA) jira-events at lists.jboss.org
Thu Apr 21 14:26:48 EDT 2011


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

Jason Greene reopened JBAS-8751:
--------------------------------



Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all unscheduled AS6 issues that are a year or less old. This will make it easier community members to find and work on them.

Future releases beyond 6.1 can be done provided a community member steps up to coordinate them.

> javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL not honored
> -----------------------------------------------------------------------
>
>                 Key: JBAS-8751
>                 URL: https://issues.jboss.org/browse/JBAS-8751
>             Project: Legacy JBoss Application Server 6 
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JSF
>    Affects Versions: 6.0.0.CR1
>            Reporter: Nicklas Karlsson
>            Assignee: Stan Silvert
>             Fix For: No Release
>
>
> Given a model like
> @javax.enterprise.inject.Model
> public class Model
> {
>    private String data;
>    public String getData()
>    {
>       return data;
>    }
>    public void setData(String data)
>    {
>       System.out.println("set data to " + data);
>       this.data = data;
>    }
> }
> and a view like
> <h:form>
> 	<h:inputText id="field" value="#{model.data}"/>
> 	<h:commandButton value="!"/>
> </h:form>
> an empty value is submitted even with
> <context-param>
> 	<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
> 	<param-value>true</param-value>
> </context-param>
> Debugging the application shows that the emptyStringIsNull of the component is true.
> even with a @FacesConverter(forClass=String.class) which is correctly run and doing a setSubmittedValue(null), the model still sees a "" instead of a null
> Tested to work correctly on a GF 3.0.1

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


More information about the jboss-jira mailing list