||Hi,

Recently I came around a problem testing my app with geronimo 2.1.2 (myfaces 1.2.3).

The app is working well in jboss 4.2 (JSF RI 1.2_04), and I'm trying it with geronimo 2.1.2 (myfaces 1.2.3).


I have a managed bean called "treeManager", with a "selectedNode" property that is null the first time.

I have three input components: 2 inputText, and a selectOneMenu, the JSP code is this:

...
<h:outputLabel for="nodeName" value="Nom"/>
<h:inputText id="nodeName" value="#{treeManager.selectedNode.name}" />

<h:outputLabel for="nodeDescription" value="Descripció"/>
<h:inputText id="nodeDescription" value="#{treeManager.selectedNode.description}" /> <h:outputLabel for="ambitType" value="Àmbit"/>
<h:selectOneMenu id="ambitType" value="#{treeManager.selectedNode.ambit}">
  <f:selectItem itemLabel="Global" itemValue="global"/>
  <f:selectItem itemLabel="Organisme" itemValue="organisme"/>
  <f:selectItem itemLabel="Procediment" itemValue="procediment"/>
</h:selectOneMenu>
....

When I try the JSF I get this error.

|javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /dissenyador/estructures.jsp][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_305935947_1]}| | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:610)|

Caused by: ...

|Caused by: org.apache.jasper.el.JspPropertyNotFoundException: /dissenyador/estructures.jsp(60,8) '#{treeManager.selectedNode.ambit}' Target Unreachable, 'selectedNode' returned null| | at org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)| | at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:58)| | at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:391)| | at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.findUIOutputConverterFailSafe(HtmlRendererUtils.java:393)| | at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:316)| | at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:288)| | at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:57)| | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:607)|


Don't know if this is correct, because its true that selectedNode evaluates to null, but no exception is thrown when rendering the two previus inputText that also reference selectedNode.

Is this correct? Should I file a bug report?




--
-------------------------
Antoni Reus Darder
GIT Consultors S.L.
c/ Francesc Rover 2-B
07003 Palma de Mallorca
Illes Balears
mail: [EMAIL PROTECTED]
Tel: + 34 971 49 83 10
Fax: + 34 971 49 61 89

Reply via email to