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...@apache.org> on 2012/12/03 22:11:21 UTC

Re: Inconsistency in Struts2 s:component parameters handling

2012/11/30 Thim Anneessens <t....@ictjob.be>
> We are using Struts 2.3.1.2 and have noticed a strange behavior in
> component parameter handling:
>
> We have a component that uses both an "id" parameter and a "title"
> parameter.
>
> What is strange is that when we use s:component, the "title" parameter
> value can either be specified using the "title" attribute of s:component or
> a s:param. The "id" parameter value can only be specified using the "id"
> attribute of s:component. Using the s:param for "id" has no effect.
>
> There seems to be no pertinent explanation for this behavior in the
> documentation and I was wondering if this behavior would evolve in further
> versions. We are currently using s:param to specify our numerous "title"
> parameters and hope that it will always be possible in the future.
>
> Could anyone shed some light on this inconsistent behavior?

It's a bit strange, it should also work the same way :\ Could you
prepare a sample app ? Maven based ?


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Inconsistency in Struts2 s:component parameters handling

Posted by Lukasz Lenart <lu...@apache.org>.
Finally I have had some time to check that and the problem is in
UIBean#escape(String) method, line 884, which will return "" instead null
if provided String is null. Please register an issue for that.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2012/12/6 Thim Anneessens <t....@ictjob.be>

>  Hi Lukasz,
>
> Here is a little maven project to illustrate the issue. Simply launch it
> with tomcat7 and you will see the issue.
> It also illustrates that id has a default value of "".
>
> Thank you for your time,
> Thim.
>
> On 12/03/2012 10:11 PM, Lukasz Lenart wrote:
>
> 2012/11/30 Thim Anneessens <t....@ictjob.be> <t....@ictjob.be>
>
>  We are using Struts 2.3.1.2 and have noticed a strange behavior in
> component parameter handling:
>
> We have a component that uses both an "id" parameter and a "title"
> parameter.
>
> What is strange is that when we use s:component, the "title" parameter
> value can either be specified using the "title" attribute of s:component or
> a s:param. The "id" parameter value can only be specified using the "id"
> attribute of s:component. Using the s:param for "id" has no effect.
>
> There seems to be no pertinent explanation for this behavior in the
> documentation and I was wondering if this behavior would evolve in further
> versions. We are currently using s:param to specify our numerous "title"
> parameters and hope that it will always be possible in the future.
>
> Could anyone shed some light on this inconsistent behavior?
>
>  It's a bit strange, it should also work the same way :\ Could you
> prepare a sample app ? Maven based ?
>
>
> Regards
> --
> Łukasz+ 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> --
>  * Thim Anneessens
> IT Department *
>
> [image: ictjob group]
>
>   ictjob.be <http://www.ictjob.be>
> Tel: +32 2 725 73 00
> Terhulpsesteenweg, 6B
> B-1560 Hoeilaart  ictjob.lu <http://www.ictjob.lu>
> Tel: +352 621 364 792
> 12, rue Eugène Ruppert
> L-2453 Luxembourg  jobtic.fr <http://www.jobtic.fr>
> Tel: +33 9 81 25 19 66
> 19 rue Martel
> 75010 Paris  ticjob.es <http://www.ticjob.es>
> Tel: +34 911 25 43 11
> Calle Santo Tomé 4, 5B
> 28004 Madrid  ictjob.de <http://www.ictjob.de>
> Tel: +49 711 91 41 07 32
> Humboldtstr. 32
> 70771 Leinfelden-Echterdingen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Re: Inconsistency in Struts2 s:component parameters handling

Posted by Thim Anneessens <t....@ictjob.be>.
Hi Lukasz,

Here is a little maven project to illustrate the issue. Simply launch it 
with tomcat7 and you will see the issue.
It also illustrates that id has a default value of "".

Thank you for your time,
Thim.

On 12/03/2012 10:11 PM, Lukasz Lenart wrote:
> 2012/11/30 Thim Anneessens <t....@ictjob.be>
>> We are using Struts 2.3.1.2 and have noticed a strange behavior in
>> component parameter handling:
>>
>> We have a component that uses both an "id" parameter and a "title"
>> parameter.
>>
>> What is strange is that when we use s:component, the "title" parameter
>> value can either be specified using the "title" attribute of s:component or
>> a s:param. The "id" parameter value can only be specified using the "id"
>> attribute of s:component. Using the s:param for "id" has no effect.
>>
>> There seems to be no pertinent explanation for this behavior in the
>> documentation and I was wondering if this behavior would evolve in further
>> versions. We are currently using s:param to specify our numerous "title"
>> parameters and hope that it will always be possible in the future.
>>
>> Could anyone shed some light on this inconsistent behavior?
> It's a bit strange, it should also work the same way :\ Could you
> prepare a sample app ? Maven based ?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


-- 
*Thim Anneessens
IT Department *

ictjob group

ictjob.be <http://www.ictjob.be>
Tel: +32 2 725 73 00
Terhulpsesteenweg, 6B
B-1560 Hoeilaart 	ictjob.lu <http://www.ictjob.lu>
Tel: +352 621 364 792
12, rue Eugène Ruppert
L-2453 Luxembourg 	jobtic.fr <http://www.jobtic.fr>
Tel: +33 9 81 25 19 66
19 rue Martel
75010 Paris 	ticjob.es <http://www.ticjob.es>
Tel: +34 911 25 43 11
Calle Santo Tomé 4, 5B
28004 Madrid 	ictjob.de <http://www.ictjob.de>
Tel: +49 711 91 41 07 32
Humboldtstr. 32
70771 Leinfelden-Echterdingen