In onClick you call modalWindow.setVisible(true), why is that? Do you
hide it somewhere (you shouldn't do that). Also I'm not sure it's a good
idea to create modal window for every item. Just create one modal window
and in the onClick handler set the page creator.
-Matej
Paul Maarschalkerweerd wrote:
> 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] <mailto:[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
>
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> >
> >
> >
> ------------------------------------------------------------------------
>
> >
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> <mailto:[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
>
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> <mailto:[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