Any idea?
On 1/9/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>#2 However, I receive errors if the member property on the backing bean is
>itself a bean (these 2 approaches are defined in the wiki):
>
><t:updateActionListener property="#{bean_myisp.isp.id}" value="#{ isp.id}" />
>(bean_mysip.isp - isp is a bean member property of the backing bean)
>
>I have tried to configure my facesconfig.xml as described in the wiki, but
>when I include the <managed property> for bean_myisp.isp, I receive errors:
>
><managed-bean>
> <managed-bean-name>bean_myisp</managed-bean-name>
> <managed-bean-class>com.abc.bean_myisp</managed-bean-class>
> <managed-bean-scope>session</managed-bean-scope>
> <managed-property>
> <property-name>isp</property-name>
> <value>#{isp}</value>
> </managed-property>
> </managed-bean>
>
>Is the line "<value>#{isp}</value>" correct - wasn't sure if I was suppose
>to enter this verbatim from wiki article? Will JSF take care of
>initializing the bean_mysip and ensure its member property bean 'isp' has an
>instance?
>
>Here's the error I'm receiving with approach #2 above - appears to be
>nullpointerexception, but I'm not sure what object its referring to?:
You are most likely getting the NPE because there is not a Converter for the @property . At least, that's what happened to me once.
https://issues.apache.org/jira/browse/MYFACES-847
What is the type for #{isp} ? You might need so specify a converter.
--
Regards,
Cuong Hoang

