if the validation
fails ...
-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 6:45 AM
To: [EMAIL PROTECTED]
Subject: ValidatorForm losing params when validation fails
The following code fragment is used in a DispatchAction and when
Users Mailing List
Subject: RE: ValidatorForm losing params when validation fails
Yes .. It makes sense ..
Can u post the action mapping in the struts config .. That may give some
clue
-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003
I'm having trouble populating a Form bean that has an indexed (variable
size) nested bean. I'm using an ArrayList inside the Form bean to collect
the nested properties and it's partially working. The problem is that
because the index is variable, I don't know how to correctly size the
ArrayList.
The following code fragment is used in a DispatchAction and when the
validation fails, the input form is returned unpopulated because all my form
fields lose the data that was originally sent with the request:
ActionErrors errors = form.validate(mapping, request);
if (!errors.isEmpty()) {
Blankvalidwhen is in CVS right now. Check out nightly build if it's worth
it to you.
-Original Message-
From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 5:32 AM
To: struts
Subject: validwhen + struts 1.1
Importance: High
I am currently
My understanding is that 'requiredif' will be deprecated and the use of
'validwhen' is encouraged.
Example:
field property=emailAddress depends=validwhen
arg0 key=userinfo.emailAddress.label/
var
var-nametest/var-name
var-value((sendNewsletter == null) or
you used this or tested it?
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:32 PM
Subject: RE: requiredif
My understanding is that 'requiredif' will be deprecated and the use of
'validwhen
It's not so much a feature as the way you design your Action and ActionForm.
I do this with all JSP responsible for creating/editing some persistent
business object. What I do:
1. Create two actions named Get[YourBusinessObject]Action and
Edit[YourBusinessObject]Action. Both should extends
html:messages id='messages' message='true' header='messages.header'
footer='messages.footer'
bean:message name='msg' /
/html:messages
I'm only seeing one ActionMessage printed out. I thought html:messages
would iterate, but apparently not. Can someone provide some guidance?
should read bean:message name='messages' / below
-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 6:37 AM
To: [EMAIL PROTECTED]
Subject: not printing all ActionMessages
html:messages id='messages' message='true' header='messages.header
: Marc Dugger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 5:07 PM
To: [EMAIL PROTECTED]
Subject: not printing all ActionMessages
html:messages id='messages' message='true' header='messages.header'
footer='messages.footer'
bean:message name='msg
Scarab is Java based and quite easy to set up.
-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 4:43 PM
To: Struts Users Mailing List
Subject: Re: Bug tracking software
I have used GNATS and gnatsweb for years and like them very much
I had a somewhat similar issue with Tomcat when it came to serializing a
FormFile. I got around this by extending the MultipartRequestHandler and
implementing Serializable. It appears that you could do the same with the
RequestProcessor. Be sure to add this to your struts-config.xml:
I'm receiving the following exception:
line 1:30: unexpected char: '0'
at
org.apache.struts.validator.validwhen.ValidWhenLexer.nextToken(ValidWhenLexe
r.java:236)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at
I am using the same form to both create and update database entities. The
following is an example of a form field:
html-el:select property='documentStatusTypeId'
value='${note.auditIdentity.documentStatusType.id}'
onchange=editNoteForm.action=''; editNoteForm.submit(); return true;
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 12:35 PM
Subject: populating form fields from request params
I am using the same form to both create and update database
entities. The
following is an example of a form
Can anyone offer a crafty method of reloading a dynamic collection of
html:options into the request scope in case form validation fails and the
controller must forward to the 'input' of the action mapping? Thanks.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
My validation.xml:
form name=/note/note_schedule/edit/details
field property=noteScheduleTypeId depends=required,integer
arg0 key=Note Schedule Type ID resource=false/
/field
field property=interestRateIndexTypeId
depends=validwhen,integer
this in
the example
Barry
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 2:42 PM
Subject: only Strings appear to be validated by Validator
My validation.xml:
form name=/note/note_schedule/edit/details
Can someone explain the parameters of this method? The javadocs call them
'name' and 'key'. I gather that 'name' refers to the 'name' attribute of
the form-property in struts-config. If so, what does 'key' refer to?
Thanks.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus
I've set the scope of my form to 'session' to support a wizard process.
The form defines a property of type org.apache.struts.upload.FormFile. This
work fine until I set 'validate = true' on my action mapping. It appears
that
21 matches
Mail list logo