PROTECTED]
Sent: Friday, June 16, 2006 8:32 AM
To: Struts Users Mailing List
Subject: RE: newbie question on indexed properties and validation
I can provide a zip of the workspace I was doing for this if that would help.
I just can't seem to get the multiple errors. Can the html:text tag determine
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
When, I tried to cobble this all into a working example, if I left out multiple
values (in a four record grid), I'd get one struts validation error
Hi everyone!
I am having problem to use indexed properties.
I need to display a table with the list of transactions and a check box
next to each transaction which can add the transaction amount to a text
field. In my action form I have a list of displayObjects and the
displayObject is like
I wonder why there are no responses today..
Guys, I really need help on this.. Any expert views?
-Original Message-
From: Vidya (Suvarna) Mahavadi [mailto:[EMAIL PROTECTED]
Sent: Monday 15 May 2006 11:42
To: Struts Users Mailing List
Subject: Indexed Properties
Hi everyone!
I am
: Vidya (Suvarna) Mahavadi [mailto:[EMAIL PROTECTED]
Sent: Monday 15 May 2006 11:42
To: Struts Users Mailing List
Subject: Indexed Properties
Hi everyone!
I am having problem to use indexed properties.
I need to display a table with the list of transactions and a check box
next to each transaction
you need to have an instantiated array of wrapper[] that is big enough
to take what your HTML submits. If your action form is in the request,
then wrappers[] will be null unless you instantiate it.
martin on 23/04/06 16:59, wrote:
I've a problem with indexed properties inside an iteration
Hello
I've a problem with indexed properties inside an iteration. Some of the
properties are rendered as a text-area and should be editable by the
user. The rendering goes fine but if the user makes some changes, they
are not committed to the form. Please take a look at the jsp/html/java
Interesting! How did tip.scoreHome render as tip.guessedScoreHome ?
On 4/23/06, martin [EMAIL PROTECTED] wrote:
Hello
I've a problem with indexed properties inside an iteration. Some of the
properties are rendered as a text-area and should be editable by the
user. The rendering goes fine
martin wrote:
I've a problem with indexed properties inside an iteration. Some of the
properties are rendered as a text-area and should be editable by the
user. The rendering goes fine but if the user makes some changes, they
are not committed to the form.
You might want to look at using
thanks,
is it possible to use this on the client side?
is there a tutorial anywhere how to use it`?
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, February 22, 2006 9:23 PM
Subject: Re: validate indexed
this on the client side?
is there a tutorial anywhere how to use it`?
- Original Message - From: James Mitchell
[EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, February 22, 2006 9:23 PM
Subject: Re: validate indexed properties
Yes.
--
James Mitchell
?
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, February 23, 2006 8:15 PM
Subject: Re: validate indexed properties
Have you tried google?
http://www.google.com/search?hl=enq=validating+indexed
]
Sent: Thursday, February 23, 2006 2:26 PM
To: Struts Users Mailing List
Subject: Re: validate indexed properties
sure, but I didn't get it work...
My jsp code looks like this:
logic:iterate id=dw name=dwForm property=gd.otherDw
html:text styleId=gd.otherDw.dw name=otherDw property=dw
indexed
Hi,
is it possible to validate indexeded properties with Struts validator (struts
1.2.7)
Yes.
--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx
On Feb 22, 2006, at 3:16 PM, Juergen Schmailzl wrote:
Hi,
is it possible to validate indexeded properties with Struts
validator (struts 1.2.7)
Yes. reset method in my Action form was missing and hence th problem.
Thanks for your reseponse.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday 19 January 2006 22:01
To: user@struts.apache.org
Subject: Re: FW: Indexed properties
Vidya
Vidya (Suvarna) Mahavadi wrote:
Hi,
I am currently working on an application which uses Indexed properties.
And I am not able to update the indexed bean properties properly. I have
included some code snippets here.. The problem is when the check box on
the jsp is checked it update correctly
Hi,
I am currently working on an application which uses Indexed properties.
And I am not able to update the indexed bean properties properly. I have
included some code snippets here.. Any help on this much appreciated.
Thanks,
Vidya
Action form has a Collection of bean objects like
Hi,
I am currently working on an application which uses Indexed properties.
And I am not able to update the indexed bean properties properly. I have
included some code snippets here.. The problem is when the check box on
the jsp is checked it update correctly, but when the check box is uncked
Hello all,
Sorry for the OT ... I was wondering, for anyone who has switched
From struts to JSF, how have you dealt with indexed properties?
I am currently using MyFaces, and looks like I have an usecase in which
I need to use indexed properties..
I was told that JSF does not support htat
On 1/3/06, Marco Mistroni [EMAIL PROTECTED] wrote:
Hello all,
Sorry for the OT ... I was wondering, for anyone who has switched
From struts to JSF, how have you dealt with indexed properties?
I am currently using MyFaces, and looks like I have an usecase in which
I need to use
Hi,
I was hoping that the following should work ... but I guess I am missing
something somewhere.. validation with other properties is working fine.. but
not with the indexed properties.
Struts-config.xml:
form-bean name=studentEnquiryForm type=
org.apache.struts.validator.DynaValidatorForm
My actionForm has an ArrayList of objects that I display in my JSP for update
using indexed properties (see below JSP code):
logic:iterate id=objectVO name=FormConfig
property=objectCollection type=com.xxx.MyType
html:text name=objectVO property
No one??
[EMAIL PROTECTED]
11/15/2005 04:15 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
indexed properties and validation
I've got a form with an indexed propety contained in an array list, with
values such as ssn. It has
Hello,
I would like to iterate the DTO's List of my ActionForm with
layout:collection
like i will do with logic:iterate :
logic:iterate name=orderForm property=orders id=rememberMe
html:text name=rememberMe property=fieldA indexed=true/
/logic:iterate
The result i try to achieve is
Here is the tips:
layout:collection name=CreateAccesForm property=utilisateurs
indexId=indexUser
id=utilisateur styleClass=hermes-layout styleId=listeUsers height=190px
width=100% onRowMouseOut=this.className='tableauClair' onRowMouseOver=
this.className='tableauSurvol'
layout:collectionInput
layout:collection is part of the Struts Layout project, which is a
seperate project from Struts. You need to ask questions about its use on
the Struts Layout mailing lists:
http://struts.application-servers.com/mail-lists.html
arnaud gonzales wrote:
Here is the tips:
layout:collection
Considering current Party policy proclaiming Struts is not a single
product, but is a community I would rephrase Laurie's reply as
follows:
layout:collection is part of the Struts Layout project, which is a
separate project from Struts Classic, Struts Core, Struts
Distribution, Struts Shale ,
Hi All,
Does anyone know when the issue mentioned under the heading BeanUtils
Indexed Properties Issue on:
http://wiki.apache.org/struts/StrutsCatalogLazyList
will be resolved?
I'm using a 1.4 version of the JRE with Struts 1.2.7 which still appears
to not pick up on the getter/setters
Ignore my last post - it turned out that my reset() implementation on my
Form was reseting more than it should have been.
--
Stephen
Stephen Souness wrote:
Hi All,
Does anyone know when the issue mentioned under the heading BeanUtils
Indexed Properties Issue on:
http://wiki.apache.org
-Original Message-
From: Kishore Senji [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 9:11 PM
To: Struts Users Mailing List
Subject: Re: Validating Indexed Properties
public class DevicePartMeasurementTO implements Serializable {
private int devicePartsTypeID;
private
Hello all,
I am fairly new to Struts, and have my first application working from a db
and navigation standpoint. The last piece I am trying to get working is the
validation for my forms, many of which have indexed properties based on
DTOs. I user a LazyValidationForm, though I probably didn't
=/MySuccessPage.do /
/action
My problems:
1. Execution fails when populating the DynaActionForm indexed properties
within prepareUpdate(...) with a IndexOutOfBoundsException. I'm aware of the
size-attribute of the form-property tag but the size is unknown at first.
2. Is my idea how to do it basically right
Hi Guys,
http://struts.apache.org/faqs/indexedprops.html
Subsection List-Backed Indexed Properties contains this code:
package org.apache.struts.webapp.exercise;
import org.apache.struts.action.ActionForm;
public class StringBean2 extends ActionForm {
private String strAry[] = { String 0
Hi,
I'm using indexed properties to display an array of
radio buttons in my Struts 1.1 web application.
I get an exception shown below when I use request
scope for my form bean but things work fine with
session scope.
Could somebody tell me what I'm doing wrong. Is there
a way to make
is the usrModList scripting variable named by the logic:iterate/ tag
defined / initialized? How is it tied to your form bean?
L.
Shyam Anand wrote:
Hi,
I'm using indexed properties to display an array of
radio buttons in my Struts 1.1 web application.
I get an exception shown below when I use
Hi,
Can some one give me some sample on how to validate the indexed
properties in Struts 1.1
Thanks
Ashwani
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed
On 04/08/05, Kalra, Ashwani [EMAIL PROTECTED] wrote:
Hi,
Can some one give me some sample on how to validate the indexed
properties in Struts 1.1
I assume you are using the default Validator plugin.
This is an excerpt from my validation.xml, using indexed properties.
form name=/myForm
On 07/07/05, Hubert Rabago [EMAIL PROTECTED] wrote:
What do you mean when you say it doesn't work?
I mean that when I input characters in an integer-only field, the
validation is not triggered, the values are just set on the form.
However, I have tried to dig a bit more into this, and have
I should probably slap myself now. This works just fine, if the
struts-config doesn't turn validation off. :)
Kjersti
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
beans properly.
Hubert
On 7/5/05, Kjersti Berg [EMAIL PROTECTED] wrote:
Hi
I would like to validate some nested, indexed properties on my form.
I've googled and found someone having similar problems, but haven't
found a solution yet. Any help would be great.
The form contains a list
Hi
I would like to validate some nested, indexed properties on my form.
I've googled and found someone having similar problems, but haven't
found a solution yet. Any help would be great.
The form contains a list of Job objects, each having a set of
properties, let's say number and size. I tried
...
Could you give me an example as to how we pre populate the array?
Regards,
Nitesh
- Original Message -
From: John Fitzpatrick [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, June 02, 2005 6:00 PM
Subject: Re: Problem using indexed properties
using indexed properties and validator framework
For an Array in a DynaForm property, you can either set the size in the
form-property descriptor or, in the case of a session form, pre-populate
the
Array in your action with the number of elements you desire
...
Could you give me an example as to how we pre populate the array?
Regards,
Nitesh
- Original Message -
From: John Fitzpatrick [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, June 02, 2005 6:00 PM
Subject: Re: Problem using indexed properties
Hi,
I'm trying to use the validator framework with dyna forms.
In the JSP page I have a list of user details being listed for edit.
logic:iterate name=userList id=userList collection=%= userListCol %
type=com.sample.vo.UserDetails
tr
tdhtml:text property=userName indexed=true name=userList
Hi,
I'm trying to use the validator framework with dyna forms.
In the JSP page I have a list of user details being listed for edit.
logic:iterate name=userList id=userList collection=%= userListCol %
type=com.sample.vo.UserDetails
tr
tdhtml:text property=userName indexed=true name=userList
, but
validation is not happening! (again problem only for the indexed property.
works fine for the normal one.
In my experience, whenever I deal with Indexed properties, I've had to
create the actual Form class and put the validation into the validate (...)
method
[EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, June 02, 2005 5:15 PM
Subject: Re: Problem using indexed properties and validator framework
Looks like you've got a few issues. Let me answer what I can and see if
that
helps:
On 20050602 7:34 AM, Nitesh
, June 02, 2005 8:03 AM
Subject: Re: Problem using indexed properties and validator framework
John,
Thank you for the answer.
I tried removing size with the form having session scope and it gave me
java.lang.ArrayIndexOutOfBoundsException.
Tried using ArrayList and gives me
Sent: Thursday, June 02, 2005 5:15 PM
Subject: Re: Problem using indexed properties and validator framework
Looks like you've got a few issues. Let me answer what I can and see if
that
helps:
On 20050602 7:34 AM, Nitesh [EMAIL PROTECTED] wrote:
Hi,
I'm trying to use the validator
Subject: Re: Problem using indexed properties and validator framework
John,
Thank you for the answer.
I tried removing size with the form having session scope and it gave me
java.lang.ArrayIndexOutOfBoundsException.
Tried using ArrayList and gives me
Matt Raible wrote the following on 5/8/2005 11:39 AM:
As an alternative, I suppose I could modify my Form - POJO conversion
to detect Sets and properly convert List to Set.
Unfortunately I think this is what you are going to have to do Matt. I'd
keep the Set property in the form bean, but use
I've had much success doing indexed properties with a java.util.List,
but no luck with figuring out how to do it with a java.util.Set. Is it
possible? With a list, you can use the setProperty(index i, ActionForm
form) signature, but I haven't been able to figure out how to do this
with a Set
Deschenes/NAT/CMHC-SCHL/CA)
Subject:Re: c:forEach tag and indexed properties problem
Classification:
[EMAIL PROTECTED] wrote:
Any data in the dynamicArrayForm.map.artikel ?
yes it's work fine without the html:text tag.
here is an example output.
TR
TD bad - Ausstattung PS
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:Re: c:forEach tag and indexed properties problem
Classification:
[EMAIL PROTECTED] wrote:
Any data in the dynamicArrayForm.map.artikel ?
yes it's
[EMAIL PROTECTED]
13/04/2005 07:55 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:Re: c:forEach tag and indexed properties problem
Classification
Hi Guys,
i have a problem with the forEach Tag and an indexed propertie!
Please have a look at this peace of code.
c:forEach var=artikel items=${dynamicArrayForm.map.artikel}
TR
TD c:out value=${artikel.kategorie}/ - c:out
value=${artikel.setbezeichnungkurz}/
c:out
and indexed properties problem
Classification:
Hi Guys,
i have a problem with the forEach Tag and an indexed propertie!
Please have a look at this peace of code.
c:forEach var=artikel items=${dynamicArrayForm.map.artikel}
TR
TD c:out value=${artikel.kategorie}/ - c:out
value
tag!
Axel Sachmann [EMAIL PROTECTED]
12/04/2005 04:11 PM
Please respond to Struts Users Mailing List
To: user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:c:forEach tag and indexed properties problem
Classification:
Hi Guys,
i
I've got a DynaActionForm with an indexed property which I want to set the
dimensions for and possibly initialize (in a controller clas) before it is
actually loaded with the request values. Given that I want to put the form
into a Tiles tile, what's the best method of doing this?
I've already
Hello,
I'm trying to use Strut indexed tag but keep getting
java.lang.IndexOutOfBoundsException: Index: -9. It displays with
correct values but when the form is submitted, I got the error. Below is a
snip of my code. Do you know hat's wrong with it?
JSP code:
logic:iterate
, the Struts controller finds what form bean is
associated with it and constructs an instance of that form. It then starts
assigning values to it, using the accessor methods. For indexed properties,
it uses an accessor to retrieve a collection of objects, then gets the
object indicated by the index from
, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 12:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Use Indexed properties - Encounter IndexOutOfBound Exception
I'm trying to use Strut indexed tag but keep getting
java.lang.IndexOutOfBoundsException: Index: -9
I thought when the form is submitted, Strut will re-construct
the collection of objects with values from the input form.
Therefore, I don't have to specify the Collection/List size
in the form bean constructor.
I can tell you from bitter experience that it does not work that way. The
Check out
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html
- Original Message -
From: Cruz, Edward J. [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Validator, Indexed Properties and error messages.
Date: Tue, 15 Feb 2005 11:03:26
Thank you for your help.
Antony Joseph ajosephmi at lycos.com writes:
Check out
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
,
it mimics what Tiles has achieved.
Thanks,
Paul
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Edward Cruz
Sent: Wednesday, February 16, 2005 1:55 PM
To: user@struts.apache.org
Subject: Re: Validator, Indexed Properties and error messages.
Thank you for your help
Its not down to Struts, since Validator is a separate project and form
ineritance (using extends) has already been put into the development
version of Validator (i.e. Validator 1.2) - so its arrival is purely
dependant on a release of that version of Validator.
Hello all,
In review various documentation and several google search's I have
found how to use the validator framework to validate indexed properties. In
looking at the javadocs for the validator framework I see that the field
class has an attribute called 'property' which (I think
Peter Wu peter.ying.wu at gmail.com writes:
html:select property=project[0]
html:option value=a0-19/html:option
html:option value=b20-49/html:option
html:option value=c50-/html:option
/html:select
This one works fine now.
/td
tdhtml:text
2005 20:41
To: user@struts.apache.org
Subject: Re: Indexed Properties
Peter Wu peter.ying.wu at gmail.com writes:
html:select property=project[0]
html:option value=a0-19/html:option
html:option value=b20-49/html:option
html:option value=c50-/html:option
William -
The problem here is that validator is expecting quantityArray to contain
a property called quantity for each element it contains. (For example:
quantityArray[0].quantity, quantityArray[1].quantity etc.) Since
quantityArray is an array of Integer, it obviously does not contain a
: Matt Bathje [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, January 07, 2005 1:03 AM
Subject: Re: [validator] indexed properties
William -
The problem here is that validator is expecting quantityArray to contain
a property called quantity for each element
Hi all,
even after scanning the doco, examples, source code and previous posts I
still can't get validation to happen for an indexed field in my Struts
(1.2.4) application working. I would really appreciate some help crafting
the appropriate validation definition.
My form is defined as
form
Hi,
I have a form-property like so:
form-property name=PropertyName type=java.lang.String[] size=5/
Which is populated by the following in my jsp page:
logic:iterate id=element name=MyForm property=PropertyName
indexId=counter
tr
td class=firstColbean:message
wrong though...)
I think the bigger question is - if you are using a set size String
array for these fields, why not just simplify it and make 4 separate
fields? You don't need to worry about indexed properties at all then.
The only alternative I can think of is to setup a new class, and make
, November 17, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: Indexed properties
I am getting the nested beans out of my form ok but saving gives no joy.
I am trying to use the 2.1 Hand Cranking lazy List in the ActionForm
from http://wiki.apache.org/struts/StrutsCatalogLazyList. However, I
never see my log
(List) to
setSkills(SkillBean) and provided a non-bean collection
populating method (populateSkills(List)) everything seems to
work. Apparently Struts is/cannot examine the method
arguments and is confused by the naming.
I just went through a lot of grief with indexed properties. The Java
, 2004 2:31 PM
Subject: RE: Indexed properties
Could not get the wiki's example of
public class SkillActionForm extends ActionForm {
protected List skills = new ArrayList();
public List getSkills() {
return skills;
}
public void setSkills(List
/logic:iterate
/html:form
-Original Message-
From: David McReynolds [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: Indexed properties
I am getting the nested beans out of my form ok but saving gives no joy.
I am trying to use
I am getting the nested beans out of my form ok but saving gives no joy.
I am trying to use the 2.1 Hand Cranking lazy List in the ActionForm
from http://wiki.apache.org/struts/StrutsCatalogLazyList. However, I
never see my log messages from the indexed getter methods for any of the
nested beans.
Hi,
I have investigated the indexed properties as follows.
structure of my jsp page:
===
html:form action=/DisplayNestedPropertiesAction.do
logic:iterate name=nestedPropertiesForm property=skills id=skillBean
TABLE border=1 borderColor=cyan cellpadding=0 cellpadding=0
ActionFoward to the JSP.
I Hope it helps...
[]´s
Rafael Cardoso
Ryan julius wrote:
Hi,
I have investigated the indexed properties as follows.
structure of my jsp page:
===
html:form action=/DisplayNestedPropertiesAction.do
logic:iterate name=nestedPropertiesForm property=skills id
Hi,
I need help for indexed properties.
On one page I have different input-fields and I want to commit the changes
when pushing the
submit-button to realize this I am using the indexed propertie.
Is this the right way? Or is the someone better?
--
This is my
Hi,
Can anybody please help on this issue.
Regds
Ravi
-Original Message-
From: Vasu Johnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 6:33 PM
To: Struts Users Mailing List
Subject: Re: How to validate the indexed properties using the vaildation framework
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
Subject: Re: Indexed Properties and Lazy List behaviour
My understanding of the question on the user list was for a form which
contained an array of beans, instead of just an array of strings. An
example would be a form bean
PROTECTED]
Sent: Thursday, September 30, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Indexed Properties and Lazy List behaviour
I've set up this wiki page showing how to use indexed properties and
implement lazy list behaviour in an ActionForm.
http://wiki.apache.org/struts
=org.apache.struts.validator.LazyValidatorForm/
/form-bean
On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
[EMAIL PROTECTED] wrote:
I've set up this wiki page showing how to use indexed properties and
implement lazy list behaviour in an ActionForm.
http://wiki.apache.org/struts
-property name=skills
type=myPackage.CustomLazyBean[]/
/form-bean
Niall
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 01, 2004 8:07 PM
Subject: Re: Indexed Properties and Lazy List behaviour
?
Someone asked about combining FormDef and LazyBeans to come up with a
form containing indexed properties. FormDef works with
DynaActionForms. If I have an array or list of dyna forms, I can use
FormDef with each element. The problem is coming up with a lazy,
non-session-scope implementation. I came up
Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 01, 2004 9:43 PM
Subject: Re: Indexed Properties and Lazy List behaviour
But if I need it to be a DynaActionForm subclass, then I'd just use
LazyValidatorForm or its subclass, right? In which case
- but lifes busy :-(
Niall
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 01, 2004 9:43 PM
Subject: Re: Indexed Properties and Lazy List behaviour
But if I need it to be a DynaActionForm subclass
levels of
indexed beans to your hearts content.
Niall
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
Subject: Re: Indexed Properties and Lazy List behaviour
My understanding of the question on the user list was for a form which
contained an array of beans, instead of just
I've set up this wiki page showing how to use indexed properties and
implement lazy list behaviour in an ActionForm.
http://wiki.apache.org/struts/StrutsCatalogLazyList
There are three possible solutions to lazy list beviour on that page - but
since I'm only using LazyDynaBeans myself, I would
Hi,
I am using DynaValidatorForm. The entry in my struts-config.xml looks like :
form-bean name=beanForm type=org.apache.struts.validator.DynaValidatorForm
form-property name=lines type=com.upromise.odt.ui.actions.campaign.Line[]
size=0/
/form-bean
Where, the Line class
After browsing through the struts archives, I have done the following changes to
validation.xml.
form name=beanForm
field property=bd indexedListProperty=lines
depends=required
arg0 name=required key=${var:bp} resource=false/
var
var-namebp/var-name
var-valuebp/var-value
/var
/field
: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 8:11 PM
Subject: Re: Validation for Two Levels of Indexed Properties
Well, it's good to know you already have a solution working.
Just fyi, my guess on the two layers not being
, September 14, 2004 8:11 PM
Subject: Re: Validation for Two Levels of Indexed Properties
Well, it's good to know you already have a solution working.
Just fyi, my guess on the two layers not being supported is based on
the example on
http://struts.apache.org/userGuide/dev_validator.html
Hubert,
Thank you for your response. At present, I am using the Validator for
my first level of indexed properties and custom validation for the
second level. I'd really like to use the Validator for everything as it
makes it much easier for maintenance and makes the code clearer when you
101 - 200 of 259 matches
Mail list logo