struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thim Anneessens <t.anneess...@ictjob.be>
Subject Re: Inconsistency in Struts2 s:component parameters handling
Date Thu, 06 Dec 2012 10:25:00 GMT
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.anneessens@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


Mime
View raw message