You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by al que <aq...@yahoo.es> on 2007/08/13 17:48:30 UTC

Replacing panels inside a ModalWindow

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by al que <aq...@yahoo.es>.
Matej, 
       while making the quickstart i realized the
problem was do to a css style i did not see that was
hiddeing the content. 

Sorry for the noise and thanks for the help.
Alina.

--- Matej Knopp <ma...@gmail.com> escribió:

> I need a quickstart that can be use to reproduce the
> problem to be
> able to help here.
> 
> -Matej
> 



       
____________________________________________________________________________________
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by Matej Knopp <ma...@gmail.com>.
I need a quickstart that can be use to reproduce the problem to be
able to help here.

-Matej

On 8/13/07, al que <aq...@yahoo.es> wrote:
> Hello Matej,
>               i have tested the application in
> Iceweasel 2.0, IE 6.0, Opera 9.22 and Konqueror 3.5.5
> and i had problems with all these browsers when trying
> to use the modal window.
>
> With Iceweasel and IE the problem is the same as i
> explained earlier. In konqueror it seems that i cant
> get to open a modal window with a page as content (but
> if the content is a panel instead of a page it does
> open). With Opera the modal window just displays a
> blank page from the beginning.
>
> Thanks,
> Alina.
>
>
> --- Matej Knopp <ma...@gmail.com> wrote:
>
> > Does this happen in all browsers?
> >
> > -Matej
> >
>
>
>
>
> ____________________________________________________________________________________
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by al que <aq...@yahoo.es>.
Hello Matej,
              i have tested the application in
Iceweasel 2.0, IE 6.0, Opera 9.22 and Konqueror 3.5.5
and i had problems with all these browsers when trying
to use the modal window.

With Iceweasel and IE the problem is the same as i
explained earlier. In konqueror it seems that i cant
get to open a modal window with a page as content (but
if the content is a panel instead of a page it does
open). With Opera the modal window just displays a
blank page from the beginning.

Thanks,
Alina.


--- Matej Knopp <ma...@gmail.com> wrote:

> Does this happen in all browsers?
> 
> -Matej
> 



       
____________________________________________________________________________________
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by Matej Knopp <ma...@gmail.com>.
Does this happen in all browsers?

-Matej

On 8/13/07, al que <aq...@yahoo.es> wrote:
> Hello Sean,
>               thanks for your suggestion.
>
> I have upgraded to 1.3.0-SNAPSHOT but i still have the
> same problem :(.
>
> Alina.
>
> --- Sean Sullivan <se...@seansullivan.com> wrote:
>
> > 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)
>
>
>
>
> ____________________________________________________________________________________
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by al que <aq...@yahoo.es>.
Hello Sean,
              thanks for your suggestion. 

I have upgraded to 1.3.0-SNAPSHOT but i still have the
same problem :(.

Alina.

--- Sean Sullivan <se...@seansullivan.com> wrote:

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



       
____________________________________________________________________________________
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Replacing panels inside a ModalWindow

Posted by Sean Sullivan <se...@seansullivan.com>.
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 <aq...@yahoo.es> 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.
>
>