I am trying to write a JSP page which requires access to several ActionBeans at
the same time.
The application is in fact a series of tabbed panels, each of which draws a
separate map using the Google Maps tag library. Each panel has its own set of
inputs, so the simple approach is to define one ActionBean per panel. But the
tag library requires that some of the map-drawing tags are placed in the head
section of the JSP, before the <stripes:forms>s are opened. So all the
properties of all the action beans must be available throughout the page, even
outside the forms in which they are used.
Each maps is slightly different, but obviously they all have many common
properties (width and height of the map display, line width, color and opacity
etc). So the different action beans do have many properties with the same name
and data type.
The Quick Start example indicates that ${actionBean} can be used if there is
just one ActionBean on the page, but does not mention the case where there are
many.
I thought I could solve this using the <stripes:useActionBean> tag, using its
var attribute to define a page-scope variable, e.g:
<stripes:useActionBean binding="/form1.action" var="actionBean1"/>
<stripes:useActionBean binding="/form2.action" var="actionBean2"/>
...
However this failed to work. The <stripes:text> tags were not picking up the
values which had previously been set in the corresponding Action Bean, indeed
they were not picking up any default values at all (I am using
BeanFirstPopulationStrategy to allow the ActionBeans to set default values for
their properties on exit).
Can someone please help me with this?
Gary
--
I am using the free version of SPAMfighter for private users.
It has removed 1356 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users