You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lukasz Lenart <lu...@googlemail.com> on 2011/06/07 11:57:59 UTC
Re: ognl and getText for s:textfield/placeholder
2011/6/7 Stephen Ince <st...@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Lukasz Lenart <lu...@googlemail.com>.
2011/6/7 Stephen Ince <st...@gmail.com>:
> Thanx a lot Lukask! That was quick.
Please test it if you can, thanks in advance!
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Stephen Ince <st...@gmail.com>.
Thanx a lot Lukask! That was quick.
Steve
----- Original Message -----
From: "Lukasz Lenart" <lu...@googlemail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, June 07, 2011 7:40 AM
Subject: Re: ognl and getText for s:textfield/placeholder
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 <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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"
>> <lu...@googlemail.com>
>> To: "Struts Users Mailing List" <us...@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 <st...@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"
>>> <lu...@googlemail.com>
>>> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Lukasz Lenart <lu...@googlemail.com>.
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 <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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"
>> <lu...@googlemail.com>
>> To: "Struts Users Mailing List" <us...@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 <st...@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"
>>> <lu...@googlemail.com>
>>> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Stephen Ince <st...@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" <lu...@googlemail.com>
To: "Struts Users Mailing List" <us...@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 <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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"
>> <lu...@googlemail.com>
>> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Lukasz Lenart <lu...@googlemail.com>.
https://issues.apache.org/jira/browse/WW
2011/6/7 Stephen Ince <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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"
>> <lu...@googlemail.com>
>> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Stephen Ince <st...@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" <lu...@googlemail.com>
To: "Struts Users Mailing List" <us...@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 <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Lukasz Lenart <lu...@googlemail.com>.
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 <st...@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"
> <lu...@googlemail.com>
> To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ognl and getText for s:textfield/placeholder
Posted by Stephen Ince <st...@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" <lu...@googlemail.com>
To: "Struts Users Mailing List" <us...@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 <st...@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org