Hi Ben,

do you have a type converter registered for your Participant class?

Regards,
  Levi

On Mon, Feb 9, 2009 at 11:08 AM, Ben <[email protected]> wrote:

> Morten Matras <kodekon...@...> writes:
>
> >
> >
> > This is probably because you haven't added a hidden field with the id of
> the
> object you're trying to update.So if you need to edit an object in the
> actionBean accessed with: getCustomer() / setCustomer(...) in the
> actionBean you
> need to set the id of the customer in the form to have it fetched from the
> database and updated instead of being instantiated.<s:form
> beanclass="${actionBean.class}"><s:hidden name="customer"/>...The trick is
> to
> add the hidden field with the name of the bean you need to edit.
>
> Hi Morten
>
> Thanks for the quick reply.
>
> I do have a hidden field with the id of the object (<stripes:hidden
> name="participant.id"/>) and Stripes still creates a new object (which I
> can see
> from a debug statement in the constructor, then updates it with the ID and
> other
> fields on the form rather than using the existing object in the ActionBean.
>
> Your reply was slightly unclear so just in case I also added a hidden field
> with
> just the object itself (<stripes:hidden name="participant"/>) just incase
> and
> that didn't work either :)
>
> Ben
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to