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
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
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
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
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
--- 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
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.
---
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
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
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
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
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;
}
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:
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
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
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
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-
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
-
> 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
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/
: 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
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
SettingList, did you try to
>> prepare converter for it?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@stru
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
; --
> 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
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
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.
---
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
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
>
> 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
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
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
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
>
> 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
>
>
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
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
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
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
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
-
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
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
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
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
??
> ???
> name='settings[].title'
> ????value='' type="hidden" />
>
> '>
> :
> ???
> ???
> name='settings[].value'
> value='' />
> ??
> ?
> ?
> ?
> ?
> ?
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
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
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
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
:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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]
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
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
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
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
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
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
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
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:
>
>
>
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
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
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
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
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
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.
:
>
> 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.
>
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
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
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
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
= 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
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
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
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
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
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
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
;-(
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 - 100 of 248 matches
Mail list logo