Re: Fwd: Type conversion collection with interface type elements

2018-04-06 Thread Yasser Zamani
On 4/5/2018 6:52 PM, Nuno Oliveira wrote: > Your fix worked :) and I see why it did not work, thank you. > > Also yes, you are right, it should be Role instead of Roles but it is a > legacy class and the change implies a lot of fixes. It's on the "to do > list". > > Once more, thank you. You'

Re: Fwd: Type conversion collection with interface type elements

2018-04-05 Thread Nuno Oliveira
er Zamani wrote: > [copy with removed links to avoid detection as spam] > > > Forwarded Message ---- > Subject: Re: Type conversion collection with interface type elements > Date: Thu, 5 Apr 2018 13:02:01 + > From: Yasser Zamani > Reply-To: Struts Users Mai

Fwd: Type conversion collection with interface type elements

2018-04-05 Thread Yasser Zamani
[copy with removed links to avoid detection as spam] Forwarded Message Subject: Re: Type conversion collection with interface type elements Date: Thu, 5 Apr 2018 13:02:01 + From: Yasser Zamani Reply-To: Struts Users Mailing List To: user@struts.apache.org On 4/4/2018

Re: Type conversion collection with interface type elements

2018-04-05 Thread Yasser Zamani
On 4/4/2018 7:20 PM, Nuno Oliveira wrote: > Hi, > > I am having problems populating an action variable Set by request using > struts type conversion if the Set has the element type defined as an > interface. > I have a UserAction-conversion.properties file with the followi

Type conversion collection with interface type elements

2018-04-04 Thread Nuno Oliveira
Hi, I am having problems populating an action variable Set by request using struts type conversion if the Set has the element type defined as an interface. I have a UserAction-conversion.properties file with the following configuration using the class implementation: KeyProperty_roles=id

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Lukasz Lenart
Super cool, thanks :) 2016-12-02 11:40 GMT+01:00 Miguel Almeida : > Thank you Lukasz! > > I will check if/how we can inject the converter there. If we manage to > get it working in a way that helps the ticket resolution I'll also post > the information there. > > > > On Sex, 2016-12-02 at 09:50 +0

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Miguel Almeida
Thank you Lukasz! I will check if/how we can inject the converter there. If we manage to get it working in a way that helps the ticket resolution I'll also post the information there. On Sex, 2016-12-02 at 09:50 +0100, Lukasz Lenart wrote: > Hi, > > JSON plugin uses its own conversation mecha

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Lukasz Lenart
Hi, JSON plugin uses its own conversation mechanism, check JSONPopulator but I think it should be possible to inject XWorkConverter and use it to convert objects - this requires implementing your own JSONPopulator. There is a task to do it so it should happen in Struts 2.5 ;-) https://issues.apac

Can you use type conversion with JSONInterceptor?

2016-12-01 Thread Miguel Almeida
Imagine SearchAction{ private List evaluatedRecords; } Record is an interface so to get auto-wiring to work you'd usually set-up a SearchAction-conversion.properties: KeyProperty_evaluatedRecords=id Element_evaluatedRecords=com.bibliovigilance.model.RecordImpl CreateIfNull_evaluatedRecords=true

Re: More website doc problems: Type Conversion and Conversion Annotation

2015-08-31 Thread Lukasz Lenart
;> > In order to determine the best way to prompt for and store a >> > javax.mail.internet.InternetAddress, I began researching these pages, >> which >> > are broken to various degrees: >> > >> > https://cwiki.apache.org/confluence/display/WW/Ty

Re: More website doc problems: Type Conversion and Conversion Annotation

2015-08-31 Thread JOSE L MARTINEZ-AVIAL
ddress, I began researching these pages, > which > > are broken to various degrees: > > > > https://cwiki.apache.org/confluence/display/WW/Type+Conversion > > https://cwiki.apache.org/confluence/display/WW/Conversion+Annotation > > > > Both show "Error formatt

Re: More website doc problems: Type Conversion and Conversion Annotation

2015-08-19 Thread Lukasz Lenart
2015-08-19 18:55 GMT+02:00 rgm : > In order to determine the best way to prompt for and store a > javax.mail.internet.InternetAddress, I began researching these pages, which > are broken to various degrees: > > https://cwiki.apache.org/confluence/display/WW/Type+Con

More website doc problems: Type Conversion and Conversion Annotation

2015-08-19 Thread rgm
In order to determine the best way to prompt for and store a javax.mail.internet.InternetAddress, I began researching these pages, which are broken to various degrees: https://cwiki.apache.org/confluence/display/WW/Type+Conversion https://cwiki.apache.org/confluence/display/WW/Conversion

Re: Antwort: Re: Problems with type conversion and special characters

2013-10-15 Thread Alessio Matteo
Really I was using a custom type converter (with annotations on getters & setters) but I had the problem that when typeconversionexception was thrown the dynamic contents on my web page (objects retrieved from db or from actions) didn't display. Really I don

Antwort: Re: Problems with type conversion and special characters

2013-10-15 Thread Christoph Nenning
> > Thank you so much, I solved the special characters problems by setting > the struts i18n constant to ISO-8859-1! > About the conversion error, I know it was a dev mode warning, but when > the exception was thrown every dynamic content in my page disappeard... > Anyway I solved the issue by

Re: Problems with type conversion and special characters

2013-10-14 Thread Alessio Matteo
Thank you so much, I solved the special characters problems by setting the struts i18n constant to ISO-8859-1! About the conversion error, I know it was a dev mode warning, but when the exception was thrown every dynamic content in my page disappeard... Anyway I solved the issue by declaring eve

Re: Type conversion on a Map

2012-09-24 Thread Lukasz Lenart
2012/9/21 Miguel Almeida : > Sure! > > Here's a maven project with a failing test case. > > There's actually a map being built, but it's a , and the key > reads "OGNL no conversion possible". Got it working, but I think the main problem is with key value - it isn't a simple string but an int that

RE: Type conversion on a Map

2012-09-21 Thread Miguel Almeida
On Fri, 2012-09-21 at 09:04 -0400, Martin Gainty wrote: > a stupid question but i have to ask If you mean "where is the initialisation of simpleMap e.g. simpleMap=new java.util.HashMap();" - it's not there. I don't think you need to, Struts initializes it. (see below) > > public class TypeConve

RE: Type conversion on a Map

2012-09-21 Thread Martin Gainty
ets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Re: Type conversion on a Map From: mig...@almeida.at To: user@struts.apache.org Date: Fri, 21 Sep 2012 10:31:24 +0100 Sure! Here's a maven project with a failing test case.

Re: Type conversion on a Map

2012-09-20 Thread Lukasz Lenart
Hi, Could you share the unit test as well ? The whole code would be the best :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

Type conversion on a Map

2012-09-20 Thread Miguel Almeida
Dear all, Considering: 1) the action property Map complexMap; 2) CodeProperty has an int id property How would you configure type conversion and refer to it on the JSP to populate it? I am currently trying the following -conversion configuration: KeyProperty_complexMap=id Element_complexMap

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; }

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: 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

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

Re: [S2] Displaying user entered values after failed type conversion while using getText()?

2011-11-17 Thread Li Ying
value] field, and another is , which will send data to the [original input text] field. User can only see the , and input data in it. you can create some JS code, to copy the content to the element, before the form be posted. When the type conversion fails, and the input page displayed again, the

[S2] Displaying user entered values after failed type conversion while using getText()?

2011-11-16 Thread Burton Rhodes
I am having an issue with displaying the original value entered on a form after failed type conversion.  This "bug" is caused by my use of getText() in the form value fields. I'm curious how one solves this issue for making sure the field is formatted correctly upon display, but a

Re: Type conversion of List - how does one do it?

2011-05-18 Thread Miguel
On Tue, 2011-05-17 at 14:42 -0700, Jeffrey Black wrote: > Hey there Miguel. > > Have a look here: > > http://struts.apache.org/2.0.14/docs/type-conversion.html#TypeConversion-GenericsandErasure Thanks Jb. In my case a possible solution is to remove the generic reference to the list (ie, ch

Re: Type conversion of List - how does one do it?

2011-05-17 Thread Jeffrey Black
Hey there Miguel.   Have a look here:   http://struts.apache.org/2.0.14/docs/type-conversion.html#TypeConversion-GenericsandErasure   Best,   jb From: Miguel To: user@struts.apache.org Sent: Tuesday, May 17, 2011 5:19 AM Subject: Type conversion of List - how does one do it? I've a

Type conversion of List - how does one do it?

2011-05-17 Thread Miguel
I've always struggled with type conversion of lists and I'd appreciate a more experienced brain to help me out. Consider the following multiple select box: As per the documentation, "name your element people.name and the framework will understand that it should create a new Pe

Re: Invocation of type conversion manually

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
itationInterceptor.resource">Eco > > > >MenuGestor > >MenuBanquero > >MenuCliente > > > > [...] > > > > I could implement an interface for the action, but that would require > > defin

Re: Invocation of type conversion manually

2010-12-13 Thread Chris Pratt
> I could implement an interface for the action, but that would require > defining an interface for each rule(since each rule needs different > parameters). The second options is valid, but I like the idea of just > declaring the getXXX method in the rule, and having the framework do t

Re: Invocation of type conversion manually

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
method in the rule, and having the framework do the work for me(mostly, the type-conversion). What do you think? 2010/12/13 Maurizio Cucchiara > Ok, now it's definitively clear. > First every interceptor knows exactly which action is invoked through > action > invocation. &

Re: Invocation of type conversion manually

2010-12-13 Thread Maurizio Cucchiara
Ok, now it's definitively clear. First every interceptor knows exactly which action is invoked through action invocation. With that said your action could implement (1) your custom interface or (2) a generic Request Aware interface in order to retrieve request parameters. Does this answer your ques

Re: Invocation of type conversion manually

2010-12-13 Thread JOSE L MARTINEZ-AVIAL
Hi Maurizio, Li, Thanks for your suggestion, but the problem with the approaches you suggested is that they link the security rules too much to the actions. We want to be as abstract as possible. For that, we have developed the following implementation: We created some entities called Securi

Re: Invocation of type conversion manually

2010-12-12 Thread Li Ying
I think you don't need this bothering job. You can: (1)Define some properties in your base class of all your action classes. (2)Use these properties to capture data from the request. (3)Run your interceptor AFTER the interceptors of struts2. But BEFORE the execution of the Action class So, The i

Re: Invocation of type conversion manually

2010-12-10 Thread Maurizio Cucchiara
2010/12/10 Jose Luis Martinez Avial : >The > validation should be dinamic, so the rules should be able to receive > information from the request. Basing Rule Access Control on request's parameters might induce security flow risks. > What I would like to do is to use Struts' > mechanism to process

Invocation of type conversion manually

2010-12-09 Thread Jose Luis Martinez Avial
Hello all, I'm using Struts 2..1.8.1 for an application. To integrate the security in the application we have developed an interceptor that intercepts every request and checks a list of rules(implemented as classes) to know if the user is allowed to execute the action. The validation should be

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

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 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

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

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
Nevermind, my stacktrace came from that issue : https://issues.apache.org/jira/browse/WW-2850 2010/5/10 Thomas Lulé : > One last thing : > > Even if everything works, I still get a stacktrace when I submit the > form to save my object. > > I think that the params interceptor tries to set the prope

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
One last thing : Even if everything works, I still get a stacktrace when I submit the form to save my object. I think that the params interceptor tries to set the properties of the object "jspProfile" I have in my form (with for example), before the prepare interceptor initialize that object. E

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
It works. Thanks a lot Lukasz and Alex. 2010/5/10 Alex Rodriguez Lopez : > Hi Thomas, > > use the paramsPrepareParams interceptor stack (or change yours), from > struts-default.xml: > > >             > ... > > I think this accomplishes what you are looking for (of course you need > setters for t

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Alex Rodriguez Lopez
Hi Thomas, use the paramsPrepareParams interceptor stack (or change yours), from struts-default.xml: ... I think this accomplishes what you are looking for (of course you need setters for the parameters that you want params interceptor to have ready for you by the time the pre

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
That interceptor looks great, but is there any way to access request parameters in the prepare() method ? The http request provides an "archiveProfileId" parameter and I use that parameter to load my object "archiveProfile". 2010/5/10 Lukasz Lenart : > Use Preparable interface instead > http://st

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Lukasz Lenart
Use Preparable interface instead http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscri

Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
Hi, I've got a form with mapped with "Long" variables in my action class. Also, my jsp displays some pre-computed information (that I retrieve from database in my action's method). When the user types letters in the number field, the type conversion fails, and the JSP is r

Re: FW: Type conversion for Date in es_CL Locale

2010-03-10 Thread Sundar Sankar
ankarnarayanan < sundar.sankarnaraya...@apollogrp.edu> wrote: > > > > > *From:* Sundar Sankarnarayanan > *Sent:* Wednesday, March 10, 2010 9:40 AM > *To:* 'user@struts.apache.org' > *Subject:* Type conversion for Date in es_CL Locale > > > > Hi > >

Type conversion for Date in es_CL Locale

2010-03-10 Thread Sundar Sankarnarayanan
on locales. This field corresponds to a java.util.date property defined inside a pojo. My problem is, when I have my locale set to en_US, the struts 2 type conversion kicks in and the setter for the particular property is invoked (which I figured by setting a debug inside the setter method

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: 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

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

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. ---

[S2] Can't get type conversion running with -tags

2010-01-11 Thread Michael Obster
Hi, I've a problem get the type conversion running in connection with a s:select. I have an action (OrderABCEditAction.java) with a "List userlist;" variable and corresponding getter and setter. Then I do a in the order_abc.jsp. Then I have created a OrderABCEditAction-conversio

Re: S2 Type conversion error and validation problem

2009-12-04 Thread Marsman
"...To keep conversion errors from reporting globally, change the interceptor stack, and add additional validation rules." Should I build my own interceptor stack without the conversion error interceptor and use the type conversion validator only? Titus -- View this message i

Re: S2 Type conversion error and validation problem

2009-12-04 Thread Marsman
"...To keep conversion errors from reporting globally, change the interceptor stack, and add additional validation rules." Should I build my own interceptor stack without the conversion interceptor and use the type conversion validator only? Titus -- View this message in context:

Re: S2 Type conversion error and validation problem

2009-12-03 Thread Wes Wannemacher
On Wed, Dec 2, 2009 at 9:22 AM, Marsman wrote: > > Hi! > > after a type conversion error, Struts goes on in the interceptor stack and > validates the empty action property with useless results. How can I avoid > this? (I'm using the default interceptor stack.)

S2 Type conversion error and validation problem

2009-12-02 Thread Marsman
Hi! after a type conversion error, Struts goes on in the interceptor stack and validates the empty action property with useless results. How can I avoid this? (I'm using the default interceptor stack.) And how can I avoid the NoSuchMethodException thrown every time a user enters in

Re: Type Conversion and Lists

2009-09-25 Thread Dave Newton
Stephen Turner wrote: 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

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: struts 2.1.5 type conversion error

2009-08-18 Thread Sandy.Verfaille
Thank you very much! -Oorspronkelijk bericht- Van: musom...@aol.com [mailto:musom...@aol.com] Verzonden: dinsdag 18 augustus 2009 16:00 Aan: user@struts.apache.org Onderwerp: Re: struts 2.1.5 type conversion error That is because you are using Struts 2.1.5. There is a bug in the type

Re: struts 2.1.5 type conversion error

2009-08-18 Thread musomesa
That is because you are using Struts 2.1.5. There is a bug in the type conversion for doubles in XWork which is fixed in the current version (XWork 2.1.4). When you enter a zero it claims it is not a valid value. To use XWork 2.1.4 you need Struts 2.1.7. I have just sent the zips I promised

RE: struts 2.1.5 type conversion error

2009-08-18 Thread Sandy.Verfaille
apache.org Onderwerp: Re: struts 2.1.5 type conversion error The error/warning you are talking about happens when the conversion fails. Essentially, after it tries the conversion and can't do it then it tries to apply the setXXX(String xxx), but that really is not what you want at all. Whe

Re: struts 2.1.5 type conversion error

2009-08-17 Thread dusty
Amount(String stockAmount) so it could >> be used by the default ognl conversion. Now I can work without >> errors, but it seems kind of strange to me that this is the normal >> way of working, is it? > > No; you shouldn't need to do that (and you're breaking Ja

Re: struts 2.1.5 type conversion error

2009-08-17 Thread Dave Newton
l way of working, is it? No; you shouldn't need to do that (and you're breaking JavaBean convention by doing so). The default type conversion should be converting the form values to int automatically. If it's not, something is very wrong, because this functionality has been wor

Re: struts 2.1.5 type conversion error

2009-08-17 Thread musomesa
truts 2.1.5 type conversion error Chris, I've changed my original setter to setStockAmountInt(int stockAmount), and kept setStockAmount(String stockAmount) so it could be used by the default ognl conversion. Now I can work without errors, but it seems kind of strange to me that th

RE: struts 2.1.5 type conversion error

2009-08-17 Thread Sandy.Verfaille
is it? Regards, sandy -Oorspronkelijk bericht- Van: musom...@aol.com [mailto:musom...@aol.com] Verzonden: maandag 17 augustus 2009 11:53 Aan: user@struts.apache.org Onderwerp: Re: struts 2.1.5 type conversion error OGNL properties are JavaBean properties. In your case you are trying to d

Re: struts 2.1.5 type conversion error

2009-08-17 Thread musomesa
= Integer.parseInt(stockAmount); } Now you have two properties even though the data is in one field. Chris -Original Message- From: sandy.verfai...@roularta.be To: user@struts.apache.org Sent: Mon, Aug 17, 2009 4:26 am Subject: RE: struts 2.1.5 type conversion error Eduard, I have

RE: struts 2.1.5 type conversion error

2009-08-17 Thread Sandy.Verfaille
n xml or .properties file.. Regards, SAndy -Oorspronkelijk bericht- Van: Eduard Neuwirt [mailto:eduard.neuw...@googlemail.com] Verzonden: maandag 17 augustus 2009 9:38 Aan: Struts Users Mailing List Onderwerp: Re: struts 2.1.5 type conversion error Hi Sandy, please use additionally t

Re: struts 2.1.5 type conversion error

2009-08-17 Thread Eduard Neuwirt
Mailing List Onderwerp: RE: struts 2.1.5 type conversion error http transmits strings (not int,double,date or any other type of primitive) Martin Gainty je ne suis pas d'accord avec ce que vous dites. mais je défendrai à ma mort votre droite de la dire. - Vol

RE: struts 2.1.5 type conversion error

2009-08-16 Thread Sandy.Verfaille
augustus 2009 18:45 Aan: Struts Users Mailing List Onderwerp: RE: struts 2.1.5 type conversion error http transmits strings (not int,double,date or any other type of primitive) Martin Gainty je ne suis pas d'accord avec ce que vous dites. mais je défendrai à ma mort votre droite de la

RE: struts 2.1.5 type conversion error

2009-08-13 Thread Martin Gainty
n seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: RE: struts 2.1.5 type conversion error > Dat

RE: struts 2.1.5 type conversion error

2009-08-13 Thread Sandy.Verfaille
Lukasz, The type of 'price' is a double.. Thx for answering. Regards, sandy -Oorspronkelijk bericht- Van: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Verzonden: woensdag 22 juli 2009 9:50 Aan: Struts Users Mailing List Onderwerp: Re: struts 2.1.5 type conversion err

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

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

Re: struts 2.1.5 type conversion error

2009-07-22 Thread Lukasz Lenart
2009/7/17 : > > Name nl > price > What type has "price" in action class? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Charles de Gaulle - "The better I get to know men, the more I find myself loving dogs." - http://www.brainyquote.com/quotes/authors/c/charles_

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: [Struts 2.1] Using a s:select with type conversion

2009-07-13 Thread Musachy Barroso
y advice on the matter would be welcomed. > > I have posted the bug under https://issues.apache.org/struts/browse/WW-3184 > attaching a simple Use Case showing what I find to be an unexpected > behaviour. > > Thanks for your help! > Denis. > -- > View this message in c

[Struts 2.1] Using a s:select with type conversion

2009-07-13 Thread dcabasson
help! Denis. -- View this message in context: http://www.nabble.com/-Struts-2.1--Using-a-s%3Aselect-with-type-conversion-tp24467738p24467738.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e

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

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

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. >

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

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: 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

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-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-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
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 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 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 : > 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 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
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-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-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
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

  1   2   3   >