Jason, the 

Label="@[EMAIL PROTECTED]('e
mail.label','#com.opensymphony.xwork.ActionContext.locale')"

gives an empty String.

-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de
Adrian Fernandez
Enviado el: Viernes, 16 de Enero de 2004 04:50 p.m.
Para: [EMAIL PROTECTED]
Asunto: RE: [OS-webwork] i18n in taglibs

Exactly. 

-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de
Jason Carreira
Enviado el: Viernes, 16 de Enero de 2004 04:29 p.m.
Para: [EMAIL PROTECTED]
Asunto: RE: [OS-webwork] i18n in taglibs

Ahh... This is in a JSP page that's hit without an Action? In that case,
you won't have anything on the ValueStack to call getText() on... You
could use the <ww:action> tag to execute an Action from the page (Page
Controller Pattern) and use that... Otherwise you need to set up
somewhere for the ValueStack to find texts.

If you have them as default resource bundles, you could use:

Label="@[EMAIL PROTECTED]('e
mail.label','#com.opensymphony.xwork.ActionContext.locale')"

Actually I'm not sure if that will work, just because I'm not sure if
that second part will get the Locale out of the ActionContext...
Patrick, any ideas?

Jason

> -----Original Message-----
> From: Adrian Fernandez [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 16, 2004 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] i18n in taglibs
> 
> 
> The example page where you tested that getText, was a result 
> page or an input form, where no Action was performed?
> 
> Maybe getText() will work only in a post Action execution page.
> 
> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] En 
> nombre de Jason Carreira Enviado el: Viernes, 16 de Enero de 
> 2004 03:41 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: RE: [OS-webwork] i18n in taglibs
> 
> OK... It's changed from WW1 I guess.... It's 
> getText('email.label')... Just tested in the WW example i18n app...
> 
> > -----Original Message-----
> > From: Adrian Fernandez [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 16, 2004 1:24 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] i18n in taglibs
> > 
> > 
> > label="text('email.label')" won't made it. Thanks for your help.
> > 
> > I'll see what I can do.
> > 
> > -----Mensaje original-----
> > De: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] En
> > nombre de Jason Carreira Enviado el: Viernes, 16 de Enero de 
> > 2004 11:55 a.m.
> > Para: [EMAIL PROTECTED]
> > Asunto: RE: [OS-webwork] i18n in taglibs
> > 
> > Try this:
> > 
> > <ww:textfield label="text('email.label')" name="'user.email'"/>
> > 
> > 
> > > -----Original Message-----
> > > From: Adrian Fernandez [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 16, 2004 9:23 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OS-webwork] i18n in taglibs
> > > 
> > > 
> > > If I want to make 'Email' of this form i18n-able
> > > 
> > > <%@ taglib prefix="ww" uri="webwork" %>
> > > 
> > > <ww:form name="'createUserForm'" action="'createUser.action'" 
> > > method="'POST'"> <ww:textfield label="'Email'" 
> name="'user.email'"/> 
> > > <ww:submit value="'create'" /> </ww:form>
> > > 
> > > Do I have to:
> > > 
> > > - Use the <ww:i18n> tag?
> > > - Add getText('email.label') on the textfield label?
> > > - Modify controlheader.vm to use 
> > > $stack.findValue(getText('email.label'))?
> > > 
> > > There are no problems in validation messages i18n
> > > Does WW2 support i18n for tags?
> > > What would be the exact modification?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > The SF.Net email is sponsored by EclipseCon 2004
> > > Premiere Conference on Open Tools Development and Integration See 
> > > the breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
> > > http://www.eclipsecon.org/osdn 
> > > _______________________________________________
> > > Opensymphony-webwork mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > > 
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and 
> Integration See the 
> > breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
> > http://www.eclipsecon.org/osdn 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and 
> Integration See the 
> > breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
> > http://www.eclipsecon.org/osdn 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to