Re: Where is the documentation for Struts tags ....

2010-05-05 Thread RogerV
So if it's looking for a string, let's make sure you're giving it one, and not the .toString of an empty map that it got from your prepare method: s:checkboxlist name=%{'selectedroles'} list=%{availableroles} value=%{preselectedroles}/ I must admit I don't understand what you expect this to

Re: s:select help

2010-05-05 Thread Upasana Sharma
i am too trying to do the same thing using checkbox s:checkboxlist list=#{0:'',1:'',2:''} name=user label=%{getText('com.upasana.type.'+toString())}/s:checkboxlist but the key value is not passed to getText() if you come up with some way to achieve this please let us know thanks in advance

Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Alex Rodriguez Lopez
Em 05-05-2010 07:57, RogerV escreveu: So if it's looking for a string, let's make sure you're giving it one, and not the .toString of an empty map that it got from your prepare method: s:checkboxlist name=%{'selectedroles'} list=%{availableroles} value=%{preselectedroles}/ I must admit I

s:checkboxlist help

2010-05-05 Thread Upasana Sharma
s:checkboxlist list=#{0:'',1:'',2:''} name=user label=%{getText('com.upasana.type.'+toString())}/s:checkboxlist But the key value is not passed to getText() The idea is to just initialize the keys in the checkboxlist and fetch the corresponding display text from .properties file Thanks in

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Alex Rodriguez Lopez
Hi, you can store data in session and retrieve it later on. Data stored in session is persisted through requests. ActionContext.getContext().getSession(); http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionContext.html Hi, I have an issue in my code that I

Re: s:checkboxlist help

2010-05-05 Thread Sébastien Domergue
Hi, the label attribute is only used to render the label of the group of checkboxes. It is not used in an iterative way. In order to access to your .properties file, you have to build your list in your action then give it in list attribute. Regards Sébastien Le 05/05/2010 10:56, Upasana

Re: s:checkboxlist help

2010-05-05 Thread Upasana Sharma
thanks for the response the issue is solved as s:checkboxlist list=#{0:'',1:'',2:'',3:'',4:''} name=user listValue=%{getText('com.upasana..type.'+ key.toString())}/s:checkboxlist On Wed, May 5, 2010 at 2:41 PM, Sébastien Domergue sebastien.domer...@c-s.fr wrote: Hi, the label

Re: [VOTE] Move future struts releases to apache's Nexus Pro instance

2010-05-05 Thread Lukasz Lenart
Hi all! As the Vote passed, I'm going forward! Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: [VOTE] Move future struts releases to apache's Nexus Pro instance

2010-05-05 Thread Lukasz Lenart
And the task for Infra https://issues.apache.org/jira/browse/INFRA-2682 Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Where is the documentation for Struts tags ....

2010-05-05 Thread RogerV
Alex Rodriguez Lopez wrote: Roger, you can use a list as setSelectedRoles(ListString selectedRoles) that will get filled with multiple Strings, this way you can iterate it easily without having to split the comma separated string. Yes, you're absolutely correct. Struts will

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Yiorgos Panayiotakis
Thank you, Though I have little experience in web development I was aware of that, but I avoided using sessions due to the fact that a user could open multiple tabs in a browser and issue multiple requests that would belong to the same session. So if he tried to refresh an older request this would

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Robert Graf-Waczenski
Am 05.05.2010 12:42, schrieb Yiorgos Panayiotakis: Thank you, Though I have little experience in web development I was aware of that, but I avoided using sessions due to the fact that a user could open multiple tabs in a browser and issue multiple requests that would belong to the same session.

Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Dale Newfield
On 5/5/10 2:57 AM, RogerV wrote: The final clue! I changed my jsp to; s:checkboxlist name=selectedroles list=%{availableroles} value=%{preselectedroles}/ checkbox?selectedroles=ROLE_ADMINselectedroles=ROLE_USERselectedroles=ROLE_UBER__multiselect_selectedroles= is sent. I saw an exception

Re: Where is the documentation for Struts tags ....

2010-05-05 Thread RogerV
DNewfield wrote: Sorry you had such difficulty. If you have any specific suggestions for the documentation, please help us improve it so that it can better help the next person... I'd be happy to contribute my sample .jsp and action.java code that will illustrate how to get the

[s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
Since several days ago, the docs in the webpage of Struts2 are badly broken, in particular the examples and code. Examples https://cwiki.apache.org/WW/stream-result.html http://struts.apache.org/2.x/docs/stream-result.html http://struts.apache.org/2.x/docs/writing-interceptors.html Compare the

Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 hernan gonzalez hgonza...@gmail.com: Since several days ago, the docs in the webpage of Struts2 are badly broken, in particular the examples and code. Examples https://cwiki.apache.org/WW/stream-result.html http://struts.apache.org/2.x/docs/stream-result.html

Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 Lukasz Lenart lukasz.len...@googlemail.com: It looks like that something went wrong during exporting to html, please check the source - https://cwiki.apache.org/confluence/display/WW/Stream+Result Hmm something strange, the code is there but highlighting doesn't work any more :-(

Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 Lukasz Lenart lukasz.len...@googlemail.com: Hmm something strange, the code is there but highlighting doesn't work any more :-( Here it is - https://issues.apache.org/jira/browse/INFRA-2638 but I have no clue how to solve that :P Regards -- Łukasz http://www.lenart.org.pl/

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Dale Newfield
I believe that your problem isn't with execAndWait -- it's with the chain result type. The way that execAndWait works is that there's only one job runnable at a time in any given session with any given action name. The intermediate requests don't need the arguments as it's just using the

Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Dale Newfield
On 5/5/10 9:58 AM, RogerV wrote: I'd be happy to contribute I'd think the best place is: https://cwiki.apache.org/confluence/display/WW/Struts+2+Form+Tags I forget what hoops you have to jump through to get a working wiki account...if it doesn't just work when you try to register you might

Re: [s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
It seems quite probable that all will get fixed when the docs are regenerated. Can somebody force a full regeneration? On Wed, May 5, 2010 at 12:00 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/5/5 Lukasz Lenart lukasz.len...@googlemail.com: Hmm something strange, the code is

Generic search pop up

2010-05-05 Thread Stephane Cosmeur
Hello struts users ! I am building a web application whose users will often need to search many diffrent kind of entity. To find it they will have the choice between to click on the element through a table (not really convinient when there are many entity) or to find it by a search on the name

Re: input fields with dynamic names

2010-05-05 Thread Mario Lipinski
Am 04.05.10 06:37, schrieb Robert Graf-Waczenski: Have your Action method getAuthorizedOptions() return something like a HashtableString,MyBean, where MyBean is your inner thingy with methods setWhateverProperty() and getWhateverProperty(). Then your iterator incantation as below: Thx. This