AW: submit button internationalization.

2001-10-26 Thread Bernhard J. Hirschmann


Thank you very much! THIS is I was looking for. Great!


> -Ursprungliche Nachricht-
> Von: Jonathan R. Okin [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Oktober 2001 15:02
> An: [EMAIL PROTECTED]
> Betreff: Re: submit button internationalization.
> 
> 
> I could be wrong, but this is what I use and it doesn't get
> much simpler:
> 
> 
> 
> 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  tag?
> > 
> >  > 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
> 



RES: submit button internationalization.

2001-10-25 Thread Rogerio Acacio Zamboim


Hi Mark, have you tried this?


  




-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  tag?

"
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.

2001-10-25 Thread Wolfgang Frank

Have you tried:





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  tag?
>
>  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.

2001-10-25 Thread Dan Hodge

Mark,
You can nest an resource string inside a submit button, like so:


  


-Dan

On Wednesday 24 October 2001 19:59, you wrote:
> Has anyone come up with a cool way to internationalize a submit button
> using the  tag?
>
>  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

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




AW: submit button internationalization.

2001-10-25 Thread Bernhard J. Hirschmann


Hello Mark,

good to know you have that problem too... ;)
I was asking something about this yesterday as well - without response.

And much better so see that there's something like
org.apache.struts.util.RequestUtils.message
This would make my solution much more easy. I've gone the hard way with
adding a reference to the MessageResources to the context...

I would appreciate an extention of the html:submit tag!

Regards,
Bernhard


> -Ursprungliche Nachricht-
> Von: Mark Gordon [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Oktober 2001 02:00
> An: [EMAIL PROTECTED]
> Betreff: submit button internationalization.
>
>
>
> Has anyone come up with a cool way to internationalize a submit button
> using the  tag?
>
>  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.

2001-10-25 Thread Roumen Ganeff

the way is





G.

-Original Message-
From: Mark Gordon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: submit button internationalization.



Has anyone come up with a cool way to internationalize a submit button 
using the  tag?

"
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.

2001-10-25 Thread Alexander Jesse

that's the way that works for me:
  

  

The tag's body is used as value...

hope this helps
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 2:00 AM
To: [EMAIL PROTECTED]
Subject: submit button internationalization.



Has anyone come up with a cool way to internationalize a submit button 
using the  tag?

"
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.

2001-10-25 Thread Jonathan R. Okin

I could be wrong, but this is what I use and it doesn't get
much simpler:



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  tag?
> 
>  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



submit button internationalization.

2001-10-25 Thread Mark Gordon


Has anyone come up with a cool way to internationalize a submit button 
using the  tag?

"
styleClass="formField"/>


I was thinking about extending the html:submit tag to include an 
attribute   valueKey  and have that  set the value.


-Mark