On 4/12/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
> unfortunately, when JSF/MyFaces calls
> AddChildForm.getChildBean().getParent(), that returns a ParentBean.  I
> think JSF wants a String so it knows which item in the list is currently
> selected.  It seems as if I can't just pass around objects.  I am
> thinking I may have to use the database id?  Is there any cleaner way
> than that?  The method above would be quite clean as setParent() would
> actually just set the ParentBean stored in the Map which would be nice.
> Any ideas?

Use a Converter.   Typically you'd use the primary key as the
converted value representation, but you don't have to.

Reply via email to