Re: Struts 2 Type conversion

2009-03-25 Thread dusty
ppressWarnings("serial") >> public class AuditProperty implements Serializable { >> >> private static final Log logger = >> LogFactory.getLog(AuditProperty.class); >> private String oldValue; >> private String newValue; >> private bo

Re: Struts 2 Type conversion

2009-03-25 Thread mahanare
public String getOldValue() { > return oldValue; > > } > public void setOldValue(String oldValue) { > this.oldValue = oldValue; > } > public String getNewValue() { > return newValue; &g

Struts 2 Type conversion

2009-03-25 Thread mahanare
this.newValue = newValue; } public String toString() { String value= oldValue + " : " + newValue + " : " + updateFlag; logger.debug(value); return value; } -- View this message in context: http://www.na

Struts 2 Type Conversion HashSet Object within the List of Object

2009-03-10 Thread sanrosh95
: -- View this message in context: http://www.nabble.com/Struts-2-Type-Conversion-HashSet-Object-within-the-List-of-Object-tp22436263p22436263.html Sent

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-03-05 Thread markbeek
newton.dave wrote: > > I believe it was probably what's conventionally known as a "mistake". > It appears to have been resolved with XW-677. > Yep, looks like that will take care of it. Thanks. -- View this message in context: http://www.nabble.com/Struts-2-Type-c

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-03-05 Thread Dave Newton
markbeek wrote: Can anyone (a) confirm this analysis of the source code, and (b) if so, explain why the decision was made to consider zero an invalid entry for a double property on a form field? I believe it was probably what's conventionally known as a "mistake". It appears to have been resol

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-03-04 Thread markbeek
? Thanks -- View this message in context: http://www.nabble.com/Struts-2-Type-conversion-refuses-0.0-for-a-double--tp21738188p22345989.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-01-30 Thread san-ho-zay
0.0" out as an error ... public class Test { public static void main(String[] args) { double d = Double.parseDouble("0.0"); System.out.println(d); } } -- View this message in context: http://www.nabble.com/Struts-2-Type-conversion-refuses-0.0-for-a-double--tp2

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-01-29 Thread Lukasz Lenart
2009/1/30 san-ho-zay : > I have a Struts2 action with a double property called "amount". No validation > rules on the action as yet. Use big Double instead. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Struts 2 Type conversion refuses 0.0 for a double?

2009-01-29 Thread san-ho-zay
s. JSPs and XHTML theme. All pretty standard stuff. I've searched but nobody else seems to have anything like this issue. Any ideas? -- Richard -- View this message in context: http://www.nabble.com/Struts-2-Type-conversion-refuses-0.0-for-a-double--tp21738188p2

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Paweł Wielgus
plication. Apperently this bug was never a problem. :thinking: > > Titus > > -- > View this message in context: > http://www.nabble.com/Struts-2-Type-Conversion-for-properties-of-a-List-tp21144957p21156808.html > Sent from the Struts - User mailing list archive at Nabble.com. > > >

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Marsman
ly mean "&&" there? > No, of course not. You found an old bug in my converter at that time written for a JSF application. Apperently this bug was never a problem. :thinking: Titus -- View this message in context: http://www.nabble.com/Struts-2-Type-Conversion-for-properties

Re: Struts 2 Type Conversion for properties of a List

2008-12-24 Thread Marsman
conversion. By the way: Does anybody know, why they are using xml to define validators and the old school property files for conversions? Thanks, Titus -- View this message in context: http://www.nabble.com/Struts-2-Type-Conversion-for-properties-of-a-List-tp21144957p21156805.html Sent fro

Re: Struts 2 Type Conversion for properties of a List

2008-12-23 Thread dusty
return (String) o; > } > } > > I'm not sure beeing on the right way. Maybe converters can only be defined > for form fields? Or not for properties of an iteration? > > Titus > > -- View this mes

Re: Struts 2 Type Conversion for properties of a List

2008-12-23 Thread Dave Newton
--- On Tue, 12/23/08, Marsman wrote: > >   > This isn't really type conversion, it's a toString. AFAIK type conversion is only an issue to/from forms. > if ( values[0] == null || values[0].length() == 0 > && values[0].equalsIgnoreCase("v.a.")         || values[0].equalsIgnoreCase("va

Struts 2 Type Conversion for properties of a List

2008-12-23 Thread Marsman
return (String) o; } } I'm not sure beeing on the right way. Maybe converters can only be defined for form fields? Or not for properties of an iteration? Titus -- View this message in context: http://www.nabble.com/Struts-2-Type-Conversion-for-properties-of-a-List-tp21144957p21144957.ht

Re: Struts 2 type conversion and numbers

2007-07-30 Thread Art Krahenbuhl
r additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts-2-type-conversion-and-numbers-tf4179029.html#a11884749 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Struts 2 type conversion and numbers

2007-07-30 Thread Dale Newfield
Art Krahenbuhl wrote: How can we get rid of the commas? I can't find any information on this issue. https://issues.apache.org/struts/browse/WW-1937 -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Struts 2 type conversion and numbers

2007-07-30 Thread Art Krahenbuhl
displaying is a little troubling. How can we get rid of the commas? I can't find any information on this issue. -- View this message in context: http://www.nabble.com/Struts-2-type-conversion-and-numbers-tf4179029.html#a11883455 Sent from the Struts - User mailing list archive at Nabbl