.submitForm()?
>
FormTester formTester = tester.newFormTester("formId");
formTester.setValue("relative:path:to:textFieldId", "John");
formTester.setValue("relative:path:to:passwordId", "secret")
formTester.submit()
>
> Thanks in advance
ponents.
How do I set the form username and password before calling
WicketTester.submitForm()?
Thanks in advance,
Lucas
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/TDD-End-to-End-acceptance-test-how-to-set-form-field-values-tp4666093.html
Sent from the Users for
Hi,
On Thu, Apr 5, 2012 at 9:01 PM, mnish tosh wrote:
> Hi,
>
> This is the situation:
>
> I have a page with two tabs, on each of these tabs there are form fields.
> Some of the fields are the same on both the tabs. What I want to be able to
> do is when I click on the tabs back and forth the va
If you can detect the tab switch event, it should be a simple matter to
copy the field values from one location to the other.
From: mnish tosh
To: users@wicket.apache.org
Date: 04/05/2012 02:01 PM
Subject:field values
Hi,
This is the situation:
I have a page with two
Hi,
This is the situation:
I have a page with two tabs, on each of these tabs there are form fields.
Some of the fields are the same on both the tabs. What I want to be able to
do is when I click on the tabs back and forth the values of the fields be
automatically taken to the other tab. Is this
Hi Igor
Thanks, you saved my day. That was much more what I was looking for. I
extended FormComponentPanel not to require a separate HTML file but live
with what is in the original source which makes the usage much much
easier. With that, I was able to implement my logic in no time.
Since I'
On Tue, 14 Oct 2008, Matthias Keller wrote:
> Do you propose to use a custom PropertyModel for both with an overridden
> setObject() method which accesses the RadioGroup and DropDownChoice?
> Then I'd need a second reallySetObject() method which actually does the
> setting as both setObject() wo
wrap this in a formcomponentpanel, that way in convertinput() of the panel
you have all child component's inputs available also via
getconvertedinput().
anothing option, if you are using 1.4 is to wrap this in a panel or a
fragment and use IFormModelListener to push whatever value you want into th
Timo Rantalaiho wrote:
On Tue, 14 Oct 2008, Matthias Keller wrote:
What i'd need would be something that's called after all fields have
converted but before they're stored anywhere... Which I don't think exists.
It does, "stored anywhere" means setObject(Object) on the
model of the For
On Tue, 14 Oct 2008, Matthias Keller wrote:
> What i'd need would be something that's called after all fields have
> converted but before they're stored anywhere... Which I don't think exists.
It does, "stored anywhere" means setObject(Object) on the
model of the FormComponent, and there you can
Hi Johan
JavaScript is not an option, we need server side processing. I've tried
it with a converter, but the getConverter() method is only called if
it's a typed field, else I have to use convertValue()...
But this still doesn't solve my problem as they're called from within
Form.updateFormCo
On Mon, 13 Oct 2008, Matthias Keller wrote:
> AJAX is not an option, as it is client side.
Sorry, what do you mean exactly? Javax is server-side. But
do you need a pure javascript solution?
> Another scenario would be: User has to enter some data which needs to be
> stored in a certain way. For
You have simple Behaviors that can alter values through java script in
the browser and you have converters that converts a value at the
server side, validators are ment for validation of a value that is
converted by a convertor not for changing data.
On 10/13/08, Matthias Keller <[EMAIL PROTECTED]
Timo Rantalaiho wrote:
On Mon, 13 Oct 2008, Matthias Keller wrote:
Here's the scenario with two radios and a pulldown:
( ) I don't need anything
( ) I need: [ pulldown with options ]
Now if "I need" is selected, everything works as expected, the pulldown
value gets stored to the model.
Now
On Mon, 13 Oct 2008, Matthias Keller wrote:
> Here's the scenario with two radios and a pulldown:
> ( ) I don't need anything
> ( ) I need: [ pulldown with options ]
>
> Now if "I need" is selected, everything works as expected, the pulldown
> value gets stored to the model.
> Now if 'I dont need
Hi
I've got a custom validator here which needs to dynamically change some
other input field's value to a new value.
Here's the scenario with two radios and a pulldown:
( ) I don't need anything
( ) I need: [ pulldown with options ]
Now if "I need" is selected, everything works as expected, th
16 matches
Mail list logo