On 1/20/06, David Thielen <[EMAIL PROTECTED]> wrote:
> Hi;
>
> When I create a button I would like for the value="add" to always have the
> text add - for my programming that uses that value to determine which button
> was pressed.
>
> However, I want the displayed text to come from a resource so it is
> localized. Is there a way to do this? It appears that the value= if set, is
> always placed in the button.
>

value == button caption.

Use dispatching action to distinguish, which button was clicked, for example:

http://superinterface.com/strutsdialog/selectaction.html
http://struts.sourceforge.net/strutsdialogs/selectaction.html

or check out this:

http://issues.apache.org/bugzilla/show_bug.cgi?id=30292

Or use LookupDispatchAction, but it has its drawbacks. Basic
DispatchAction is quite limited in terms of setting the button
caption.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to