Here's the method where the ModalWindow is instantied

protected void populateItem(ListItem listItem) {
           Fragment fragment = new
Fragment(POPUP_MARKUP_ID,NON_ACCESSIBLE_MARKUP_ID);
           final Event event = (Event)listItem.getModelObject();

           final ModalWindow modalWindow = new ModalWindow(PANEL_TO_SHOW);

           modalWindow.setPageCreator(new ModalWindow.PageCreator(){
               static final long serialVersionUID = 1L;

               public Page createPage() {
                   return new ModalWindowBasePage(modalWindow.getContentId
(),EventListPanel.this);
               }
           });

           AjaxLink calendarLink = new
AjaxLink(LINK_SHOW_DETAILS_MARKUP_ID){
               private static final long serialVersionUID = 1L;

               @Override
               public void onClick(AjaxRequestTarget target) {
                   //show popuppage with the detailspage
                   if(log.isDebugEnabled()){
                       modalWindow.setVisible(true);
                       modalWindow.show(target);
                   }
               }
           };

           listItem.add(new Label(EVENT_DETAILS_MARKUP_ID,
CalendarUtils.getLocalTime(event.getDtStart(), getLocale(),event.isAllDay
())));

           calendarLink.add(new Label(EVENT_SUMMARY_MARKUP_ID,
event.getSummary()));
           listItem.add(calendarLink);
           fragment.add(modalWindow);
           listItem.add(fragment);
       }

At this moment I don't have time to create a quickstart app, maybe this
evening or tomorrow.

On 1/11/07, Matej Knopp <[EMAIL PROTECTED]> wrote:

That's strange. Seems that window javascript is not loaded for some
reason. Can you post more code or a quick-start appication so that I can
look at it?

-Matej

Paul Maarschalkerweerd wrote:
> Hi all,
>
> I want to open a ModalWindow from a ListItem.
>
> When I do this in IE6 everything works fine, but when I want to show it
> in firefox(v1.5 and 2.0) is doesn't work.
>  From wicket ajax debugger I get the following message:
>
> *INFO: *Response parsed. Now invoking steps...
> *ERROR:
> *Exception evaluating javascript: TypeError: Wicket.Window has no
properties
> *INFO: *Response processed successfully.
> *INFO: *Invoking post-call handler(s)...
>
>
> Can somebody help me?
>
> Thnx in advance
>
> Paul
>
>
>
> ------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to