The problem was with ModalWindow.PageCreator and how the Page within the
ModalWindow was instantiated. Of the code fragments below the former
works but the latter doesn't. I'm not sure why... I must have forgotten
to read that page of the Java Handbook :-P


public class MyDialog extends ModalWindow{
        private Page myPage;

        public MyDialog(String id){
                super(id);
                setPageCreator(new ModalWindow.PageCreator(){
                        public Page createPage(){
                                return page;
                        }
                });



public class MyDialog extends ModalWindow{
        private Page myPage = new MyPage();

        public MyDialog(String id){
                super(id);
                setPageCreator(new ModalWindow.PageCreator(){
                        public Page createPage(){
                                page = new MyPage();
                                return page;
                        }
                });







-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matej
Knopp
Sent: Monday, November 06, 2006 1:07 PM
To: [email protected]
Subject: Re: [Wicket-user] Problem with ModalWindow
andAbstractAjaxTimerBehavior

I don't really know what could get wrong. Maybe if you submit a 
testcase, I could look into it.

-Matej

Mark Southern wrote:
> I have an AbstractAjaxTimerBehavior added to a FeedBackPanel that 
> refreshes it every few seconds. On the same page I have an AjaxLink
that 
> opens a ModalWindow. In the ModalWindow, a selection is made and when
it 
> closes that value is written back to the parent.
> 
>  
> 
> The TimerBehaviour runs consistently up until the point that the 
> ModalWindow is opened. After that it does not run at all.
> 
>  
> 
> Does anyone have any suggestions, please?
> 
>  
> 
> Thanks,
> 
>  
> 
> Mark.
> 
>  
> 
> 
>
------------------------------------------------------------------------
> 
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user


------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to