Ok, solved, please wait a bit, SNAPSHOT version should be available soon ;-)
Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/6/7 Stephen Ince <stephenpi...@gmail.com>: > > Lukasz, > I reported the issue. Thx again for you time. > > Steve > https://issues.apache.org/jira/browse/WW-3644 > > ----- Original Message ----- From: "Lukasz Lenart" > <lukasz.len...@googlemail.com> > To: "Struts Users Mailing List" <user@struts.apache.org> > Sent: Tuesday, June 07, 2011 7:07 AM > Subject: Re: ognl and getText for s:textfield/placeholder > > > https://issues.apache.org/jira/browse/WW > > 2011/6/7 Stephen Ince <stephenpi...@gmail.com>: >> >> Sure. Can you point to the where I should report the issue? >> placeHolder will be an issue for HTML5 and anyone wanting to use resource >> keys. >> >> Steve >> ----- Original Message ----- From: "Lukasz Lenart" >> <lukasz.len...@googlemail.com> >> To: "Struts Users Mailing List" <user@struts.apache.org> >> Sent: Tuesday, June 07, 2011 6:57 AM >> Subject: Re: ognl and getText for s:textfield/placeholder >> >> >> It isn't supported, but it can be, I think. Could you register an >> issue ? It's not only related to Dojo tags (as TextField doesn't have >> Dojo version). >> >> The change should be simple: >> >> AbstractUITag, line 294 >> >> public void setDynamicAttribute(String uri, String localName, >> Object value) throws JspException { >> dynamicAttributes.put(localName, value); >> } >> >> and replace with >> >> public void setDynamicAttribute(String uri, String localName, >> Object value) throws JspException { >> dynamicAttributes.put(localName, findString(value)); >> } >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> Warszawa JUG conference - Confitura http://confitura.pl/ >> >> >> 2011/6/7 Stephen Ince <stephenpi...@gmail.com>: >>> >>> Lukasz, >>> Thx for your response. A resource key. I tried that. It seems that strut2 >>> will only ognl evaluate certains fields and "placeholder" is not one of >>> the >>> fields. Is there a flag that I can tell struts2 to evaluate placeholder >>> field. >>> >>> The following did work: >>> <s:submit dojoType="dijit.form.Button" theme="simple" type="button" >>> value='%{getText("placeHolder.Username")}' /> >>> >>> The submit button has the correct resource key value. >>> but this will not work. >>> <s:textfield dojoType="dijit.form.ValidationTextBox" theme="simple" >>> placeholder='%{getText("placeHolder.Username")}' id="j_username" >>> name="j_username" cssStyle="width:180px" /> >>> >>> Steve >>> ----- Original Message ----- From: "Lukasz Lenart" >>> <lukasz.len...@googlemail.com> >>> To: "Struts Users Mailing List" <user@struts.apache.org> >>> Sent: Tuesday, June 07, 2011 5:57 AM >>> Subject: Re: ognl and getText for s:textfield/placeholder >>> >>> >>> 2011/6/7 Stephen Ince <stephenpi...@gmail.com>: >>>> >>>> <s:textfield dojoType="dijit.form.ValidationTextBox" theme="simple" >>>> placeholder="%{getText('placeHolder.Username')}" id="j_username" >>>> name="j_username" cssStyle="width:180px" /> >>> >>> What is placeHolder, a bean or a resource key ? >>> >>> If bean: "%{getText(placeHolder.Username)}" >>> If key: '%{getText("placeHolder.Username")}' >>> >>> >>> Regards >>> -- >>> Łukasz >>> + 48 606 323 122 http://www.lenart.org.pl/ >>> Warszawa JUG conference - Confitura http://confitura.pl/ >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org