You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Hubert Rabago <hr...@gmail.com> on 2006/04/13 17:55:00 UTC

Can a dataTable work in request scope?

If my page uses a data table, and that data table has command links or
other input controls in it, does that limit it to the request scope? 
A teammate of mine says we can't switch certain beans to request scope
because it uses data tables and those will stop working if we do.

thanks,
Hubert

Re: Can a dataTable work in request scope?

Posted by Hubert Rabago <hr...@gmail.com>.
Thanks, Adam, we'll try this out.

Hubert

On 4/13/06, Adam Brod <AB...@intralinks.com> wrote:
>
> Yes, you can use request-scoped backing beans with dataTable.  I would
> recommend that you use the t:saveState component to simplify your life.
>
> See "Action listeners and actions for my commands on dataTables do not fire"
> from the FAQ.
> http://wiki.apache.org/myfaces/FAQ
>
> Also
> http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters
>
>  Adam Brod
>  Product Development Team
>

Re: Can a dataTable work in request scope?

Posted by Adam Brod <AB...@intralinks.com>.
Yes, you can use request-scoped backing beans with dataTable.  I would 
recommend that you use the t:saveState component to simplify your life.

See "Action listeners and actions for my commands on dataTables do not 
fire" from the FAQ. 
http://wiki.apache.org/myfaces/FAQ

Also 
http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters

Adam Brod
Product Development Team

Re: Can a dataTable work in request scope?

Posted by Hubert Rabago <hr...@gmail.com>.
Sorry, typo.
I meant to ask: "If my page uses a data table, and that data table has
command links or other input controls in it, does that limit it to the
*session* scope?"

thanks,
Hubert

On 4/13/06, Hubert Rabago <hr...@gmail.com> wrote:
> If my page uses a data table, and that data table has command links or
> other input controls in it, does that limit it to the request scope?
> A teammate of mine says we can't switch certain beans to request scope
> because it uses data tables and those will stop working if we do.
>
> thanks,
> Hubert
>