Some of the jsps use jsp:useBean to pull in beans from the service layer. For
example, in BulkAddEditBugs.jsp is
<jsp:useBean
id="componentManager"
scope="page"
class="net.sourceforge.stripes.examples.bugzooky.biz.ComponentManager"
/>
... and then further down
<stripes:select name="bugs[${loop.index}].component.id">
<stripes:option value="">Select One</stripes:option>
<stripes:options-collection
collection="${componentManager.allComponents}"
label="name"
value="id"
/>
</stripes:select>
Is this the preferred way to do this with Stripes?
The way I've done it in the past would be to have a property on the action
bean, allComponents for example, with its getter, and to call
componentManager.allComponents() in the action bean to set the allComponents
property.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users