[S2] field-validator regex ignoring given message

2007-05-19 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value When i test validation, the "required" key is shown correc

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value When i test validation, the "required" key is

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: [0-9] --- "Dave Newton" <[EMAIL PROTECTED]> wrote: If it's defined as a Long in your action then you might not be able to run a regex on it--I would imagine type conversion has already happened.

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
[0-9]*(\.[0-9]+)? Hi Lance, as already established (see previous posts), it is not a matter of regular expressions. The matter is: the variable in the Action is a Long (and MUST be a Long). The regex validation does not work, if the variable is not a String. I'm searching a way to validate

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari <[EMAIL PROTECTED]> wrote: So how to validate a Long value? You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you do! Thanks,

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: So how to validate a Long value? "Dave Newton" <[EMAIL PROTECTED]> wrote: You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd b

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. "Dave Newton" <[EMAIL PROTECTED]> wrote: $ find . -name "*.pro

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari <[EMAIL PROTECTED]> wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. "Dave Newton" <[EMAIL PROTECTED]> wrote: $ find . -name "*.pro

[S2] decoding values of objects properties

2007-06-06 Thread Paolo Beccari
Hi all, I have some objects in my app whose properties needs a "decode" in the view. I don't want to return property values already decoded to the view, I wish to decode them in the view. For the same reason, I also have to build some picklists with shown text different from value. Since we

Re: [S2] decoding values of objects properties

2007-06-06 Thread Paolo Beccari
--- Dave Newton wrote: Why? I'll try to explain. The main problem is, that i would not to expose a single getter-method in the action for each property I want to decode. I'm searching for a more generic method. I thought on some possibile solution, one was to return, in each action, the

Re: [OT] Is anybody else getting these? Fwd: Returned mail: see transcript for details

2007-06-06 Thread Paolo Beccari
Me too. P. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] decoding values of objects properties

2007-06-06 Thread Paolo Beccari
- Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 06, 2007 1:14 PM Subject: Re: [S2] decoding values of objects properties I'm still not entirely what you're decoding from and to; it sounds like something is fundamenta

[S2] OGNL newbie: obtaining subset of a collection

2007-06-06 Thread Paolo Beccari
Hi there, here: http://struts.apache.org/2.x/docs/ognl.html I found that: To select a subset of a collection (called projection), use a wildcard within the collection. ? - All elements matching the selection logic ^ - Only the first element matching the selection logic $ - Only the last element

Re: [S2] OGNL newbie: obtaining subset of a collection

2007-06-12 Thread Paolo Beccari
Laurie Harper wrote: L. ObWhine: please don't post unrelated questions to an existing thread. Be sure to start a new thread (with an appropriate subject) by sending a fresh message to the list, rather than using Reply To. Thanks for the reply. I'm sorry for the wrong posting, it was not

Re: avoiding resetting of values

2007-06-14 Thread Paolo Beccari
- Original Message - From: "goodprogram" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 9:37 PM Subject: avoiding resetting of values > > Hi > > I have 7 textbox fields, when i enter the values for all those and submit > the form, the clientside and server side validations are

Re: [S2] int validator for longs?

2007-06-15 Thread Paolo Beccari
I got the same problem a few days ago, solved using the Conversion Validator: http://www.mail-archive.com/user@struts.apache.org/msg60494.html HTH P. - Original Message - From: "Jon Wilmoth" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 14, 2007 10:50 PM Su

Re: In struts 2 can we stop form submiting twice when submit button is pressd more than once

2007-06-15 Thread Paolo Beccari
- Original Message - From: "sudeepj2ee" <[EMAIL PROTECTED]> To: Sent: Friday, June 15, 2007 6:51 AM Subject: In struts 2 can we stop form submiting twice when submit button is pressd more than once > > Hi > > Is there a way out in struts 2 as in struts1.2 for not submitting the form >

[S2] tree tag and nodes customization

2007-08-18 Thread Paolo Beccari
Hi, is there a way to specify different images for each node? Or are property such expandIconSrcPlus immutable for the entire tree? Thanks, P. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: [S2] tree tag and nodes customization

2007-08-22 Thread Paolo Beccari
> > > Hi, > > is there a way to specify different images for each node? Or are property > such expandIconSrcPlus immutable for the entire tree? > > Thanks, > > P. ...ping? (Btw, I think it's not possibile because it's a ?) --

[S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Hi list, I'm trying to display the results of a Form in a s:div through Ajax. The submit is done fine, I can get the parameters through scriptlets (request.getParameter...) but i can't use s2 tags (i.e. ): it seems they are not being rendered. Could someone tell me where I'm wrong? ---

Re: [S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Ops, I missed some information. In addition, when setting the s:head debug="true" I'm getting the message: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for "div" in "s.widget" registered to namespace "s". Developers must specify correct names

Re: [S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Follow up, just in case... The two problems where related one each other. In fact: Taglib <%@ taglib prefix="s" uri="/struts-tags" %> was defined in the "main" page. Inside the jsp called via Ajax by action result (inside s:div) I used tags like s:property. I discovered that when doing the