You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Francisco Diaz Trepat - gmail <fr...@gmail.com> on 2007/10/23 18:33:05 UTC

Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

Hi. I'm going to try to explain the best that I can and without posting code
at first the issue that is happening.

I have the following panels A and C. A has two instances of B nested inside
of it. C is empty:

[

==PANEL-A==

    [

    ==PANEL-B1==

    ]

    [

    ==PANEL-B2==

    ]

]


[
==PANEL-C==
]

What happens is that on another Panel that represent the Page content, lets
call it ContentPanel I need to toggle between panels A and C with the click
of an Ajax Link.

The first state is with panel C that it is empty (actually with lots of
HiddenFields, but empty visually). On click I need to Show the A panel that
has viewable content. Finally on another click I need to go back to the
original state of C panel.

So far so good. The issue is as follows:

The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6 and 7
it is not an issue as everything works fine).

What happens is that I click on the link, and panel A shows perfectly. But
when I click again to put the C panel back, the A panel gets Partially
removed, that is panel A's first panel B instance B1 gets removed, but B2 is
not removed and it is still visible, plus I get the C panel, as C panel
doesn't have viewable content it doesn't add to the visual problem. *Ej*:

[

==PANEL-A==


    [

    ==PANEL-B2==

    ]

]

[
==PANEL-C==
]

Now If I click again, I get Panel A with "2 instances of B2" as panel B2 was
not removed.
[

==PANEL-A==

    [

    ==PANEL-B1==

    ]

    [

    ==PANEL-B2==

    ]

    [

    ==PANEL-B2==

    ]

]

So and so forth every click and click, I get panel A partially removed and
when added again I have another instance of B2 as it is never removed.



Any Ideas?

thanks,

f(t)

Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

Posted by Francisco Diaz Trepat - gmail <fr...@gmail.com>.
Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.

If everything else fails I'll provide a QuickStart.

Thanks,
f(t)

On 10/23/07, Matej Knopp <ma...@gmail.com> wrote:
>
> Can you provide a quickstart?
>
> -Matej
>
> On 10/23/07, Francisco Diaz Trepat - gmail
> <fr...@gmail.com> wrote:
> > Hi. I'm going to try to explain the best that I can and without posting
> code
> > at first the issue that is happening.
> >
> > I have the following panels A and C. A has two instances of B nested
> inside
> > of it. C is empty:
> >
> > [
> >
> > ==PANEL-A==
> >
> >     [
> >
> >     ==PANEL-B1==
> >
> >     ]
> >
> >     [
> >
> >     ==PANEL-B2==
> >
> >     ]
> >
> > ]
> >
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > What happens is that on another Panel that represent the Page content,
> lets
> > call it ContentPanel I need to toggle between panels A and C with the
> click
> > of an Ajax Link.
> >
> > The first state is with panel C that it is empty (actually with lots of
> > HiddenFields, but empty visually). On click I need to Show the A panel
> that
> > has viewable content. Finally on another click I need to go back to the
> > original state of C panel.
> >
> > So far so good. The issue is as follows:
> >
> > The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6
> and 7
> > it is not an issue as everything works fine).
> >
> > What happens is that I click on the link, and panel A shows perfectly.
> But
> > when I click again to put the C panel back, the A panel gets Partially
> > removed, that is panel A's first panel B instance B1 gets removed, but
> B2 is
> > not removed and it is still visible, plus I get the C panel, as C panel
> > doesn't have viewable content it doesn't add to the visual problem.
> *Ej*:
> >
> > [
> >
> > ==PANEL-A==
> >
> >
> >     [
> >
> >     ==PANEL-B2==
> >
> >     ]
> >
> > ]
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > Now If I click again, I get Panel A with "2 instances of B2" as panel B2
> was
> > not removed.
> > [
> >
> > ==PANEL-A==
> >
> >     [
> >
> >     ==PANEL-B1==
> >
> >     ]
> >
> >     [
> >
> >     ==PANEL-B2==
> >
> >     ]
> >
> >     [
> >
> >     ==PANEL-B2==
> >
> >     ]
> >
> > ]
> >
> > So and so forth every click and click, I get panel A partially removed
> and
> > when added again I have another instance of B2 as it is never removed.
> >
> >
> >
> > Any Ideas?
> >
> > thanks,
> >
> > f(t)
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

Posted by Matej Knopp <ma...@gmail.com>.
Can you provide a quickstart?

-Matej

On 10/23/07, Francisco Diaz Trepat - gmail
<fr...@gmail.com> wrote:
> Hi. I'm going to try to explain the best that I can and without posting code
> at first the issue that is happening.
>
> I have the following panels A and C. A has two instances of B nested inside
> of it. C is empty:
>
> [
>
> ==PANEL-A==
>
>     [
>
>     ==PANEL-B1==
>
>     ]
>
>     [
>
>     ==PANEL-B2==
>
>     ]
>
> ]
>
>
> [
> ==PANEL-C==
> ]
>
> What happens is that on another Panel that represent the Page content, lets
> call it ContentPanel I need to toggle between panels A and C with the click
> of an Ajax Link.
>
> The first state is with panel C that it is empty (actually with lots of
> HiddenFields, but empty visually). On click I need to Show the A panel that
> has viewable content. Finally on another click I need to go back to the
> original state of C panel.
>
> So far so good. The issue is as follows:
>
> The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6 and 7
> it is not an issue as everything works fine).
>
> What happens is that I click on the link, and panel A shows perfectly. But
> when I click again to put the C panel back, the A panel gets Partially
> removed, that is panel A's first panel B instance B1 gets removed, but B2 is
> not removed and it is still visible, plus I get the C panel, as C panel
> doesn't have viewable content it doesn't add to the visual problem. *Ej*:
>
> [
>
> ==PANEL-A==
>
>
>     [
>
>     ==PANEL-B2==
>
>     ]
>
> ]
>
> [
> ==PANEL-C==
> ]
>
> Now If I click again, I get Panel A with "2 instances of B2" as panel B2 was
> not removed.
> [
>
> ==PANEL-A==
>
>     [
>
>     ==PANEL-B1==
>
>     ]
>
>     [
>
>     ==PANEL-B2==
>
>     ]
>
>     [
>
>     ==PANEL-B2==
>
>     ]
>
> ]
>
> So and so forth every click and click, I get panel A partially removed and
> when added again I have another instance of B2 as it is never removed.
>
>
>
> Any Ideas?
>
> thanks,
>
> f(t)
>

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