submit button internationalization.
Has anyone come up with a cool way to internationalize a submit button using the html:submit tag? html:submit property=xmit value=%=org.apache.struts.util.RequestUtils.message(pageContext, org.apache.struts.action.Action.MESSAGES_KEY, org.apache.struts.action.Action.LOCALE_KEY,button.save)% styleClass=formField/ I was thinking about extending the html:submit tag to include an attribute valueKey and have that set the value. -Mark
Re: submit button internationalization.
I could be wrong, but this is what I use and it doesn't get much simpler: html:submit property=xxxbean:message key=yyy//html:submit where xxx = the value of the button to evaluate in your action class and yyy = the message key in your ApplicationResourses.properties file -Jonathan --- Mark Gordon [EMAIL PROTECTED] wrote: Has anyone come up with a cool way to internationalize a submit button using the html:submit tag? html:submit property=xmit value=%=org.apache.struts.util.RequestUtils.message(pageContext, org.apache.struts.action.Action.MESSAGES_KEY, org.apache.struts.action.Action.LOCALE_KEY,button.save)% styleClass=formField/ I was thinking about extending the html:submit tag to include an attribute valueKey and have that set the value. -Mark = _ Jonathan R. OkinEmail: [EMAIL PROTECTED] President, Cambridge Consulting, Inc. Phone: 973-763-8239 74 Boyden Avenue Maplewood, NJ 07040Alternate Phone: 973-763-8260 Maine: Frenchman Bay, Winter Harbor, ME 04693 Phone: 207-963-2355 __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Re: submit button internationalization.
Have you tried: html:submit property=xmit styleClass=formField bean:message key=button.save/ /html:submit Where the key is defined in your ApplicationRessources. I guess that should do it ... Wolfgang Mark Gordon wrote: Has anyone come up with a cool way to internationalize a submit button using the html:submit tag? html:submit property=xmit value=%=org.apache.struts.util.RequestUtils.message(pageContext, org.apache.struts.action.Action.MESSAGES_KEY, org.apache.struts.action.Action.LOCALE_KEY,button.save)% styleClass=formField/ I was thinking about extending the html:submit tag to include an attribute valueKey and have that set the value. -Mark
RES: submit button internationalization.
Hi Mark, have you tried this? html:submit bean:message key=button.save/ /html:submit -Mensagem original- De: Mark Gordon [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 24 de outubro de 2001 22:00 Para: [EMAIL PROTECTED] Assunto: submit button internationalization. Has anyone come up with a cool way to internationalize a submit button using the html:submit tag? html:submit property=xmit value=%=org.apache.struts.util.RequestUtils.message(pageContext, org.apache.struts.action.Action.MESSAGES_KEY, org.apache.struts.action.Action.LOCALE_KEY,button.save)% styleClass=formField/ I was thinking about extending the html:submit tag to include an attribute valueKey and have that set the value. -Mark