You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Poggenpohl, Daniel" <Da...@isst.fraunhofer.de> on 2015/03/24 12:54:11 UTC

Problems with jquery tab component

Hi,

I'm using the jquery tab component, and as the google group seems pretty dead at the moment, I thought I bring my question here...

I have a page with a tab component (ajax=true) with 4 tabs. One of these tabs contains dialogAjaxLinks that open some dialogs. The links are contained inside an inPlace=true grid.
I think I can reproduce a bug in my app so that when I change the tab from the one containing the dialogAjaxLinks to another one and back, the dialogAjaxLinks stop working.

When I change the grid page using the pager, the dialogAjaxLinks start working again.

When they don't work, no events are fired when I click them.

It's really weird...

Regards,
Daniel Poggenpohl

--
Dipl. Inf. Daniel Poggenpohl, Fraunhofer-Institut für Software- und Systemtechnik ISST
Compliance- und Sicherheitslösungen
Emil-Figge-Straße 91, 44227 Dortmund, Germany
Telefon: +49 (0) 231 / 9 76 77-323
mailto: Daniel.Poggenpohl@isst.fraunhofer.de<ma...@isst.fraunhofer.de>
http://www.isst.fraunhofer.de<http://www.isst.fraunhofer.de/>


Re: Problems with jquery tab component

Posted by George Christman <gc...@cardaddy.com>.
Could you post some code? It's difficult to know what is going on without
being able to see the code.

On Wed, Mar 25, 2015 at 11:56 AM, Poggenpohl, Daniel <
Daniel.Poggenpohl@isst.fraunhofer.de> wrote:

> Hello again,
>
> I have since reduced the bug to putting a DialogAjaxLink directly into a
> tab, switching tabs and going back to the tab containing the
> DialogAjaxLink. The same Zone error is thrown.
>
> Still don't know why it happens...
>
> Regards,
> Daniel P.
>
> -----Ursprüngliche Nachricht-----
> Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de]
> Gesendet: Mittwoch, 25. März 2015 11:18
> An: Tapestry users
> Betreff: AW: Problems with jquery tab component
>
> Hello for the third time,
>
> I'm beginning to warm up with Firebug...
>
> When I click on the DialogAjaxLink to open the dialog and it doesn't work,
> the console outputs:
>
> "cannot call methods on tapestryZone prior to initialization; attempted to
> call method 'update'"
>
> Any ideas?
> Daniel P.
>
> -----Ursprüngliche Nachricht-----
> Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de]
> Gesendet: Mittwoch, 25. März 2015 11:02
> An: Tapestry users
> Betreff: AW: Problems with jquery tab component
>
> Hello again,
>
> I've activated event logging in the page and components contained within.
>
> When I change from the tab containing the DialogAjaxLinks to another tab,
> these events are fired...
>
> [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
> [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
> [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
> [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
> [DEBUG] main.page Dispatch event:
> ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page
> Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
> [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from
> statustab] [DEBUG] main.page Dispatch event:
> ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch
> event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG]
> main.page Dispatch event: ComponentEvent[preallocateFormControlNames from
> (self)] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender
> from statustab] [DEBUG] main.page Dispatch event:
> ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from statustab]
>
> I find it strange that every event is dispatched twice. Is that normal?
> In addition to that, the statustab contains other components. Shouldn't
> they fire events, too?
>
> When I then change back to the tab containing the DialogAjaxLinks, these
> events happen:
>
> [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
> [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
> [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
> [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
> [DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking:
> app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
> [DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking:
> app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
> [DEBUG] main.page Dispatch event:
> ComponentEvent[preallocateFormControlNames from (self)] [DEBUG]
> manager.DialogAjaxLinkContainingGridComponent Dispatch event:
> ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page
> Dispatch event: ComponentEvent[prepareForRender from gridContainingTab]
> [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event:
> ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from gridContainingTab] [DEBUG] main.page
> Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
> [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event:
> ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page
> Dispatch event: ComponentEvent[prepareForRender from gridContainingTab]
> [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event:
> ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch
> event: ComponentEvent[prepare from gridContainingTab]
>
> When I click the DialogAjaxLinks, the click events are fired and the
> appropriate function seems to be called. It just doesn't open the dialog.
>
> Regards,
> Daniel
>
> -----Ursprüngliche Nachricht-----
> Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de]
> Gesendet: Dienstag, 24. März 2015 12:54
> An: users@tapestry.apache.org
> Betreff: Problems with jquery tab component
>
> Hi,
>
> I'm using the jquery tab component, and as the google group seems pretty
> dead at the moment, I thought I bring my question here...
>
> I have a page with a tab component (ajax=true) with 4 tabs. One of these
> tabs contains dialogAjaxLinks that open some dialogs. The links are
> contained inside an inPlace=true grid.
> I think I can reproduce a bug in my app so that when I change the tab from
> the one containing the dialogAjaxLinks to another one and back, the
> dialogAjaxLinks stop working.
>
> When I change the grid page using the pager, the dialogAjaxLinks start
> working again.
>
> When they don't work, no events are fired when I click them.
>
> It's really weird...
>
> Regards,
> Daniel Poggenpohl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

AW: Problems with jquery tab component

Posted by "Poggenpohl, Daniel" <Da...@isst.fraunhofer.de>.
Hello again,

I have since reduced the bug to putting a DialogAjaxLink directly into a tab, switching tabs and going back to the tab containing the DialogAjaxLink. The same Zone error is thrown.

Still don't know why it happens...

Regards,
Daniel P.

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de] 
Gesendet: Mittwoch, 25. März 2015 11:18
An: Tapestry users
Betreff: AW: Problems with jquery tab component

Hello for the third time,

I'm beginning to warm up with Firebug...

When I click on the DialogAjaxLink to open the dialog and it doesn't work, the console outputs:

"cannot call methods on tapestryZone prior to initialization; attempted to call method 'update'"

Any ideas?
Daniel P.

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de] 
Gesendet: Mittwoch, 25. März 2015 11:02
An: Tapestry users
Betreff: AW: Problems with jquery tab component

Hello again,

I've activated event logging in the page and components contained within.

When I change from the tab containing the DialogAjaxLinks to another tab, these events are fired...

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]

I find it strange that every event is dispatched twice. Is that normal?
In addition to that, the statustab contains other components. Shouldn't they fire events, too?

When I then change back to the tab containing the DialogAjaxLinks, these events happen:

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab]

When I click the DialogAjaxLinks, the click events are fired and the appropriate function seems to be called. It just doesn't open the dialog.

Regards,
Daniel

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de]
Gesendet: Dienstag, 24. März 2015 12:54
An: users@tapestry.apache.org
Betreff: Problems with jquery tab component

Hi,

I'm using the jquery tab component, and as the google group seems pretty dead at the moment, I thought I bring my question here...

I have a page with a tab component (ajax=true) with 4 tabs. One of these tabs contains dialogAjaxLinks that open some dialogs. The links are contained inside an inPlace=true grid.
I think I can reproduce a bug in my app so that when I change the tab from the one containing the dialogAjaxLinks to another one and back, the dialogAjaxLinks stop working.

When I change the grid page using the pager, the dialogAjaxLinks start working again.

When they don't work, no events are fired when I click them.

It's really weird...

Regards,
Daniel Poggenpohl

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


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


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


AW: Problems with jquery tab component

Posted by "Poggenpohl, Daniel" <Da...@isst.fraunhofer.de>.
Hello for the third time,

I'm beginning to warm up with Firebug...

When I click on the DialogAjaxLink to open the dialog and it doesn't work, the console outputs:

"cannot call methods on tapestryZone prior to initialization; attempted to call method 'update'"

Any ideas?
Daniel P.

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de] 
Gesendet: Mittwoch, 25. März 2015 11:02
An: Tapestry users
Betreff: AW: Problems with jquery tab component

Hello again,

I've activated event logging in the page and components contained within.

When I change from the tab containing the DialogAjaxLinks to another tab, these events are fired...

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]

I find it strange that every event is dispatched twice. Is that normal?
In addition to that, the statustab contains other components. Shouldn't they fire events, too?

When I then change back to the tab containing the DialogAjaxLinks, these events happen:

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab] [DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab] [DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent] [DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab]

When I click the DialogAjaxLinks, the click events are fired and the appropriate function seems to be called. It just doesn't open the dialog.

Regards,
Daniel

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de]
Gesendet: Dienstag, 24. März 2015 12:54
An: users@tapestry.apache.org
Betreff: Problems with jquery tab component

Hi,

I'm using the jquery tab component, and as the google group seems pretty dead at the moment, I thought I bring my question here...

I have a page with a tab component (ajax=true) with 4 tabs. One of these tabs contains dialogAjaxLinks that open some dialogs. The links are contained inside an inPlace=true grid.
I think I can reproduce a bug in my app so that when I change the tab from the one containing the dialogAjaxLinks to another one and back, the dialogAjaxLinks stop working.

When I change the grid page using the pager, the dialogAjaxLinks start working again.

When they don't work, no events are fired when I click them.

It's really weird...

Regards,
Daniel Poggenpohl

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


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


AW: Problems with jquery tab component

Posted by "Poggenpohl, Daniel" <Da...@isst.fraunhofer.de>.
Hello again,

I've activated event logging in the page and components contained within.

When I change from the tab containing the DialogAjaxLinks to another tab, these events are fired...

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
[DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from statustab]

I find it strange that every event is dispatched twice. Is that normal?
In addition to that, the statustab contains other components. Shouldn't they fire events, too?

When I then change back to the tab containing the DialogAjaxLinks, these events happen:

[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[activate from (self)]
[DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
[DEBUG] main.page Dispatch event: ComponentEvent[SelectTab from tabs]
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Invoking: app.components.manager.DialogAjaxLinkContainingGridComponent.setupRender()
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab]
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab]
[DEBUG] main.page Dispatch event: ComponentEvent[preallocateFormControlNames from (self)]
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepareForRender from someCommonComponent]
[DEBUG] main.page Dispatch event: ComponentEvent[prepareForRender from gridContainingTab]
[DEBUG] manager.DialogAjaxLinkContainingGridComponent Dispatch event: ComponentEvent[prepare from someCommonComponent]
[DEBUG] main.page Dispatch event: ComponentEvent[prepare from gridContainingTab]

When I click the DialogAjaxLinks, the click events are fired and the appropriate function seems to be called. It just doesn't open the dialog.

Regards,
Daniel

-----Ursprüngliche Nachricht-----
Von: Poggenpohl, Daniel [mailto:Daniel.Poggenpohl@isst.fraunhofer.de] 
Gesendet: Dienstag, 24. März 2015 12:54
An: users@tapestry.apache.org
Betreff: Problems with jquery tab component

Hi,

I'm using the jquery tab component, and as the google group seems pretty dead at the moment, I thought I bring my question here...

I have a page with a tab component (ajax=true) with 4 tabs. One of these tabs contains dialogAjaxLinks that open some dialogs. The links are contained inside an inPlace=true grid.
I think I can reproduce a bug in my app so that when I change the tab from the one containing the dialogAjaxLinks to another one and back, the dialogAjaxLinks stop working.

When I change the grid page using the pager, the dialogAjaxLinks start working again.

When they don't work, no events are fired when I click them.

It's really weird...

Regards,
Daniel Poggenpohl

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