List Info

Thread: Re: serialize an object to a hidden field




Re: serialize an object to a hidden field
country flaguser name
Canada
2007-08-31 14:36:44
Thank you. I need to pass some objects from a page to a dialog opened from that page and I do not want to use session objects.

Mike Kienenberger <mkienenbgmail.com&gt; wrote:
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 yahoo.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
>
>
yahoo.ca>


Ask a question on any topic and get answers from real people. Go to Yahoo! Answers.
Re: serialize an object to a hidden field
user name
2007-08-31 14:42:04
If you're using client-side state saving, it's not using a
session
object.   It's using a hidden field.

Note also that if you're using server-side state saving and
JSF 1.1,
then you can't have multiple pages open at the same time for
the same
session.   It's not supported.   It does work with
client-side state
saving, though.

On 8/31/07, Costa Basil <costa_basilyahoo.ca> wrote:
> Thank you. I need to pass some objects from a page to a
dialog opened from
> that page and I do not want to use session objects.
>
> Mike Kienenberger <mkienenbgmail.com> wrote:
>  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 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
> >
> >
>
>
>
>  ________________________________
> Ask a question on any topic and get answers from real
people. Go to Yahoo!
> Answers.
>
>

[1-2]

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