You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by appwicket <ww...@gmail.com> on 2012/12/19 20:11:27 UTC

AjaxTab#getLazyPanel not loading data

Hi all, 
I am using AjaxTab instead of AbstractTab.
The following is my code:
tabs.add(new AjaxTab(new Model<String>(myString)) {
 private static final long serialVersionUID = 1L;
 @Override
 public WebMarkupContainer getLazyPanel(String panelId)
 {
 try
 {
 Thread.sleep(500);
 }
 catch (InterruptedException e)
 {
 error(e.getMessage());
 }
return new MyPanel(panelId,pageParameters,myString);
 }
 });
when I load the tab, the program is not reading any data from database and I
only able to see the spinner.
What do I miss?
Thanks



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxTab-getLazyPanel-not-loading-data-tp4654947.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: AjaxTab#getLazyPanel not loading data

Posted by Sven Meier <sv...@meiers.net>.
Where's AjaxTab coming from?

Sven

On 12/19/2012 08:11 PM, appwicket wrote:
> Hi all,
> I am using AjaxTab instead of AbstractTab.
> The following is my code:
> tabs.add(new AjaxTab(new Model<String>(myString)) {
>   private static final long serialVersionUID = 1L;
>   @Override
>   public WebMarkupContainer getLazyPanel(String panelId)
>   {
>   try
>   {
>   Thread.sleep(500);
>   }
>   catch (InterruptedException e)
>   {
>   error(e.getMessage());
>   }
> return new MyPanel(panelId,pageParameters,myString);
>   }
>   });
> when I load the tab, the program is not reading any data from database and I
> only able to see the spinner.
> What do I miss?
> Thanks
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxTab-getLazyPanel-not-loading-data-tp4654947.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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