You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lucast <lu...@hotmail.com> on 2014/10/31 16:06:32 UTC

Wicket FormTester not working with CheckGroupSelector.

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket FormTester not working with CheckGroupSelector.

Posted by Andrea Del Bene <an...@gmail.com>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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