Did you say that you are using wicket-1.3.0-incubating-SNAPSHOT?

That is probably an old jar.  (Wicket is no longer in incubation)

I recommend upgrading to the latest snapshot.


http://www.wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/


http://www.wicketstuff.org/maven/repository/org/apache/wicket/wicket-extensions/1.3.0-SNAPSHOT/

Sean


On 8/13/07, al que <[EMAIL PROTECTED]> wrote:
>
> Hello,
>         I am trying to replace a panel inside a modal
> window for a new panel on an AjaxButton click event.
> Every thing seems to work fine but the second panel is
> never shown in the modal window.
> In the wicket ajax debug window of the modal panel i
> can see the correct html markup of the new panel being
> sent to the modal window.
> I get no java exceptions nor javascript errors in the
> browser, just a blank page.
>
> Im am using a WebPage as the modal window content.
> The page has a WebMarkupContainer wich has the panel
> element as child (the one that is ment to be
> replaced).
>
> The markup of the page is the following:
>
> ...
>
> <body>
> <div wicket:id="container" >
>        <div wicket:id="content" > </div>
> </div>
> </body>
> ...
>
> The content panel is added correctly on page
> construction and the modal window is rendered fine.
>
> The content panel element has an AjaxButton wich
> should replace the content panel for another panel
> when clicked.
>
> The code for the AjaxButton onClick method is the
> following:
>
> NewPanel newPanel = new
> NewPanel(currentPanel.getId());
>
> parentContainer.replace(newPanel);
>
> target.addComponent(parentContainer);
>
>
> (The parentContainer is the container element in the
> markup )
>
> when the button is cliked the panel is replaced, the
> container is re-rendered and the old content
> disappears but no new content is shown. Just a blank
> page.
>
> i am using wicket-1.3.0-incubating-SNAPSHOT.
>
> Did anybody encounter a similar problem?
>
> Thanks in advance.
> Alina.
>
>

Reply via email to