From: "Borislav Sabev" <[EMAIL PROTECTED]>
I'd like to set a label of submit buttons getting it from property file.
But seems that this is not possible.
One other problem I see is that value attribute has two purposes: to set
the label, and on submit to provide value for the request parameter. Is
there any way they to be different?
No. I get around it with client-side scripting. (It's an intranet app, so
I can guarantee JavaScript is enabled.)
<html-el:submit property="submit" onclick="setUserAction('Add Prospect');"
styleClass="addButton" titleKey="button.add.prospect" value="Add"/>
function setUserAction(target) {document.forms[0].userAction.value=target;}
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]