Re: Issue regarding error messages

2010-11-24 Thread Maurizio Cucchiara
Sorry, I said something stupid. Forget it. Anyway in that page you can see how define css position of error messages .errorLabel {font-style:italic; color:red; } .errorMessage {font-weight:bold; text-align: center; color:red; } .checkboxLabel {} .checkboxErrorLabel {color:red; } .required {color:r

Re: Issue regarding error messages

2010-11-24 Thread Maurizio Cucchiara
You can define *labelposition*="top" on css_xhtml theme. take a look at http://struts.apache.org/2.1.8/docs/cssxhtml-theme.html 2010/11/24 Prabhubalaji Ragavan > Hi > I am using , where the messages will pulled from the > resource bundle. > I want my messages to be on the bottom of the fields ra

Re: JSON plugin suggest : parse String value "" to Number with null / 0

2010-11-24 Thread Knight Chen
Does this possible? In source code: Object org.apache.struts2.json.JSONPopulator.convertPrimitive(Class clazz, Object value, Method method) throws JSONException { if (value == null) { if (Short.TYPE.equals(clazz) || Short.class.equals(clazz)) return (short) 0;

Issue regarding error messages

2010-11-24 Thread Prabhubalaji Ragavan
Hi I am using , where the messages will pulled from the resource bundle. I want my messages to be on the bottom of the fields rather than top of the field. Thanks Prabhu

Re: JSON plugin suggest : parse String value "" to Number with null / 0

2010-11-24 Thread Maurizio Cucchiara
2010/11/24 Martin Gainty > if the attribute is available in object acquired by > invocation.getAction() then you should see the target > > does this answer your question? > Actually, It doesn't. I meant that conversion methods like convertPrimitive (see the code below) use to take class type a

Re: Spring context for package

2010-11-24 Thread stanlick
Josep -- That sounds a little radical. Do you mind if I ask why? Is the unique namespace per package not enough separation? Hey, if strict separation is what you desire, you could package each S2 package in it's own project and move the package namespace to the web root context and be done with

RE: JSON plugin suggest : parse String value "" to Number with null / 0

2010-11-24 Thread Martin Gainty
driven off the Introspector.getBeanInfo public void populateObject(Object object, final Map elements) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IntrospectionException, IllegalArgumentException, JSONException, InstantiationExcept

Re: JSON plugin suggest : parse String value "" to Number with null / 0

2010-11-24 Thread Knight Chen
Thanks,Maurizio, This is not a wrong approach. but can be take a improved for easier use. :P Regards. On Tue, Nov 23, 2010 at 12:10 PM, Maurizio Cucchiara wrote: > Hi Knight, > I take your point, JSONPopulator.convertPrimitive function maybe uses a > wrong approach. > Does anyone know why conv