Target Unreachable, identifier ...null
henrycoraluriarte Jul 23, 2011 11:52 PMHelp please:
22:35:18,426 GRAVE [org.richfaces.log.Context] /ventas/ingreso.xhtml @23,110 value="#{result.idProducto}": Objetivo inalcanzable, identificador 'result' resuelto a nulo: javax.el.PropertyNotFoundException: /ventas/ingreso.xhtml @23,110 value="#{result.idProducto}": Objetivo inalcanzable, identificador 'result' resuelto a nulo.
<h:form id="formIngresarVentas">
<rich:autocomplete mode="cachedAjax" id="autocomplete" autofill="false"
autocompleteList="#{suggestionBoxBean.buscarProducto}" minChars="2" status="suggestId"
var="result" autocompleteMethod="#{ventasIngreso.autocomplete}" fetchValue="#{result.nombre} #{result.codigo}"
onselectitem="asignaProducto(#{rich:element('idresultHidden')}.value);return false;">
<h:column>
<h:inputHidden binding="#{ventasIngreso.idProdAux}" id="idresultHidden" value="#{result.idProducto}"/>
<h:outputText value="#{result.nombre} #{result.codigo}" />
</h:column>
<a4j:jsFunction name="asignaProducto" render="param1">
<a4j:param name="param1" assignTo="#{ventasIngreso.producto.idProducto}" />
</a4j:jsFunction>
</rich:autocomplete>
<a4j:commandButton action="#{ventasIngreso.IngresarVenta}"
id="btnCrearCompra" value="aceptar" execute="@form" render="nCompra">
</a4j:commandButton>
<h:outputText value="Nº Compra:" styleClass="txt_text"/>
<h:inputText id="nCompra" value="#{ventasIngreso.numeroDocumento}" size="20" maxlength="20" />
</h:form>
When do the action
"#{ventasIngreso.IngresarVenta}"
show the warninig:
Objetivo inalcanzable, identificador 'result' resuelto a nulo: javax.el.PropertyNotFoundException: