2 Replies Latest reply on Aug 10, 2007 5:01 AM by Ronald van Kuijk

    problem while saving taskform varibles

    gao shan Newbie

      this is my *.xhtml

      xmlns:t="http://myfaces.apache.org/tomahawk"
      ......................
      <ga:responseActions>
       <id:listUsers target="#{users}" />
      </ga:responseActions>
      <h:selectOneMenu required="true" value="#{var['collection1']}">
       <t:selectItems value="#{users}" var="user" itemLabel="#{user.name}" itemValue="#{user.name}" />
       </h:selectOneMenu>
      

      When i examine this task,every things is fine. But when I put down "Save",i get exceptions.
      javax.el.PropertyNotFoundException: /50/assignA.xhtml @33,83 value="#{var['collection1']}": Target Unreachable, identifier 'var' resolved to null
       com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
       com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
       com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:166)
       com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:328)
       javax.faces.component.UIInput.getConvertedValue(UIInput.java:936)
       javax.faces.component.UIInput.validate(UIInput.java:861)
       javax.faces.component.UIInput.executeValidate(UIInput.java:1071)
       javax.faces.component.UIInput.processValidators(UIInput.java:663)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIForm.processValidators(UIForm.java:229)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
       javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      


      Thanks in advance