* Emanuele Gesuato:
> I'm trying to check the presence of a behaviour in a testcase.
>
> I have a page with a checkbox and a button, if a user click on
> the button without selecting the checkbox, an alert box show a
> message. If i access to the page through a browser (firefox) the
> page runs fine and the alert box is correctly displayed. So, i
> would like to retrieve the behaviour from the form component
> after submitting the form itself, but i can't find any behaviour
> (the list is empty!).
>
> Why ? Is there something wrong with the testcase ?
>
> <snip/>
>
> public class Alert extends AbstractBehavior {
> private static final long serialVersionUID =
> 3346789663630395006L;
> private String msg;
>
> public Alert(String msg) {
> this.msg=msg;
> }
>
> @Override
> public boolean isTemporary() {
> return true;
> }
WicketTester has not the exact same request lifecycle as in a real
webapp. Can it be because of isTemporary() returns true?
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]