Re: Struts 2 tag

2009-10-08 Thread dcabasson

Hi Roger,

I usually use


Denis. 

RogerV wrote:
> 
> 
> 
> Gregor Marinšek wrote:
>> 
>> You don't have to use "value", because s:iterator puts the value on the 
>> top of ValueStack. What about:
>> 
>>  
>> I assume you are iterating over objects, with defined get/setType
>> Gregor
>> 
> 
> Thanks Gregor, that works - in conjunction with another older nabble post
> which discusses whether the "object" returned implemented the equals
> method. In fact "type" is an Enum - so I provided a method on my Action to
> return the value as a String and called that instead, so now I've got
>  which works whereas  test="%{type=='ENUM'}"> doesn't.
> 
> For future reference, how would I handle an Enum in  (I'm not
> confusing things, the
> value ENUM is one of the values of the Enum type in this instance)
> 
> Regards
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-%3Cs%3Aif%3E-tag-tp25801138p25815556.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[Struts 2.1] Using a s:select with type conversion

2009-07-13 Thread dcabasson

Hi, I have trouble understanding the way TypeConversion along a s:select tag.

Any advice on the matter would be welcomed.

I have posted the bug under https://issues.apache.org/struts/browse/WW-3184
attaching a simple Use Case showing what I find to be an unexpected
behaviour.

Thanks for your help!
Denis.
-- 
View this message in context: 
http://www.nabble.com/-Struts-2.1--Using-a-s%3Aselect-with-type-conversion-tp24467738p24467738.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[Struts 2.1]Does an alias result exist in struts 2?

2009-07-13 Thread dcabasson

Hi all,

I am wondering if there is an "alias" result in struts 2.

The use case for such a result type would be for when some of the results
are the same. Say SUCCESS and INPUT actually go both to the same location,
it would be nice to be able to define SUCCESS and have INPUT be only an
alias of SUCCESS.

An even more specific use of that result would be when you define a global
result in the struts 2 configuration (say HOME), and you want the INPUT
result to point to this global result of HOME. You have to name your result
INPUT on that action, for validation purposes, but currently you have no way
of telling struts this INPUT result is only an alias of the gloabl HOME
result.

Does that make sense to you guys? Is that worth entering a JIRA ticket for
that enhancement?

Thanks!
Denis.
-- 
View this message in context: 
http://www.nabble.com/-Struts-2.1-Does-an-alias-result-exist-in-struts-2--tp24463634p24463634.html
Sent from the Struts - User mailing list archive at Nabble.com.


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