Re: Wicket FormTester not working with CheckGroupSelector.

2014-11-01 Thread Andrea Del Bene

Hi,

CheckGroupSelector (and all the other subclasses of 
AbstractCheckSelector) is not a form component, as the exception says. 
It is more like a JavaScript sugar that implements the select/unselect 
all feature. Hence I'm afraid you can't test via Java code...

Dear Forum,
I'm implementing the CheckGroup example from  wicket-examples
http://www.wicket-library.com/wicket-examples-6.0.x/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage;jsessionid=B179E71FA0687FABCC91FC1D8759085F?0

I have added a AjaxFormChoiceComponentUpdatingBehavior() instance to the
CheckGroup to update the items selected. I got the idea from  RadioChoice
example page
http://www.wicket-library.com/wicket-examples-6.0.x/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.RadioChoicePage?3

The CheckGroup example makes use of a CheckGroupSelector and I am having
problem testing this one with formTester.

In the automated test, I am trying to run, I call
   to unselect all.

However, I am getting an error message that says:
*org.apache.wicket.WicketRuntimeException: Component with id: groupSelector
is not a FormComponent*

How can I set/unset this CheckGroupSelector?

Thanks in advance,
Lucas



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-FormTester-not-working-with-CheckGroupSelector-tp4668206.html
Sent from the Users forum 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



Wicket FormTester not working with CheckGroupSelector.

2014-10-31 Thread lucast
Dear Forum, 
I'm implementing the CheckGroup example from  wicket-examples
http://www.wicket-library.com/wicket-examples-6.0.x/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage;jsessionid=B179E71FA0687FABCC91FC1D8759085F?0
  

I have added a AjaxFormChoiceComponentUpdatingBehavior() instance to the
CheckGroup to update the items selected. I got the idea from  RadioChoice
example page
http://www.wicket-library.com/wicket-examples-6.0.x/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.RadioChoicePage?3
  

The CheckGroup example makes use of a CheckGroupSelector and I am having
problem testing this one with formTester.

In the automated test, I am trying to run, I call 
  to unselect all.

However, I am getting an error message that says:
*org.apache.wicket.WicketRuntimeException: Component with id: groupSelector
is not a FormComponent*

How can I set/unset this CheckGroupSelector?

Thanks in advance,
Lucas



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-FormTester-not-working-with-CheckGroupSelector-tp4668206.html
Sent from the Users forum 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