s:select problem with data conversion

2008-12-24 Thread Oleg T.
Hi, I am using Struts 2.0.12 and having a problem getting selected="" to work on s:select with my data converter. It seems that converter is called when I submit from the select box, but when its populated its never called. 1. My select is: 2. Converter is defined in xwork-conversion file 3. p

How does setActionErrors Method works?

2008-12-24 Thread taj uddin
Hi, In my application I have passed the list of errors to the setActionErrors( ) method and in the resulting jsp page i have written the tag I have a doubt like will this tag get the list, which was passed to the setActionErrors( ) method, and display the errors? Pls help me out in this issue.

RE: Bean Properties are lost

2008-12-24 Thread dusty
If you do not need to edit the collections as part of the "post" transaction then you can use the ParamsPrepareParams interceptor pattern. Basically, this lets you edit part of a model object without having to recreate the whole thing in your form. The basic pattern is to put the id in a hidden

Re: logic:iterate not populating the values on submit

2008-12-24 Thread Yayo
I think it's wrong... you don't need an "iterated" in order to set a single simple value. With a setter and getter pair for the property is just enough. You should be expecting an String with the given value from the user input. The again I may be wrong... ^^ Happy new year!

logic:iterate not populating the values on submit

2008-12-24 Thread Prasanth Nair
Hi, I need a urgent help. Could someone respond to http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=015067 regards Prasanth

Overriding Struts UI Controls

2008-12-24 Thread Ganesh123
Hi, i am overriding the struts UI controls for my role based UI rendering. based on user role i have to decide few attributes of UI component like editability,visibility etc. for that i have implemented logic required. to achieve this i am extending TextFieldTag and in the overriding method

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Paweł Wielgus
Hi Titus, You can validate with annotations. best greetings, Pawel Wielgus 2008/12/24, Marsman : > > > newton.dave wrote: >> >> >>> if ( values[0] == null || values[0].length() == 0 >>> && values[0].equalsIgnoreCase("v.a.") >> || values[0].equalsIgnoreCase("various artists")) >> >>

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Marsman
newton.dave wrote: > > >> if ( values[0] == null || values[0].length() == 0 >> && values[0].equalsIgnoreCase("v.a.") >         || values[0].equalsIgnoreCase("various artists")) > > This condition strikes me as odd... did you really mean "&&" there? > No, of course not. You found an o

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Marsman
dusty wrote: > > You could create a special class for this property so you can use type > conversion but that seems ugly. > > You are better off using EL or a custom tag for rendering the property. > I thought about creating a new type (in Hibernate) for my "artists". But only for storing "v

Struts2 Error.

2008-12-24 Thread Srinivasan KS
hi, I am trying to run the struts2 sample application. I am using Jdeveloper 11g IDE with weblogic server. I am getting this error, when I am running the application.