myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronald Holshausen (JIRA)" <incubator-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-130) x:selectManyCheckbox , if is not items selected, i have NullPointerException
Date Thu, 31 Mar 2005 12:26:17 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-130?page=comments#action_61884 ]
     
Ronald Holshausen commented on MYFACES-130:
-------------------------------------------

I have the same issue, with jdk 1.5, tomcat 5.5.7 and myfaces 1.0.9

If no checkboxes are selected, then the browser will not post any values back, so the array
needs to be initialised to an empty array before hand.

>  x:selectManyCheckbox  , if is not items selected, i have NullPointerException
> ------------------------------------------------------------------------------
>
>          Key: MYFACES-130
>          URL: http://issues.apache.org/jira/browse/MYFACES-130
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>  Environment: myfaces 1.0.9 from CVS, tomcat 5.0.28, jre 1.5
>     Reporter: Grigoras Cristinel

>
> java.lang.NullPointerException
>         at org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:118)
>         at org.apache.myfaces.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:792)
>         at org.apache.myfaces.renderkit.html.HtmlCheckboxRendererBase.getConvertedValue(HtmlCheckboxRendererBase.java:260)
>         at javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:296)
>         at javax.faces.component.UIInput.validate(UIInput.java:291)
>         at javax.faces.component.UISelectMany.validate(UISelectMany.java:285)
>         at javax.faces.component.UIInput.processValidators(UIInput.java:166)
>         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>         at javax.faces.component.UIForm.processValidators(UIForm.java:66)
>         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:162)
> I have checked and error was on file _SharedRendererUtils.java:118 
>   int len = submittedValue.length;
> Is ok to be null ? 
> Cristi

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message