Greetings,

Is it possible to have the attributes of the submit tag generated from bean
properties? The documentation reads:

The tag will set its value using the first non-null result from the
following list:

   - resource: {actionFQN}.{buttonName}
   - resource: {actionPath}.{buttonName} (deprecated)
   - resource: {buttonName}
   - the body of the tag
   - the value attribute of the tag


I expected that if I had a property foo with getter and setter in the bean,
I could have submit tag attributes generated from the value of that
property, i.e.,  if property set to "Clear" and the tag is <s:submit
id="foo" name="${foo}"/>,  Stripes would render <input id="foo"
type="submit" name="Clear" value="Clear"/> but this is not happening. It
seems to fit the third option, but it didn't work.
Neither of <s:submit id="foo" name="foo" value="${foo}"/> nor <s:submit
id="foo" name="foo">${foo}</s:submit> work. What am I missing?

Thanks!


-- 
Aaron Stromas
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to