Matt,

I have several nested levels of properties on one page. First level is "plan" which has some general information and also contains a collection of "phase" properties called phaseList. Each "phase" has some information associated with it, as well as containing a collection of "procedure" properties, called procedureList. Validation works great at the plan and plan.phaseList[] levels. When I try to go to the next level, plan.phaseList[].procedureList[] of nesting using indexed properties (i.e., procedureList) validation does not work. I either don't know how to properly reference this second level of indexed properties, or it is not supported at present. I gave examples in the code snippets of how I have attempted to reference the second level.

I'd like to know if it's supposed to work, and if so, how to properly reference the second level of indexed properties. Or if this isn't currently supported, I'd like to know if there are plans to support it or not.

Thanks,

TR

Matt Bathje wrote:
Terry - maybe I'm a dope...but can you define what you mean by multiple level? I at first though you meant the validations such as (required,intRange) but looking at it, I think I may be wrong and it means something else.

A better definition of what phaseList and procedureList are, and how they relate to each other should help clear it up I think.

Matt


Terry Roe wrote:

Can Struts validate more than one level of indexed properties? First level works great. Love it. I've tried the following (phaseList and procedureList are two indexed properties) to get more than one level to work without success:

<field property="units" indexedListProperty="plan.phaseList.procedureList" depends="required,intRange">

<field property="units" indexedListProperty="plan.phaseList[].procedureList" depends="required,intRange">

<field property="procedureList.units" indexedListProperty="plan.phaseList" depends="required,intRange">

<field property="procedureList[].units" indexedListProperty="plan.phaseList" depends="required,intRange">

Is multi-level, indexed property validation supported? If so, can someone relate the syntax to use? If not, can someone confirm than only one level of indexed property validation is supported?

TR


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to