On 29-10-2010 at 15:42, Nikolaos Giannopoulos wrote:
> Can you elaborate a little more though on the overriding of
> getSourcePageResolution() and what is involved there?

Basically you'll need a subclass of ActionBeanContext with a Resolution
field. If not null, your getSourcePageResolution() returns the value. If
null, it returns super.getSourcePageResolution() instead. The result is that
you can optionally override the value, but by default you won't.

The method setContext(ActionBeanContext) of your ActionBean will use a
setSourcePageResolution(Resolution) method on your ActionBeanContext to
supply a ForwardResolution to redirect the user back to the appropriate form.

Lastly, have a look at the following URL. It tells you how to use your class
instead of the default ActionBeanContext:
        http://www.stripesframework.org/display/stripes/State+Management


Oscar

-- 
   ,-_  Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
  /() )
 (__ (  Simplicity is prerequisite for reliability.
=/  ()  -- Edsger Dijkstra, EWD498

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to