Re: Submit a form and ignore nested forms

2008-04-09 Thread Johan Compagner
That sounds like a bug can you open an issue in jira?

On 4/9/08, AshleyAbraham [EMAIL PROTECTED] wrote:

 Hi everyone,
 I have a question regarding IFormVisitorParticpant, I implement
 IFormVisitorParticpant in a panel where my nested form resides,  the form
 has formcomponents which are set to required. When the processChildren() is
 set to return false everything works as normall, none of the formcomponents
 are visited. But, when I add a IFormValidator to my nested form, the root
 form somehow validates the validator which I add to the nested/sub form. Is
 this how its suppose to work? how can I make the root form not to validate
 the sub form's validator? I really appreciate your response... thanks

 Ashley



 AshleyAbraham wrote:
 
  Igor,
  Thank u for your fast response...
 
  Thanks again,
  Ashley
 
 
 
  Pills wrote:
 
  Hi everybody,
 
  I'm using nested forms in my web app to provide to the user a simple way
  for editting a product and its stock state at the same time (PRODUCTS and
  STOCKS are bound with a relation 1-n in my database). So I've defined a
  form for each of my tables.
 
  When I submit a nested form (in this case, the form STOCK), Wicket
  doesn't care about the master form (PRODUCTS) and that's fine. But when I
  submit the master form, Wicket does the validation of all the nested
  forms, and obviously it failed because the nested forms aren't filled...
 
  How can I tell to Wicket to ignore the nested forms when submitting
  theire parent? I won't use the setDefaultFormProcessing(false), because
  it forces me to handle the validity of fields and the feedback
  messages...
 
  Is there a way to do what I need?
 
  Thank you for your help ;)
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p16575383.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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]



Re: Submit a form and ignore nested forms

2008-04-08 Thread AshleyAbraham

Hi everyone,
I have a question regarding IFormVisitorParticpant, I implement
IFormVisitorParticpant in a panel where my nested form resides,  the form
has formcomponents which are set to required. When the processChildren() is
set to return false everything works as normall, none of the formcomponents
are visited. But, when I add a IFormValidator to my nested form, the root
form somehow validates the validator which I add to the nested/sub form. Is
this how its suppose to work? how can I make the root form not to validate
the sub form's validator? I really appreciate your response... thanks

Ashley



AshleyAbraham wrote:
 
 Igor,
 Thank u for your fast response...
 
 Thanks again,
 Ashley
 
 
 
 Pills wrote:
 
 Hi everybody,
 
 I'm using nested forms in my web app to provide to the user a simple way
 for editting a product and its stock state at the same time (PRODUCTS and
 STOCKS are bound with a relation 1-n in my database). So I've defined a
 form for each of my tables.  
 
 When I submit a nested form (in this case, the form STOCK), Wicket
 doesn't care about the master form (PRODUCTS) and that's fine. But when I
 submit the master form, Wicket does the validation of all the nested
 forms, and obviously it failed because the nested forms aren't filled... 
 
 How can I tell to Wicket to ignore the nested forms when submitting
 theire parent? I won't use the setDefaultFormProcessing(false), because
 it forces me to handle the validity of fields and the feedback
 messages...
 
 Is there a way to do what I need?
 
 Thank you for your help ;)
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p16575383.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Submit a form and ignore nested forms

2008-02-29 Thread AshleyAbraham

Hi everyone, 
   I have a similar problem using Wizard, I have a idea but I dont know
whether its a right approach or is there an easy way to do it...

here is my thought, if I use a FormComponentPanel and put my nested form in
it, then override the processChildren() to return false. So, when the main
form starts processing it only processes FormComponentPanel's sibling and
not its children.

Any thougts...?

Thanks
Ashley



Pills wrote:
 
 Hi everybody,
 
 I'm using nested forms in my web app to provide to the user a simple way
 for editting a product and its stock state at the same time (PRODUCTS and
 STOCKS are bound with a relation 1-n in my database). So I've defined a
 form for each of my tables.  
 
 When I submit a nested form (in this case, the form STOCK), Wicket
 doesn't care about the master form (PRODUCTS) and that's fine. But when I
 submit the master form, Wicket does the validation of all the nested
 forms, and obviously it failed because the nested forms aren't filled... 
 
 How can I tell to Wicket to ignore the nested forms when submitting theire
 parent? I won't use the setDefaultFormProcessing(false), because it
 forces me to handle the validity of fields and the feedback messages...
 
 Is there a way to do what I need?
 
 Thank you for your help ;)
 

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p15767485.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Submit a form and ignore nested forms

2008-02-29 Thread Igor Vaynberg
processchildren() comes from IFormVisitorParticipant which, afaik, any
component can implement and therefore act as a barrier to prevent
form processing logic from going any deeper.

-igor


On Fri, Feb 29, 2008 at 1:21 PM, AshleyAbraham [EMAIL PROTECTED] wrote:

  Hi everyone,
I have a similar problem using Wizard, I have a idea but I dont know
  whether its a right approach or is there an easy way to do it...

  here is my thought, if I use a FormComponentPanel and put my nested form in
  it, then override the processChildren() to return false. So, when the main
  form starts processing it only processes FormComponentPanel's sibling and
  not its children.

  Any thougts...?

  Thanks
  Ashley




  Pills wrote:
  
   Hi everybody,
  
   I'm using nested forms in my web app to provide to the user a simple way
   for editting a product and its stock state at the same time (PRODUCTS and
   STOCKS are bound with a relation 1-n in my database). So I've defined a
   form for each of my tables.
  
   When I submit a nested form (in this case, the form STOCK), Wicket
   doesn't care about the master form (PRODUCTS) and that's fine. But when I
   submit the master form, Wicket does the validation of all the nested
   forms, and obviously it failed because the nested forms aren't filled...
  
   How can I tell to Wicket to ignore the nested forms when submitting theire
   parent? I won't use the setDefaultFormProcessing(false), because it
   forces me to handle the validity of fields and the feedback messages...
  
   Is there a way to do what I need?
  
   Thank you for your help ;)
  

  --
  View this message in context: 
 http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p15767485.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  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]



Re: Submit a form and ignore nested forms

2008-02-29 Thread Igor Vaynberg
eg its probably something your nested form can implement

-igor


On Fri, Feb 29, 2008 at 1:29 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 processchildren() comes from IFormVisitorParticipant which, afaik, any
  component can implement and therefore act as a barrier to prevent
  form processing logic from going any deeper.

  -igor




  On Fri, Feb 29, 2008 at 1:21 PM, AshleyAbraham [EMAIL PROTECTED] wrote:
  
Hi everyone,
  I have a similar problem using Wizard, I have a idea but I dont know
whether its a right approach or is there an easy way to do it...
  
here is my thought, if I use a FormComponentPanel and put my nested form 
 in
it, then override the processChildren() to return false. So, when the main
form starts processing it only processes FormComponentPanel's sibling and
not its children.
  
Any thougts...?
  
Thanks
Ashley
  
  
  
  
Pills wrote:

 Hi everybody,

 I'm using nested forms in my web app to provide to the user a simple way
 for editting a product and its stock state at the same time (PRODUCTS 
 and
 STOCKS are bound with a relation 1-n in my database). So I've defined a
 form for each of my tables.

 When I submit a nested form (in this case, the form STOCK), Wicket
 doesn't care about the master form (PRODUCTS) and that's fine. But when 
 I
 submit the master form, Wicket does the validation of all the nested
 forms, and obviously it failed because the nested forms aren't filled...

 How can I tell to Wicket to ignore the nested forms when submitting 
 theire
 parent? I won't use the setDefaultFormProcessing(false), because it
 forces me to handle the validity of fields and the feedback messages...

 Is there a way to do what I need?

 Thank you for your help ;)

  
--
View this message in context: 
 http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p15767485.html
  
  
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
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]



Re: Submit a form and ignore nested forms

2008-02-29 Thread AshleyAbraham

Igor,
Thank u for your fast response...

Thanks again,
Ashley



Pills wrote:
 
 Hi everybody,
 
 I'm using nested forms in my web app to provide to the user a simple way
 for editting a product and its stock state at the same time (PRODUCTS and
 STOCKS are bound with a relation 1-n in my database). So I've defined a
 form for each of my tables.  
 
 When I submit a nested form (in this case, the form STOCK), Wicket
 doesn't care about the master form (PRODUCTS) and that's fine. But when I
 submit the master form, Wicket does the validation of all the nested
 forms, and obviously it failed because the nested forms aren't filled... 
 
 How can I tell to Wicket to ignore the nested forms when submitting theire
 parent? I won't use the setDefaultFormProcessing(false), because it
 forces me to handle the validity of fields and the feedback messages...
 
 Is there a way to do what I need?
 
 Thank you for your help ;)
 

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tp13794970p15768833.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Submit a form and ignore nested forms

2007-11-16 Thread Pills

Hi everybody,

I'm using nested forms in my web app to provide to the user a simple way for
editting a product and its stock state at the same time (PRODUCTS and STOCKS
are bound with a relation 1-n in my database). So I've defined a form for
each of my tables.  

When I submit a nested form (in this case, the form STOCK), Wicket doesn't
care about the master form (PRODUCTS) and that's fine. But when I submit the
master form, Wicket does the validation of all the nested forms, and
obviously it failed because the nested forms aren't filled... 

How can I tell to Wicket to ignore the nested forms when submitting theire
parent? I won't use the setDefaultFormProcessing(false), because it forces
me to handle the validity of fields and the feedback messages...

Is there a way to do what I need?

Thank you for your help ;)
-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tf4821844.html#a13794970
Sent from the Wicket - User mailing list archive at Nabble.com.


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