, Hai [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 19. Juli 2002 05:56
To: '[EMAIL PROTECTED]'
Subject: how to Internationalized submit button?
I want to internationalize the submit buttons on a form and I
don't know how
to do it. Currently, I mapped the value on the submit button to the
property
I want to internationalize the submit buttons on a form and I don't know how
to do it. Currently, I mapped the value on the submit button to the
property actionName in the ActionForm class. Base on the button the use
clicked, I handle it propriately in the Action class, just like event
handling
You can use hidden field and Javascript.
SCRIPT
function setAction(target) {
document.forms[0].actionName.value=target;
}
/SCRIPT
$B!D(B
html:hidden property="actionName" value="Add"/
html:submit
property="foo" onClick="setAction('Add');"/bean:message
key="button.add"//html:submit
3 matches
Mail list logo