dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch

dynamic forms how can I identify individual component to validate  them , in
fixed forms  in my custom valiator I use 

getFormComponent(acdSentToDFI).getConvertedInput()
to retrieve the   user entered value and validate  it but in case of dynamic
forms how can I identify each component?


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch

ok in fixed forms I know the id of each formcomponent and I can retrieve the
component using its id , but in dynamic forms all formcomponents will have
the same name and in this case how can I reterieve a specific formcomponnt ?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219839.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: dynamic forms retrieve a component for validation

2010-05-17 Thread Igor Vaynberg
validators get the value being validated passed in to them, not sure
why you would need to get another formcomponent inside a validator.

-igor

On Mon, May 17, 2010 at 7:29 AM, fachhoch fachh...@gmail.com wrote:

 dynamic forms how can I identify individual component to validate  them , in
 fixed forms  in my custom valiator I use

 getFormComponent(acdSentToDFI).getConvertedInput()
 to retrieve the   user entered value and validate  it but in case of dynamic
 forms how can I identify each component?


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Creating dynamic forms and sumbit problem

2008-12-16 Thread Timo Rantalaiho
On Sat, 06 Dec 2008, mage wrote:
   questionsList = new ListView(survey, new PropertyModel(this,
 survey.questions))

Try questionsList.setReuseItemModels(true);

For more help, you should put your code in an executable 
quickstart. From the email it's too difficult to investigate
it better.

Best wishes,
Timo



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Creating dynamic forms and sumbit problem

2008-12-06 Thread mage
 void populateItem(ListItem item) {
final SimpleAnswer simpleAnswer = 
(SimpleAnswer)item.getModelObject();
item.add(new Radio(answerID,new
PropertyModel(item.getModel(),answerID)));
item.add(new Label(text, new
PropertyModel(item.getModel(),answerText)));
}

};
group.add(answers);


}

}

Everything is displayed without any error submit also works but, well I
don't receive well filled UserAnswer object. Anyone has any idea what I do
wrong? Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Creating-dynamic-forms-and-sumbit-problem-tp20875344p20875344.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]



Dynamic Forms

2008-03-11 Thread Dan Kaplan
I have a form with a text field on it.  Somewhere on the form there is also
a + symbol.  When you click on it, a new text field appears.  I know that
this has been asked a bunch of times, but I can only find emails where
people say, This has been asked a bunch of times when I search the mailing
list.  Also, most say that a ListView and panels are involved but they don't
go into detail.  Can anyone elaborate on how to do this?

 

Thanks



Re: Dynamic Forms

2008-03-11 Thread Gerolf Seitz
see Button#setDefaultFormProcessing(boolean), which skips the form
processing.

  Gerolf

On Tue, Mar 11, 2008 at 10:09 PM, Dan Kaplan [EMAIL PROTECTED]
wrote:

 I found this:
 http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html

 Problem with it, for me, is that it fails to mention adding new fields via
 javascript.  As long as I add text fields in the same pattern as the list
 would add it, will it accept the input?  I'm concerned that the add button
 will trigger validation.  In my case (and probably most cases), the page
 does not have to be valid to add a new text field.

 -Original Message-
 From: Dan Kaplan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2008 1:34 PM
 To: users@wicket.apache.org
 Subject: Dynamic Forms

 I have a form with a text field on it.  Somewhere on the form there is
 also
 a + symbol.  When you click on it, a new text field appears.  I know that
 this has been asked a bunch of times, but I can only find emails where
 people say, This has been asked a bunch of times when I search the
 mailing
 list.  Also, most say that a ListView and panels are involved but they
 don't
 go into detail.  Can anyone elaborate on how to do this?



 Thanks



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