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
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
--- 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.
[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
--- 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,
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
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
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
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
--- 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
Me too.
P.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- 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
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
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
- 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
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
- 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
>
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
>
>
> 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 ?)
--
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?
---
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
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
22 matches
Mail list logo