You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Mixon <rn...@custco.biz> on 2003/06/21 07:31:05 UTC

Validator with nested form beans

I've searched the archives with several combinations of the above keywords
to no avail.

Is it possible to nest a collection of ValidatorForm beans within a main
ValidatorForm bean ... and then have Validator handle validations of the
nested properties?

I've not been able to figure out how to do this and was hoping avoiding
doing a combination of manual and validator edits. The syntax for
validations.xml does not show any syntax that I can see would make this
possible - but its such a common requirement, I would think.

For example on an OrderForm form bean it will have a collection of
LineItemForm form beans.

I was actually hoping to markup both formbeans using Xdoclet
@struts.validator tags, but would settle for using straight validator.


Thanks for any and all ideas/suggestions - Richard



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Validator with nested form beans

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Hi Richard,
I've been thinking about this too and as far as I can figure it out, it 
seems that Validator and Nested are mutually exclusive techniques for 
the View.  Sorry, that's not quite true. I was looking at 
DynaValidatorActionForm.

What I would like to know is what most people implement when they use 
Validator &/or Dynamic forms and the data to edit is e.g. PurchaseOrder 
and OrderItems.

In my view the Nested route is the only way to go from a 
user-friendliness point of view. Isn't it too cumbersome to have another 
page just to edit an OrderItem?


Adam

Richard Mixon wrote:
> I've searched the archives with several combinations of the above keywords
> to no avail.
> 
> Is it possible to nest a collection of ValidatorForm beans within a main
> ValidatorForm bean ... and then have Validator handle validations of the
> nested properties?
> 
> I've not been able to figure out how to do this and was hoping avoiding
> doing a combination of manual and validator edits. The syntax for
> validations.xml does not show any syntax that I can see would make this
> possible - but its such a common requirement, I would think.
> 
> For example on an OrderForm form bean it will have a collection of
> LineItemForm form beans.
> 
> I was actually hoping to markup both formbeans using Xdoclet
> @struts.validator tags, but would settle for using straight validator.
> 
> 
> Thanks for any and all ideas/suggestions - Richard
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: search at nagoya.apache.org

Posted by Mykola Ostapchuk <my...@sympatico.ca>.
The same for me...

----- Original Message ----- 
From: "Fedor Smirnoff" <fe...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<rn...@custco.biz>
Sent: Sunday, June 22, 2003 9:44 PM
Subject: search at nagoya.apache.org


> Guys, is it just me or search have not been working
> for a couple of days at
>
http://nagoya.apache.org/eyebrowse/SearchList?listName=struts-user@jakarta.apache.org
>
> Thanks,
> Fedor
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: search at nagoya.apache.org

Posted by Steve Raeburn <st...@ninsky.com>.
It looks broken to me. I also tried searching the Tomcat user list and that
gives the same result - 'Text search not available for this list.'

Steve

> -----Original Message-----
> From: Fedor Smirnoff [mailto:fedorsmirnoff@yahoo.com]
> Sent: June 22, 2003 6:44 PM
> To: Struts Users Mailing List; rnmixon@custco.biz
> Subject: search at nagoya.apache.org
>
>
> Guys, is it just me or search have not been working
> for a couple of days at
> http://nagoya.apache.org/eyebrowse/SearchList?listName=struts-user
> @jakarta.apache.org
>
> Thanks,
> Fedor
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


search at nagoya.apache.org

Posted by Fedor Smirnoff <fe...@yahoo.com>.
Guys, is it just me or search have not been working
for a couple of days at
http://nagoya.apache.org/eyebrowse/SearchList?listName=struts-user@jakarta.apache.org

Thanks,
Fedor

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Validator with nested form beans

Posted by Richard Mixon <rn...@custco.biz>.
Adam,
Yes I agree. But I still do not see how to integrate nested objects with
form beans and use Validator at the same time.

Can anyone show us what we are missing?

-----Original Message-----
From: Richard Mixon [mailto:rnmixon@custco.biz]
Sent: Friday, June 20, 2003 10:31 PM
To: 'Struts Users Mailing List'
Subject: Validator with nested form beans


I've searched the archives with several combinations of the above keywords
to no avail.

Is it possible to nest a collection of ValidatorForm beans within a main
ValidatorForm bean ... and then have Validator handle validations of the
nested properties?

I've not been able to figure out how to do this and was hoping avoiding
doing a combination of manual and validator edits. The syntax for
validations.xml does not show any syntax that I can see would make this
possible - but its such a common requirement, I would think.

For example on an OrderForm form bean it will have a collection of
LineItemForm form beans.

I was actually hoping to markup both formbeans using Xdoclet
@struts.validator tags, but would settle for using straight validator.


Thanks for any and all ideas/suggestions - Richard



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org