You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Renzo Tomaselli <re...@tecnotp.it> on 2007/01/11 09:10:26 UTC

[Trinidad] any alternative to t:saveState

Hi, within the process of switching all contents to Trinidad, I wonder about
any alternative to use Tomahawk t:saveState to preserve single data chunks
between consecutive requests.  
This component works well, but I would just prefer to reduce the game
variables to the minimum. Furthermore, I saw that Trinidad uses server-side
storing of saved data, placing a simple token inside the rendered page as a
handle. This sounds much more efficient than inserting real data contents
inside the page using hidden fields.  
\-- Renzo  
  


Re: [Trinidad] any alternative to t:saveState

Posted by Adam Winer <aw...@gmail.com>.
t:saveState, IIRC, doesn't actually push data contents
using hidden fields.  It just rides along with JSF state
saving. If JSF state saving is configured to push all the state
into a big hidden field, then t:saveState ends up
doing that.

So, used in conjunction with Trinidad, t:saveState
would save that state on the server (in the session),
with that some token on the client identifying it.

The functionality that Trinidad provides which
is a sort of alternative to t:saveState is
pageFlowScope.

You can use t:saveState with Trinidad;  the
only glitch is that you have to turn off
View Root Caching, which is a really nice
optimization Trinidad has for state saving
that unfortunately conflicts with t:saveState;
you turn it off with the:
  org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
web.xml config parameter.

-- Adam


On 1/11/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
>
>  Hi, within the process of switching all contents to Trinidad, I wonder
> about any alternative to use Tomahawk t:saveState to preserve single data
> chunks between consecutive requests.
>  This component works well, but I would just prefer to reduce the game
> variables to the minimum. Furthermore, I saw that Trinidad uses server-side
> storing of saved data, placing a simple token inside the rendered page as a
> handle. This sounds much more efficient than inserting real data contents
> inside the page using hidden fields.
>  -- Renzo
>
>