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 encountered 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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to