Re: AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread James Carman
No problem.  Glad to help.

On Tue, Nov 25, 2008 at 9:21 AM, Yazeed Isaacs <[EMAIL PROTECTED]> wrote:

> Thank you James, onBeforeRender() worked for me, in which all I did was
> replaced components. Really simple solution.
>
> Regards,
> Yazeed Isaacs - Java Developer
> [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: 25 November 2008 03:19 PM
> To: users@wicket.apache.org
> Subject: Re: AjaxSelfUpdatingTimerBehavior not updating
>
> On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs <[EMAIL PROTECTED]> wrote:
> > If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel,
> > will the MyTabPanel() constructor be called at each update interval?
>
> No.  But, the onBeforeRender() will be called.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread Yazeed Isaacs
Thank you James, onBeforeRender() worked for me, in which all I did was
replaced components. Really simple solution.

Regards,
Yazeed Isaacs - Java Developer
[EMAIL PROTECTED]



-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: 25 November 2008 03:19 PM
To: users@wicket.apache.org
Subject: Re: AjaxSelfUpdatingTimerBehavior not updating

On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs <[EMAIL PROTECTED]> wrote:
> If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel,
> will the MyTabPanel() constructor be called at each update interval?

No.  But, the onBeforeRender() will be called.

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


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



Re: AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread James Carman
On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs <[EMAIL PROTECTED]> wrote:
> If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel,
> will the MyTabPanel() constructor be called at each update interval?

No.  But, the onBeforeRender() will be called.

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



RE: AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread Yazeed Isaacs
If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel,
will the MyTabPanel() constructor be called at each update interval?

Please assist with this one guys. :D

Yazeed Isaacs - Java Developer
[EMAIL PROTECTED]



-Original Message-
From: Yazeed Isaacs [mailto:[EMAIL PROTECTED] 
Sent: 25 November 2008 12:45 PM
To: users@wicket.apache.org
Subject: AjaxSelfUpdatingTimerBehavior not updating

Hi

The AjaxSelfUpdatingTimerBehavior does not update/refresh the content.


I have a WebPage with an AjaxLink and a WebMarkupContainer that contains
default ListView.

WebPage
 |_AjaxLink
 |_WebMarkupContainer
|_ListView


When the AjaxLink is clicked, the ListView is replaced by an
AjaxTabbedPanel. I do this by repainting the WebMarkupContainer in the
AjaxLink.onClick method.

Here is the overridden onClick Method:

@Override
public void onClick(AjaxRequestTarget target) {
  ArrayList tabs = new ArrayList();
  AbstractTab tab1 = new AbstractTab(new Model("Data")) {
public Panel getPanel(String panelId) {
  return new MyTabPanel(panelId);
}
  };
  tabs.add(tab1);

  AjaxTabbedPanel tabsPanel = new AjaxTabbedPanel("thetabs", tabs);
  container.replace(tabsPanel);
  container.setOutputMarkupId(true);
  container.setRenderBodyOnly(false);
  target.addComponent(container);
}

The AjaxSelfUpdatingTimerBehavior is added in the MyTabPanel constructor
as:

// timed updater
add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(10)));


What am I doing wrong?


Yazeed Isaacs - Java Developer
[EMAIL PROTECTED]


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


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



AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread Yazeed Isaacs
Hi

The AjaxSelfUpdatingTimerBehavior does not update/refresh the content.


I have a WebPage with an AjaxLink and a WebMarkupContainer that contains
default ListView.

WebPage
 |_AjaxLink
 |_WebMarkupContainer
|_ListView


When the AjaxLink is clicked, the ListView is replaced by an
AjaxTabbedPanel. I do this by repainting the WebMarkupContainer in the
AjaxLink.onClick method.

Here is the overridden onClick Method:

@Override
public void onClick(AjaxRequestTarget target) {
  ArrayList tabs = new ArrayList();
  AbstractTab tab1 = new AbstractTab(new Model("Data")) {
public Panel getPanel(String panelId) {
  return new MyTabPanel(panelId);
}
  };
  tabs.add(tab1);

  AjaxTabbedPanel tabsPanel = new AjaxTabbedPanel("thetabs", tabs);
  container.replace(tabsPanel);
  container.setOutputMarkupId(true);
  container.setRenderBodyOnly(false);
  target.addComponent(container);
}

The AjaxSelfUpdatingTimerBehavior is added in the MyTabPanel constructor
as:

// timed updater
add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(10)));


What am I doing wrong?


Yazeed Isaacs - Java Developer
[EMAIL PROTECTED]


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