List Info

Thread: serialize an object to a hidden field




serialize an object to a hidden field
country flaguser name
Canada
2007-08-31 14:14:08
How do I serialize an object in a hidden field (as opposed to using saveState and having its state meshed somewhere else along with the other components)?

Thanks


Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
Re: serialize an object to a hidden field
user name
2007-08-31 14:26:07
Seems like a strange thing to do, but I guess you'd do it
just like t:saveState.

You'd point your h:hiddenText (is that the right name?)
value to
#{bean.objectState} and you'd have getObjectState serialize
the object
into a string, and setObjectState unserialize the object.

On 8/31/07, Costa Basil <costa_basilyahoo.ca> wrote:
> How do I serialize an object in a hidden field (as
opposed to using
> saveState and having its state meshed somewhere else
along with the other
> components)?
>
> Thanks
>
>
>  ________________________________
> Be smarter than spam. See how smart SpamGuard is at
giving junk email the
> boot with the All-new Yahoo! Mail
>
>

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )