Selection of s:optgroup on page load

2009-06-23 Thread Rubbinio
Hi, i have the select below which uses s:optgroup to group my values. The soCustomerFiltration is TreeMap, while the customerFilter is an String[]. All work well in terms of rendering except that once I select something and press a button to update the page my selection is not persisted. I can s

Re: ScopedModelDriven issues

2008-09-19 Thread Rubbinio
I had same issue. Make sure you do not do a new ModelClass() anywhere in your action. Then it will work Tracy12 wrote: > > Hi, > > Has any one successfull getting ScopedModelDriven with > session scoped form beans, > > I tried several times and it failed, the values only > remains for reques

Re: Struts 2 Page & Ctrl+R

2008-07-08 Thread Rubbinio
What do you mean ? I have a link the user click on in Frame 1: listDashboardAction.action That invokes my action, does some stuff and returns "input" which in my struts.xml is /setup/dashboard/dashboard_config.jsp And that gets loaded in frame 2. Now how can i set the frame source cause i rea

Re: Struts 2 Page & Ctrl+R

2008-07-08 Thread Rubbinio
That's the thing, the application is in a frameset and the struts 2 action is in on of the frames. Now my action result is a JSP and not an action. When I hit refresh in the Struts2 Filter I get the jsp name. So how can I make it have the .action because my page is rendered as a result of an acti

Re: Struts 2 Page & Ctrl+R

2008-07-08 Thread Rubbinio
Tried that and it did not work at all. I got it working in a way but not the way I want. Basically what I did was set the values in the session and then on page refresh they are picked up ok. The problem is the data on the page might change so I would like to have the action invoked when the user

Struts 2 Page & Ctrl+R

2008-06-20 Thread Rubbinio
Hi all, we have some Struts 2 pages which load fine but if the user uses Ctrl+R or Browser Refresh the page reloads but no values are populated. This worked fine before using Struts 1 and my guess is that it was because the form was present in session. Is there any way to make this work in Str

Re: Struts 2 file upload size validation

2008-05-09 Thread Rubbinio
mgainty wrote: > > 2.0.11 FileUploadIntereptor.java > > ActionContext ac = invocation.getInvocationContext(); > HttpServletRequest request = (HttpServletRequest) > ac.get(ServletActionContext.HTTP_REQUEST); > HashMap map = request.getParameterMap(); > //for further information take a look at >

Re: Struts 2 file upload size validation

2008-05-08 Thread Rubbinio
el,browseparam interceptor-ref interceptor-ref name="workflow" param name="excludeMethods"input,back,cancel,browseparam interceptor-ref interceptor-stack Thanks R Laurie Harper wrote: > > Rubbinio wrote: >> Hi, >> >> we are try

Struts 2 file upload size validation

2008-05-07 Thread Rubbinio
Hi, we are trying to use file upload in Struts 2 and run into the following problem. We have a form with multiple fields among which one is a file input field. The user must complete the form and then select a file to upload. If the file size is larger than what we specify in the struts.properti

Struts 1 & Struts 2 file upload problem

2008-04-22 Thread Rubbinio
Hi, we have an old application written in Struts 1 and we started adding new features in Struts 2. In the old application we had a file upload form which was working fine. After adding Struts 2, the form does not work anymore because the file field is not populated in the form anymore and it is

Re: s2 : checkbox and checkboxlist : dynamic lists

2008-01-14 Thread Rubbinio
Struts 2.0.11 Nope, no documentation just many attempts until we got it to work. The class looks like this: public class OurAction extends ActionSupport implements SessionAware, ParameterAware, ParameterNameAware { . private String[] selectedGroup; . public void setSelectedGroup(String[

Re: s2 : checkbox and checkboxlist : dynamic lists

2008-01-11 Thread Rubbinio
Actually you can do something like this And in the action class you can have: private String[] selectedGroup; Which will be populated back with what you have selected. It works fine in our application. -- View this message in context: http://www.nabble.com/s2-%3A-checkbox-and-checkboxlist-

Re: How to write JSP to populate back a hashmap of custom objects

2008-01-08 Thread Rubbinio
Great, thank you so much. It works fine. We had: And should have had: What a difference two ' make ! jimkski wrote: > > Hi Rubbino- > > The vita rara blog provided a good example of using the Map method to > update a list of domain entries. > > http://www.vitarara.org/cms/struts_2_coo

How to write JSP to populate back a hashmap of custom objects

2008-01-07 Thread Rubbinio
Hi, we have defined the following custom object: public class GenericElement{ private String key; private String value; public GenericElement(){ } public String getKey() { return key; } public void setKey(String key) {

Mixing Struts 1 and Struts 2

2007-12-18 Thread Rubbinio
Hi, we have a fairly tricky question. We have a Struts 1 application which is very big. We do not have the time to migrate it all to Struts 2 so we want to do it step by step. We run into a situation in which we want to have a Struts 1 Action class forward to a Struts 2 action. Is this possible i