Re: Where is the documentation for Struts tags ....
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 submit, or how that should become a map -- there are only one set of values, not pairs...Even if you get this to render the html I'm guessing that you expect: input type=checkbox name=selectedroles value=ROLE_ADMIN id=selectedroles-1/ input type=checkbox name=selectedroles value=ROLE_USER id=selectedroles-2 checked=checked/ input type=checkbox name=selectedroles value=ROLE_UBER id=selectedroles-3/ I don't see how you'd get a map out of that. You could get a String[] easily, which would be the ROLE_ values that were checked... The final clue! I changed my jsp to; s:checkboxlist name=selectedroles list=%{availableroles} value=%{preselectedroles}/ which gives me a much more sensible looking Html representation: input type=checkbox name=selectedroles value=ROLE_ADMIN id=selectedroles-1/ label for=selectedroles-1 class=checkboxLabelAdminstrator/label input type=checkbox name=selectedroles value=ROLE_USER id=selectedroles-2 checked=checked/ label for=selectedroles-2 class=checkboxLabelDiagnostics/label input type=checkbox name=selectedroles value=ROLE_UBER id=selectedroles-3/ label for=selectedroles-3 class=checkboxLabelUnrestricted/label input type=hidden id=__multiselect_checkbox_selectedroles name=__multiselect_selectedroles value= / Now when I submit the form, after changing the form method to GET so I can look at what is submitted with HttpHeaders (why I never thought of that before?) and I see that checkbox?selectedroles=ROLE_ADMINselectedroles=ROLE_USERselectedroles=ROLE_UBER__multiselect_selectedroles= is sent. I saw an exception being thrown No such method for setSelectedRoles(String) and the message Invalid field value for field selectedRoles displayed in the web-page, which must be coming from the checkbox handling routines as it certainly isn't coming from me. So I changed the method setSelectedRoles(MapString,String selectedRoles) to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and what comes back is, as you suspected all along, a string value that contains a comma separated list of the selected values ie ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split shove back into the map of selected Roles. Phew! I would never have worked that one out without your help and I certainly wouldn't have worked it out from the available documentation. Either checkboxlist will not return a map under any circumstances, in which case the documentation should say so, or there is a way of forcing the name attribute to evaluate to something that Struts would interpret as a map entry that I haven't worked out yet. Thanks a million Regards -- View this message in context: http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28457393.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
Re: s:select help
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 On Tue, May 4, 2010 at 6:33 PM, RogerV roger.var...@googlemail.com wrote: Upasana Sharma wrote: listValue=%{getText('myCategory.'+toString())} this way i can change the select display value from .properties file in .properties i have to use myCategory.ELECTRIC= Electric Neat. I'm trying to do the same thing with the s:radio tag. s:radio list=allowedValues listValues=%{getText()}/ the list allowedValues is a list of String values that need translating for display. listValues is the correct parameter to specify translation on because debug shows that getText() is called for each entry in the list. I just can't work out how to pass the value into the getText() so it gets translated. Any pointers would be welcome. Regards -- View this message in context: http://old.nabble.com/s%3Aselect-help-tp28443569p28447107.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 -- Thanks and Regards Upasana Sharma
Re: Where is the documentation for Struts tags ....
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 don't understand what you expect this to submit, or how that should become a map -- there are only one set of values, not pairs...Even if you get this to render the html I'm guessing that you expect: input type=checkbox name=selectedroles value=ROLE_ADMIN id=selectedroles-1/ input type=checkbox name=selectedroles value=ROLE_USER id=selectedroles-2 checked=checked/ input type=checkbox name=selectedroles value=ROLE_UBER id=selectedroles-3/ I don't see how you'd get a map out of that. You could get a String[] easily, which would be the ROLE_ values that were checked... The final clue! I changed my jsp to; s:checkboxlist name=selectedroles list=%{availableroles} value=%{preselectedroles}/ which gives me a much more sensible looking Html representation: input type=checkbox name=selectedroles value=ROLE_ADMIN id=selectedroles-1/ label for=selectedroles-1 class=checkboxLabelAdminstrator/label input type=checkbox name=selectedroles value=ROLE_USER id=selectedroles-2 checked=checked/ label for=selectedroles-2 class=checkboxLabelDiagnostics/label input type=checkbox name=selectedroles value=ROLE_UBER id=selectedroles-3/ label for=selectedroles-3 class=checkboxLabelUnrestricted/label input type=hidden id=__multiselect_checkbox_selectedroles name=__multiselect_selectedroles value= / Now when I submit the form, after changing the form method to GET so I can look at what is submitted with HttpHeaders (why I never thought of that before?) and I see that checkbox?selectedroles=ROLE_ADMINselectedroles=ROLE_USERselectedroles=ROLE_UBER__multiselect_selectedroles= is sent. I saw an exception being thrown No such method for setSelectedRoles(String) and the message Invalid field value for field selectedRoles displayed in the web-page, which must be coming from the checkbox handling routines as it certainly isn't coming from me. So I changed the method setSelectedRoles(MapString,String selectedRoles) to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and what comes back is, as you suspected all along, a string value that contains a comma separated list of the selected values ie ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split shove back into the map of selected Roles. Phew! I would never have worked that one out without your help and I certainly wouldn't have worked it out from the available documentation. Either checkboxlist will not return a map under any circumstances, in which case the documentation should say so, or there is a way of forcing the name attribute to evaluate to something that Struts would interpret as a map entry that I haven't worked out yet. Thanks a million Regards 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. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:checkboxlist help
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 advance
Re: ExecAndWait interceptor parameters lost
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 can't resolve and I would appreciate your help. I am using the struts2 execAndWait interceptor when I submit a form on my site. Below is the relevant struts.xml snippet interceptor-stack name=loadingStack interceptor-ref name=defaultStack / interceptor-ref name=execAndWait / /interceptor-stack action name=ProcessTripForm class=actions.ProcessTripForm interceptor-ref name=loadingStack/interceptor-ref result name=input/jsp/unscheduled.jsp/result result name=success type=chainProcessTrips/result result name=wait/jsp/wait.jsp/result /action action name=ProcessTrips class=actions.ProcessTrips result name=success/jsp/results.jsp/result result name=noFilteredResults/jsp/emptyFilteredResults.jsp/result result name=none/jsp/no_results.jsp/result /action The problem I have, is that when I submit my form via POST and produce some results then if I try to refresh the results page (results.jsp) those data previously send via POST do not exist anymore, so I'm redirected to the wait page and finally because data do not exist to an error page (that does not happen in Firefox where data somehow are preserved in refresh). Obviously data are erased the first time the wait page is auto-refreshed. FYI here is a simplified version of my wait.jsp html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=refresh content=3;s:url includeParams=all// titleWait Page/title /head body div pWaiting.../p /div /body /html I could solve this problem by using includeParams=all in s:url (as seen above) when refreshing wait page but then the data are seen in the URL (aside the fact that there is a ton of data).Also, when data are not latin characters then after the first refresh the character encoding in URL fails, so cannot be used later for repeating the request with refresh (e.g. ProcessTripForm.action?originCity=Ηράκλειο is becoming after the first refresh ProcessTripForm.action?originCity=%26%23xCE%3B%26%23x97%3B%26%23xCF%3B %26%23x81%3B%26%23xCE%3B%26%23xAC%3B and continues to expand). My question is how can I preserve data when I use the execAndWait interceptor and use a POST request in a way that when I'm on result page and hit refresh the same request will be repeated? If that is not possible, and I have the data on my URL via GET and includeParams then what do I have to do so encoding does not fail ? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:checkboxlist help
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 Sharma a écrit : 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 advance - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:checkboxlist help
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 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 Sharma a écrit : 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 advance - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Thanks and Regards Upasana Sharma
Re: [VOTE] Move future struts releases to apache's Nexus Pro instance
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, e-mail: user-h...@struts.apache.org
Re: [VOTE] Move future struts releases to apache's Nexus Pro instance
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 additional commands, e-mail: user-h...@struts.apache.org
Re: Where is the documentation for Struts tags ....
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 auto-translate a String of comma seperated values into a ListString which tidies things up a bit. Thanks -- View this message in context: http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28459108.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
Re: ExecAndWait interceptor parameters lost
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 return him the results of a newer request (because last request parameters would be saved in session) causing confusion to the user. On Wed, May 5, 2010 at 12:06 PM, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote: 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 can't resolve and I would appreciate your help. I am using the struts2 execAndWait interceptor when I submit a form on my site. Below is the relevant struts.xml snippet interceptor-stack name=loadingStack interceptor-ref name=defaultStack / interceptor-ref name=execAndWait / /interceptor-stack action name=ProcessTripForm class=actions.ProcessTripForm interceptor-ref name=loadingStack/interceptor-ref result name=input/jsp/unscheduled.jsp/result result name=success type=chainProcessTrips/result result name=wait/jsp/wait.jsp/result /action action name=ProcessTrips class=actions.ProcessTrips result name=success/jsp/results.jsp/result result name=noFilteredResults/jsp/emptyFilteredResults.jsp/result result name=none/jsp/no_results.jsp/result /action The problem I have, is that when I submit my form via POST and produce some results then if I try to refresh the results page (results.jsp) those data previously send via POST do not exist anymore, so I'm redirected to the wait page and finally because data do not exist to an error page (that does not happen in Firefox where data somehow are preserved in refresh). Obviously data are erased the first time the wait page is auto-refreshed. FYI here is a simplified version of my wait.jsp html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=refresh content=3;s:url includeParams=all// titleWait Page/title /head body div pWaiting.../p /div /body /html I could solve this problem by using includeParams=all in s:url (as seen above) when refreshing wait page but then the data are seen in the URL (aside the fact that there is a ton of data).Also, when data are not latin characters then after the first refresh the character encoding in URL fails, so cannot be used later for repeating the request with refresh (e.g. ProcessTripForm.action?originCity=Ηράκλειο is becoming after the first refresh ProcessTripForm.action?originCity=%26%23xCE%3B%26%23x97%3B%26%23xCF%3B %26%23x81%3B%26%23xCE%3B%26%23xAC%3B and continues to expand). My question is how can I preserve data when I use the execAndWait interceptor and use a POST request in a way that when I'm on result page and hit refresh the same request will be repeated? If that is not possible, and I have the data on my URL via GET and includeParams then what do I have to do so encoding does not fail ? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ExecAndWait interceptor parameters lost
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. So if he tried to refresh an older request this would return him the results of a newer request (because last request parameters would be saved in session) causing confusion to the user. Maybe that's the first thing you need to learn now. Two different requests are two different requests, period. Either you use URL rewriting to pass parameters from one request to the next or you use session attributes. I personally prefer the latter. I'm not too familiar with the ExecAndWait interceptor but i would not be surprised if it does not work with URL rewriting at all, so you may be forced to use session attributes. Robert On Wed, May 5, 2010 at 12:06 PM, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote: 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 can't resolve and I would appreciate your help. I am using the struts2 execAndWait interceptor when I submit a form on my site. Below is the relevant struts.xml snippet interceptor-stack name=loadingStack interceptor-ref name=defaultStack / interceptor-ref name=execAndWait / /interceptor-stack action name=ProcessTripForm class=actions.ProcessTripForm interceptor-ref name=loadingStack/interceptor-ref result name=input/jsp/unscheduled.jsp/result result name=success type=chainProcessTrips/result result name=wait/jsp/wait.jsp/result /action action name=ProcessTrips class=actions.ProcessTrips result name=success/jsp/results.jsp/result result name=noFilteredResults/jsp/emptyFilteredResults.jsp/result result name=none/jsp/no_results.jsp/result /action The problem I have, is that when I submit my form via POST and produce some results then if I try to refresh the results page (results.jsp) those data previously send via POST do not exist anymore, so I'm redirected to the wait page and finally because data do not exist to an error page (that does not happen in Firefox where data somehow are preserved in refresh). Obviously data are erased the first time the wait page is auto-refreshed. FYI here is a simplified version of my wait.jsp html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=refresh content=3;s:url includeParams=all// titleWait Page/title /head body div pWaiting.../p /div /body /html I could solve this problem by using includeParams=all in s:url (as seen above) when refreshing wait page but then the data are seen in the URL (aside the fact that there is a ton of data).Also, when data are not latin characters then after the first refresh the character encoding in URL fails, so cannot be used later for repeating the request with refresh (e.g. ProcessTripForm.action?originCity=Ηράκλειο is becoming after the first refresh ProcessTripForm.action?originCity=%26%23xCE%3B%26%23x97%3B%26%23xCF%3B %26%23x81%3B%26%23xCE%3B%26%23xAC%3B and continues to expand). My question is how can I preserve data when I use the execAndWait interceptor and use a POST request in a way that when I'm on result page and hit refresh the same request will be repeated? If that is not possible, and I have the data on my URL via GET and includeParams then what do I have to do so encoding does not fail ? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where is the documentation for Struts tags ....
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 being thrown No such method for setSelectedRoles(String) and the message Very confusing that everyplace I've seen you have a lower case r in selectedroles, but here it's looking for capital r... So I changed the method setSelectedRoles(MapString,String selectedRoles) to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and what comes back is, as you suspected all along, a string value that contains a comma separated list of the selected values ie ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split shove back into the map of selected Roles. The framework can be a bit more helpful than that -- if you make that take an array of Strings it should pre-split them up for you. I'd go through and make sure you've got your capitalization consistent everywhere, too. Phew! I would never have worked that one out without your help and I certainly wouldn't have worked it out from the available documentation. 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... Either checkboxlist will not return a map under any circumstances, in which case the documentation should say so, or there is a way of forcing the name attribute to evaluate to something that Struts would interpret as a map entry that I haven't worked out yet. The tags are really only a server output thing -- is there someplace it appears to say how the results will come back? Documentation for that should be wherever the params interceptor is documented. Having that generate a map would require pairs of linked data coming in with the request, and I can't think of how that'd happen with standard html tags... -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where is the documentation for Struts tags ....
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 s:checkboxlist tag working with map backed parameters if you think that would help, and you'd mention where you'd like it sent. Longer term I would like to see something like the showcase for the JQuery plugin that shows working examples and source code for all the tags. The struts showcase.war doesn't use s:checkboxlist at all! The irony of it all is that I only went with a map originally as I wanted to present user-friendly name for ROLE_USER etc. If I'd seen the recent thread http://old.nabble.com/s%3Aselect-help-td28443569.html before I'd started I might have avoided the pain altogether Thanks again Dale -- View this message in context: http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28461295.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
[s2] broken documentation in web site
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 last ones with the older ones: http://struts.apache.org/2.0.14/docs/stream-result.html http://struts.apache.org/2.0.14/docs/writing-interceptors.html -- Hernán J. González http://hjg.com.ar/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [s2] broken documentation in web site
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 http://struts.apache.org/2.x/docs/writing-interceptors.html Compare the last ones with the older ones: http://struts.apache.org/2.0.14/docs/stream-result.html http://struts.apache.org/2.0.14/docs/writing-interceptors.html It looks like that something went wrong during exporting to html, please check the source - https://cwiki.apache.org/confluence/display/WW/Stream+Result 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, e-mail: user-h...@struts.apache.org
Re: [s2] broken documentation in web site
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 :-( 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, e-mail: user-h...@struts.apache.org
Re: [s2] broken documentation in web site
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/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ExecAndWait interceptor parameters lost
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 action name to look up the already-running action. The original thread is continuing to run and should still have the parameter values from the launching request. When it completes the next matching request to come in will be handled with the original (launching) action instance. This means that the intermediate Is it done yet? requests don't need any parameters. I've basically always found that the chain result type causes many more problems than it solves. Any reason you can't just make the SUCCESS result for the execAndWait action the same as what you currently have as the SUCCESS result for your chained action? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where is the documentation for Struts tags ....
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 need to file a CLA with someone at apache...or you might just be able to add a comment anonymously...not sure. See if https://cwiki.apache.org/confluence/display/WW/Struts+2+Form+Tags?showComments=trueshowCommentArea=true#addcomment works. The irony of it all is that I only went with a map originally as I wanted to present user-friendly name for ROLE_USER etc. Yes--although you should suspect pretty much any value provided by the user, so you want to output the name and key, but upon submission only expect the key and do a lookup based on that. Thanks again Dale Sure! Best way to pay struts back is to help us with the documentation, and/or stay subscribed to this list so that you might be able to help someone else over the same hurdles that you've already cleared. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [s2] broken documentation in web site
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 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/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hernán J. González http://hjg.com.ar/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Generic search pop up
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 with a s:autocomplete balise. That I would like to do is to create a genreic jsp page which would appear in pop up and would permit to search on diffrent kind of entities according to a parameter I give to it. For exemple if i call my pop up with parameter '1', the s:autocomplet will search the companies, if i call it with parameter '2' the s:autocomplete will search clients. I have two question : how to manage pop up with struts 2, is it useful tu use jquery to do it ? Do you think i have a good approach of the problem ? Does an easier way exist to do it ? Best regards, -- Stéphane Cosmeur
Re: input fields with dynamic names
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 also helped me a lot. Also works with MapInteger,Integer in general. My problem which I posted here before a few weeks was, I always wanted to implement a setter in the action method for this. Mario smime.p7s Description: S/MIME Cryptographic Signature