Type conversion?

2009-01-19 Thread Henrik Strøm-Andersen
in context: http://www.nabble.com/Type-conversion--tp21546300p21546300.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

Type Conversion

2007-06-15 Thread Mansour
I am trying to convert a string into an Object. I can not find documentation on how to implement the StrutsTypeConverter. The documentation says: To create a type converter one would need to extends StrutsTypeConverter. public class MyConverter extends StrutsTypeConverter { public Object con

Re: Type conversion?

2009-01-19 Thread dusty
So, when you write you are asking Struts to convert your list to a string and represent it like: and I am not sure that is what you want. Because when you resubmit that String struts is not really sure how to rebuild the list. I see you have read up on type conversion and that is good

Type conversion exceptions

2009-03-13 Thread ryangr
This is probably going to be a really simple solution, but after searching I still haven't quite found an answer so I appreciate any help with this. I'm using 2.0.14 and trying to do type conversion on a custom collection (called "settings" in this case, it is just an exte

Type conversion questions

2008-02-19 Thread Daniel Baldes
Hello, I have a web form where you can, generally speaking, assign objects to groups. This is done via a multiple select box which displays an object's name and uses its ID property as value. So, usually, my action would get back a String array containing the IDs of the selected objects. I w

Re: Type Conversion

2007-06-15 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I am trying to convert a string into an Object. I > can not find documentation on how to implement the > StrutsTypeConverter. The documentation says: > > To create a type converter one would need to extends > StrutsTypeConverter. > > public class MyConvert

Boolean Type Conversion

2010-01-29 Thread RogerV
override where I need it and default to the standard convertor where I don't. Regards -- View this message in context: http://old.nabble.com/Boolean-Type-Conversion-tp27371490p27371490.html Sent from the Struts - User mailing list archive at Nabble.com. ---

About Type-Conversion

2010-09-24 Thread Mead Lai
Hi All, I try some type-conversion example, and do it step by step following this document: http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-AdvancedTypeConversion <http://struts.apache.org/2.x/docs/type-conversion.html>Unfortunately, it show nothing, although, I ad

Struts Type Conversion

2006-11-12 Thread H . Kerem Cevahir
Hi, Can we use Webwork like type conversion in Struts 1.3? If not, is there any known method to implement this like third party extensions or source hacking? Regards. Kerem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Type Conversion Issue

2007-04-23 Thread Andrew Penrose
Hi Guys, I have an ArrayList of say Car models which we are displaying on a page. The status field of the model sets the default value of a select dropdown using a tag on the page. When I go to update the status we can't seem to get type conversion working.the id of the collection o

BigDecimal type conversion

2011-12-19 Thread Biesbrock, Kevin
Our application is rolling with Struts 2.2.1. One action class implements ModelDriven and in the model we have a Map; where we rolled a custom type converter for BusinessObjectA and BusinessObjectB has a BigDecimal. This model has been in production for well over 4 months with no issue; that is

Type Conversion annotation

2012-07-04 Thread Shrinivas Parashar
Hi, Can we define @TypeConversion annotation of the nested property at the parent level. For Example I have a bean public class Bike { private Name name; public Name getName() { return this.name; } public void setName(Name name) { this.name = name; }

ActionForm automatic type conversion

2005-01-03 Thread dsarris
Hi all and happy new year, I am trying to fill an ActionForm with values that are neither Strings or primitives. The specified values are selected using the tag. This a sample of my JSP code:

Collections and type conversion

2009-02-05 Thread Richard Gundersen
w the collection to be reconstructed upon form submission, I think I need to enable type conversion. So, in the same package as my action, I have this file: -- FileManagementAction-conversion.properties -- KeyProperty_fiel

[struts2.1.6] Type conversion error.

2009-02-23 Thread EoneZhang
Dear All. I use struts2.1.6 in a demo app. but I consult a problem with type conversion. the following is my source.(just the struts2 blank app,and just a little modifications) Login.java(I just modified the type of "password" to Bigdecimal. public class Login extends Exam

Re: Type conversion exceptions

2009-03-14 Thread dusty
would need to use an entirely different pattern with a custom TypeConverter... ryangr wrote: > > This is probably going to be a really simple solution, but after searching > I still haven't quite found an answer so I appreciate any help with this. > I'm using 2.0.14 and

Re: Type conversion exceptions

2009-03-16 Thread ryangr
com.rjssoft.webdocs.admin.SettingAction: Error setting expression >> 'settings(D176A8AA-1636-4AFF-9C71-16A21DFCEDA7).title' with value >> '[Ljava.lang.String;@1ce64f6' >> >> Unexpected Exception caught setting >> 'settings(D176A8AA-1636-

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr : > ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler  - Could not > create and/or set value back on to object > ognl.OgnlException: settings [java.lang.IllegalArgumentException: argument > type mismatch] > ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor  

Re: Type conversion exceptions

2009-03-16 Thread ryangr
- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22540046.html Sent from

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr : > settings is a SettingList which is just an extended ArrayList. That can be a problem, generics are erased during compilation and Ognl doesn't know how to convert array to SettingList, did you try to prepare converter for it? Regards -- Lukasz http://www.lenart.org.pl/

Re: Type conversion exceptions

2009-03-16 Thread ryangr
: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22540930.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsub

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr : > That makes sense...I've added a converter for it similar to others that > already exist in the app, but it doesn't appear to be calling > convertFromString which the others use. Instead, it seems to be calling > convertValue(Map, Object, Member, String, Object, Class) which I d

Re: Type conversion exceptions

2009-03-16 Thread ryangr
SettingList, did you try to >> prepare converter for it? >> >> >> Regards >> -- >> Lukasz >> http://www.lenart.org.pl/ >> >> - >> To unsubscribe, e-mail: user-unsubscr...@stru

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr : > It appears both values objects (value and o, respectively) are completely > empty... It's strange but anyway you should be able to use Struts2 / XWork2 convertion mechanism, did you setup xwork-conversion.properties file as mentioned in documentation [1]? [1] http://struts.a

Re: Type conversion exceptions

2009-03-16 Thread ryangr
; -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp224

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr : > > Yes, I have it listed in the xwork-conversion.properties file as such: > > com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter And the file is in the root of your classpath (WEB-INF/classes)? Regards -- Lukasz http://www.lenart.org.p

Re: Type conversion exceptions

2009-03-16 Thread ryangr
ubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22547311.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Type conversion exceptions

2009-03-16 Thread ryangr
verter - toClass: class com.rjssoft.webdocs.setting.SettingList -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22548129.html Sent from the Struts - User mailing list archive at Nabb

Re: Type conversion exceptions

2009-03-17 Thread Lukasz Lenart
2009/3/16 ryangr : > com.opensymphony.xwork2.util.XWorkConverter  - processing conversion file > [com/rjssoft/webdocs/admin/SettingAction-conversion.properties] [class=class > com.rjssoft.webdocs.admin.SettingAction] As I see you have only SettingAction-conversion.properties, could you try to use

Re: Type conversion exceptions

2009-03-17 Thread ryangr
> > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in con

Re: Type conversion exceptions

2009-03-17 Thread Lukasz Lenart
2009/3/17 ryangr : > Element_settings=com.rjssoft.webdocs.setting.Setting But you should put there com.rjssoft.webdocs.setting.SettingList = com.rjssoft.webdocs.setting.Setting Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Type conversion exceptions

2009-03-17 Thread ryangr
g > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View t

Re: Type conversion exceptions

2009-03-17 Thread Lukasz Lenart
2009/3/17 ryangr : > com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.setting.Setting What this is for? > com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter This tells Xwork which converter to call if it will need to convert Array to SettingList

Re: Type conversion exceptions

2009-03-17 Thread ryangr
> > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >

Re: Type conversion exceptions

2009-03-18 Thread musomesa
rs Chris M? > >> com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter > -Original Message- From: ryangr To: user@struts.apache.org Sent: Wed, 18 Mar 2009 6:59 am Subject: Re: Type conversion exceptions Okay, I'm officially very confused as to what s

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/17 ryangr : > [xwork-conversion.properties] > Element_settings=com.rjssoft.webdocs.setting.Setting That's ok but your SettingList is not full List implementation and you have to specified how to convert array to SettingList that's why you have to specified also converter for SettingList abo

Re: Type conversion exceptions

2009-03-18 Thread musomesa
But then how do you plan to write a converter to convert a String[] to a SettingList? Also why is aggregation a bad design? Regards Chris M -Original Message- From: Lukasz Lenart To: Struts Users Mailing List Sent: Wed, 18 Mar 2009 5:50 pm Subject: Re: Type conversion exceptions

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/18 : > But then how do you plan to write a converter to convert a String[] to a > SettingList? It's already done, just to the configuration has to be adjusted > Also why is aggregation a bad design? It isn't but exposing directly internal field (ArrayList) it is. Regards -- Lukasz ht

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/18 : > My bad -- I didn't realize SettingList extends ArrayList. Suggestion: make it > aggregation so that SettingList has a property of type ArrayList and > your type conversion problems will go away. In such case SettingList is useless, it will be bad design Regards -

Re: Type conversion exceptions

2009-03-18 Thread musomesa
My bad -- I didn't realize SettingList extends ArrayList. Suggestion: make it aggregation so that SettingList has a property of type ArrayList and your type conversion problems will go away. Chris -Original Message- From: ryangr To: user@struts.apache.org Sent: Wed, 18 Mar

Re: Type conversion exceptions

2009-03-18 Thread musomesa
10 pm Subject: Re: Type conversion exceptions 2009/3/18 : > But then how do you plan to write a converter to convert a String[] to a SettingList? It's already done, just to the configuration has to be adjusted > Also why is aggregation a bad design? It isn't but exposing di

Re: Type conversion exceptions

2009-03-18 Thread ryangr
te: > > I have downloaded your code and will study it so that I don't > misunderstand. Can you also post the converter? > If I see it I might?suggestions that fit what you are doing better. > Chris > -- View this message in context: http://www.nabble.com/Type-conversi

Re: Type conversion exceptions

2009-03-18 Thread musomesa
s.newSetting = newSetting; ?}; } JSP: ? ?? ??? '> : ??? ??? ?? ? ? ? ? ? Cheers Chris M -Original Message- From: ryangr To: user@struts.apache.org Sent: Wed, 18 Mar 2009 10:55 pm Subject: Re: Type conversion exceptions Here is the converter code: http://pastie.org/41970

Re: Type conversion exceptions

2009-03-19 Thread ryangr
?? > ??? > name='settings[].title' > ????value='' type="hidden" /> > > '> > : > ??? > ??? > name='settings[].value' > value='' /> > ?? > ? > ? > ? > ? > ?

Re: Type conversion exceptions

2009-03-20 Thread musomesa
No problem -- I have learnt plenty from others too. Cheers Chris M. -Original Message- From: ryangr To: user@struts.apache.org Sent: Fri, 20 Mar 2009 5:12 am Subject: Re: Type conversion exceptions Well I'll be damned...it's working! It looks like the solution was to

Struts 2 Type conversion

2009-03-25 Thread mahanare
Hi, I need help in resolving type conversion issue in struts 2. Here is my problem definition. I have a structs 2 action class called AuditTrailAction. Here is the class definition. It contains a List I have given my AuditView bean definition below. Action contains a List which intern contains

type conversion versus validation

2009-03-31 Thread Christian Kindler
Hi there, when using domain objects in a struts action I'm facing the problem that type conversion throws an error before validation is executed when having non string properties. Example: in my action I have a property organization which has itself a property contact. The contact o

Strut2.1.6 Type Conversion Problem

2009-08-05 Thread sha...@mobily
ovi...@6cd0f9] value: [Ljava.lang.String;@1b602b9 -- View this message in context: http://www.nabble.com/Strut2.1.6-Type-Conversion-Problem-tp24827859p24827859.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Struts Type Conversion Problem

2007-11-01 Thread jignesh(india)
: http://www.nabble.com/Struts-Type-Conversion-Problem-tf4735856.html#a13543074 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Type conversion with Generics

2008-01-08 Thread jvleminc
Hello, I am facing with automatic type conversion upon the submit of my Form: Basically I have form fields with the names eoActivities[0].activityName eoActivities[0].eoUser[0].eoUserId eoActivities[0].eoUser[0].eoUserAddress[0].addressType eoActivities[0].eoUser[0].eoUserAddress[0].name

Re: Type conversion questions

2008-02-19 Thread Jeromy Evans
Daniel Baldes wrote: Hello, I have a web form where you can, generally speaking, assign objects to groups. This is done via a multiple select box which displays an object's name and uses its ID property as value. So, usually, my action would get back a String array containing the IDs of the

Re: Type conversion questions

2008-02-19 Thread Martin Gainty
TECTED]> To: "Struts Users Mailing List" Sent: Tuesday, February 19, 2008 5:23 PM Subject: Re: Type conversion questions > Daniel Baldes wrote: > > Hello, > > > > I have a web form where you can, generally speaking, assign objects to > > groups. This is d

Re: Type conversion questions

2008-02-19 Thread Adam Hardy
Jeromy Evans on 19/02/08 22:23, wrote: Daniel Baldes wrote: Hello, I have a web form where you can, generally speaking, assign objects to groups. This is done via a multiple select box which displays an object's name and uses its ID property as value. So, usually, my action would get back a

Re: Type conversion questions

2008-02-19 Thread Jeromy Evans
Hi Jeromy I'm not clear what the performance problem you mention could be. This is what I'm doing myself and while my app's performance is OK, I would love to improve it. What do you mean by (e.g. select n+1 due to iteration)? All the best Adam --- Actually, I've assumed you're using ORM

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Hello Martin, this would be ok, but that method doesn't exist in StrutsTypeConverter as of struts 2.0.11, and most likely the framework won't call it when I implement it. Or am I missing something? Daniel Martin Gainty wrote: package org.apache.struts2.showcase.conversion public class EnumT

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Jeromy Evans wrote: [...] Now my questions: 1. extending StrutsTypeConverter forces me to implement String convertToString(Map context, Object o). I think there is no common sense way of converting a collection back to a String in this context. It would, maybe, make sense to convert it to a S

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Hi Jeromy, Jeromy Evans wrote: Daniel Baldes wrote: [...] 2. Is there a way to define a type converter application wide, like "always use this type converter for setting types which are subclasses of X" and "for setting types which are Collection"? This way I could define the type converter

Re: Type conversion questions

2008-02-20 Thread Jeromy Evans
e the currently selected value for the select. I presume you don't really mean that, but rather want: where mySelectObject is the same class as the elements in the list, and type conversion ensures that the select contains id:name and sees just the selected object loaded from persiste

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
d value for the select. I presume you don't really mean that, but rather want: where mySelectObject is the same class as the elements in the list, and type conversion ensures that the select contains id:name and sees just the selected object loaded from persistence and provides a list of

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Laurie Harper wrote: Daniel Baldes wrote: [...] [...] This way I could use getMyObjects() for displaying my objects and setMyObjects() for setting them (using only their IDs). Doesn't this imply that the myObjects property represents both the set of values that can be selected *and* t

Re: Type conversion questions

2008-02-20 Thread Laurie Harper
Daniel Baldes wrote: [...] 1. extending StrutsTypeConverter forces me to implement String convertToString(Map context, Object o). I think there is no common sense way of converting a collection back to a String in this context. It would, maybe, make sense to convert it to a String[]. But what

Re: Type conversion questions

2008-02-20 Thread Jeromy Evans
Now the funny thing is that this seems to work. I got all sorts of exceptions at first, but they don't seem to be related to conversion. Thanks for all your help, and I'm sorry for wasting your time on this one. I'll get back when I find the real problem, should it be related to struts. Da

Type conversion/OGNL question

2008-03-19 Thread lllewell
Greetings, Using Struts2, 2.0.11 and Java 5, and having problems with custom type conversion when I type invalid data in a field. I want to convert times in military format (0700, 2205) to equivalent java.util.Date, with the date fields set to 1-1-1970. I am using the defaultStack, which

Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
Hello All, I am having a problem with Struts 2 form submission, because I believe a related field is not being converted correctly. I have read the documentation at: http://struts.apache.org/2.x/docs/select.html and http://struts.apache.org/2.0.11.1/docs/type-conversion.html It is my unders

type conversion per method

2008-08-22 Thread Jason Deffenbaugh
I'm running struts 2.0.11 trying to do a custom type conversion. The conversion is working for the action that calls the execute() method in the action class but it does not work for an action that is declared using the method="methodName" parameter in struts.xml so when methodNa

Type Conversion and Lists

2009-09-25 Thread Stephen Turner
Hello, I'm trying to get objects placed in a List using the type conversion functionality built into Struts 2 (2.0.14)/Java 1.4. The bean that should be in the list is called "Grocery", with attributes "name" and "quantity". My action class has a

Re: Boolean Type Conversion

2010-01-29 Thread Wes Wannemacher
the override > via annotation so that I can execute the override where I need it and > default to the standard convertor where I don't. > > Regards > -- > View this message in context: > http://old.nabble.com/Boolean-Type-Conversion-tp27371490p27371490.html > Sent

Re: Boolean Type Conversion

2010-01-30 Thread Roger
On Friday 29 January 2010 22:30:34 Wes Wannemacher wrote: > I don't know if I'd go too far creating a TypeConverter... Can you > just do something like this - > > YN > > Really, you could probably create a .tag file out of it and reuse it > easier than creating a Type Converter. > > -Wes > I ca

Transform values - Type conversion

2010-02-01 Thread Diego Manilla Suárez
Hi. I have a simple problem: I need to divide by 100 user's input in some fields when I'm going to store values in DB and perform the opposite operation when loading the form again. I thought Struts 2 type conversion was what I needed, so I created a simple PercentageConverter, im

Re: About Type-Conversion

2010-09-24 Thread Dave Newton
What are you trying to do and/or what specifically doesn't work, under what circumstances? Dave On Fri, Sep 24, 2010 at 1:44 PM, Mead Lai wrote: > Hi All, > > I try some type-conversion example, and do it step by step following this > document: > > http://struts.a

Re: About Type-Conversion

2010-09-24 Thread Mead Lai
Hello Dave, Thanks for your response so quickly. It is running fine, but show a blank page.No data in the page. There are some "conversion"-examples in "struts2-showcase-2.1.8.1" package; And they are seems working good. Regards, Mead

Re: About Type-Conversion

2010-09-24 Thread Dave Newton
What's in the logs? Is devMode turned on? Where's the rest of your code/config? On Fri, Sep 24, 2010 at 1:54 PM, Mead Lai wrote: > Hello Dave, > > Thanks for your response so quickly. > It is running fine, but show a blank page.No data in the page. > There are some "conversion"-examples in "stru

Type Conversion Messages i18n

2007-01-24 Thread André Faria
/How can I make the i18n of the message : /"Invalid field value for field {0}" ? Regards, André Faria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its s

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its s

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its s

Re: BigDecimal type conversion

2011-12-19 Thread Dave Newton
Either a type convertor, or an interceptor that trims everything. d. On Dec 19, 2011 3:23 PM, "Biesbrock, Kevin" wrote: > Our application is rolling with Struts 2.2.1. > > One action class implements ModelDriven and in the model we have a > Map; where we rolled a custom type > converter for Bus

RE: BigDecimal type conversion

2011-12-19 Thread Biesbrock, Kevin
3:25 PM To: Struts Users Mailing List Subject: Re: BigDecimal type conversion Either a type convertor, or an interceptor that trims everything. d. On Dec 19, 2011 3:23 PM, "Biesbrock, Kevin" wrote: > Our application is rolling with Struts 2.2.1. > > One action class implements Mo

Re: ActionForm automatic type conversion

2005-01-03 Thread Pavel Kolesnikov
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote: > I am trying to fill an ActionForm with values that are neither Strings > or primitives. I think you can do it by extending the RequestProcessor class and overloading "processPopulate" method or something like that. But in ge

Re: ActionForm automatic type conversion

2005-01-04 Thread dsarris
On Mon, 3 Jan 2005 17:46:46 +0100, Pavel Kolesnikov <[EMAIL PROTECTED]> wrote: > On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote: > > > I am trying to fill an ActionForm with values that are neither Strings > > or primitives. > > I think you can do it by extending the Request

Re: ActionForm automatic type conversion

2005-01-04 Thread Pavel Kolesnikov
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote: > Hi all and happy new year, > > I am trying to fill an ActionForm with values that are neither Strings > or primitives. The specified values are selected using the > tag. This a sample of my JSP code: > > >

RE: ActionForm automatic type conversion

2005-01-05 Thread Bala . Paranj
detail in the book Struts in Action. Bala -Original Message- From: dsarris [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 4:16 AM To: Struts Users Mailing List Subject: ActionForm automatic type conversion Hi all and happy new year, I am trying to fill an ActionForm with values

RE: ActionForm automatic type conversion

2005-01-05 Thread Joe Germuska
ail in the book Struts in Action. Bala -Original Message- From: dsarris [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 4:16 AM To: Struts Users Mailing List Subject: ActionForm automatic type conversion Hi all and happy new year, I am trying to fill an ActionForm with values that a

Type conversion errors for collections

2009-01-26 Thread Owen Berry
I have an action that has a collection of objects. Conversion to and from the objects in this collection works fine. However, I can't figure out how to give sensible errors for type conversions that fail. It's not cool for the user to get: Invalid field value for field "deliveryLocations[1].por

RE: Collections and type conversion

2009-02-05 Thread Richard Gundersen
oming from (it looks like this): [0] null [1] Field[blah] [2] null [3] Field[blahblah] Nearly there - Thanks! -Original Message- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 05 February 2009 12:00 To: user@struts.apache.org Subject: Collections and type conversion H

Re: [struts2.1.6] Type conversion error.

2009-02-23 Thread Lukasz Lenart
2009/2/24 EoneZhang : > Login.java(I just modified the type of "password" to Bigdecimal. Could you try with username field? Password input field is bit specific in html. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubsc

Re: [struts2.1.6] Type conversion error.

2009-03-24 Thread Sidhe
I have exactly the same error message in Struts 2.1.6. If I submit a proper integer value from the form there is no exception, but if I enter for example "123abc" I get ognl.MethodFailedException (NoSuchMethodException). It looks like automatic type conversion is not working properly.

Re: Struts 2 Type conversion

2009-03-25 Thread mahanare
: > > Hi, I need help in resolving type conversion issue in struts 2. > > Here is my problem definition. > > I have a structs 2 action class called AuditTrailAction. > Here is the class definition. It contains a List I have given > my AuditView bean definition below. >

Re: Struts 2 Type conversion

2009-03-25 Thread dusty
Seems like you have it down. Why is it kind of? It is only a really type conversion issue if you need to reconstruct the graph of Map>Bean>List from a string posted from a web page. mahanare wrote: > > kind of got a fix. > > here

struts 2.1.5 type conversion error

2009-07-17 Thread Sandy.Verfaille
Hi, I have made a simple struts form Name nl price And an action class with getters and setters for nameNl and price. When I submit my form, with a price > 0, for example 3, everything goes well. When I enter 0 or a negative number, I get the following error: java.lang.NoSuchMethodExceptio

RE: Strut2.1.6 Type Conversion Problem

2009-08-05 Thread Lee Clemens
Sent: Wednesday, August 05, 2009 10:04 AM To: user@struts.apache.org Subject: Strut2.1.6 Type Conversion Problem I just started on strut2, I am facing a very basic problem. for the int field it should convert the type and only shd give error if provided an invalid integer value such as 123abc

RE: Struts Type Conversion Problem

2007-11-02 Thread Shannon, Andrew
I also submitted an email yesterday related to type conversion and your observation below was very helpful. The fact that your case 2 doesn't work also describes my problem (submitted as "interceptor and converter cycle"). For now I guess I'll go with case 1 at the Action cla

RE: Struts Type Conversion Problem

2007-11-02 Thread jignesh(india)
= tutorial.MyTypeConverter This assumes of course that our "MyTypeConverter" class is in a package named "tutorial". Shannon, Andrew-2 wrote: > > I also submitted an email yesterday related to type conversion and your > observation below was very helpful. The fact that your case 2

Re: Type conversion with Generics

2008-01-08 Thread Rick Reumann
rote: > > Hello, > > I am facing with automatic type conversion upon the submit of my Form: > > Basically I have form fields with the names > eoActivities[0].activityName > eoActivities[0].eoUser[0].eoUserId > eoActivities[0].eoUser[0].eoUserAddress[0].addressType > e

Re: Type conversion with Generics

2008-01-08 Thread Rick Reumann
items in a Set. If you use > > Lists > > it would be much easier to accomplish the nested collection population. > > > > On Jan 8, 2008 1:02 PM, jvleminc <[EMAIL PROTECTED]> > > wrote: > > > >> > >> Hello, > >> > >> I am fac

Re: Type conversion with Generics

2008-01-08 Thread Dave Newton
in Struts1.1, If I'm not mistaken, you aren't going to be able > to > > use indexed properties like you are to set items in a Set. If you use > > Lists > > it would be much easier to accomplish the nested collection population. > > > > On Jan 8, 2008 1:02 P

Re: Type conversion with Generics

2008-01-08 Thread jvleminc
asier to accomplish the nested collection population. > > On Jan 8, 2008 1:02 PM, jvleminc <[EMAIL PROTECTED]> > wrote: > >> >> Hello, >> >> I am facing with automatic type conversion upon the submit of my Form: >> >> Basically I have form fields

Re: Type conversion with Generics

2008-01-08 Thread Rick Reumann
x27;t going to be > able > > to > > > use indexed properties like you are to set items in a Set. If you use > > > Lists > > > it would be much easier to accomplish the nested collection > population. > > > > > > On Jan 8, 2008 1:02 P

Re: Type conversion with Generics

2008-01-08 Thread jvleminc
stack and fill up the beans myself, this would without doubt work, but I want to have it done automatically by Struts2, if possible: hopefully just by adding the right lines into the *-conversion.properties file I'd get the requested result...the quest continues :-) -- View this message

Re: Type conversion with Generics

2008-01-08 Thread jvleminc
;-( BTW, I am also not entirely sure that by just using Lists or Maps also the second level elements will be mapped, those would also need some kind of conversion indicator (ie. *-conversion.properties file), or am I wrong? -- View this message in context: http://www.nabble.com/Type-conversion-with

  1   2   3   >