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.


       
____________________________________________________________________________________
Sé un Mejor Amante del Cine                         
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to