Re: AjaxLazyLoadPanel and back button

2011-01-09 Thread flavius

Thanks Pedro.

I've opened WICKET-3318 regarding this issue and attached a quickstart.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-and-back-button-tp3168379p3206574.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxLazyLoadPanel and back button

2011-01-01 Thread Pedro Santos
Hi Flavius, please fill a ticket with a quickstart.

On Thu, Dec 30, 2010 at 1:19 PM, flavius  wrote:

>
> I'm using the AjaxLazyLoadPanel to load images I'm generating from reports.
> When
> I'm on a page with the AjaxLazyLoadPanel, click a link to another page
> (like
> a
> BookmarkablePageLink) and then click back, the image that was generated is
> still in place.
>
> However, if I submit a form that's on the panel's page and then hit the
> back
> button,
> it goes back to the page with the spinning busy indicator and it spins
> forever,
> rather than displaying the already rendered image.
>
> Is this by design or should the generated image be rendered as it does when
> clicking a link?
>
> I'm using wicket 1.4.15.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-and-back-button-tp3168379p3168379.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


AjaxLazyLoadPanel and back button

2010-12-30 Thread flavius

I'm using the AjaxLazyLoadPanel to load images I'm generating from reports. 
When 
I'm on a page with the AjaxLazyLoadPanel, click a link to another page (like
a 
BookmarkablePageLink) and then click back, the image that was generated is
still in place.   

However, if I submit a form that's on the panel's page and then hit the back
button, 
it goes back to the page with the spinning busy indicator and it spins
forever, 
rather than displaying the already rendered image. 

Is this by design or should the generated image be rendered as it does when 
clicking a link?

I'm using wicket 1.4.15.



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-and-back-button-tp3168379p3168379.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxTabbedPanel, AjaxLazyLoadPanel and back button

2009-05-05 Thread Rodrigo De Castro
I solved this problem turning off the browser's cache for this page. So I
added the following override method and now it works just fine:

@Override
protected void configureResponse() {
super.configureResponse();

final WebResponse response = getWebRequestCycle().getWebResponse();
response.setHeader("Cache-Control", "no-cache, max-age=0,
must-revalidate, no-store");
}

Please let me know if there is another (better) solution.

Rodrigo

On Tue, Apr 28, 2009 at 7:14 PM, Rodrigo De Castro wrote:

> Hey,
>
> I've been using AjaxTabbedPanel successfully, but ran into the following
> problem today:
>
> 1. Load page that has multiple tabs
> 2. Click on the second tab
> 3. Click on link on the tab panel that takes me to another page
> 4. Press back button
>
> It fails with the following error:
>
> WicketMessage: component
> tabpanel:mytabpanel:panel:general_workflow_panel:graph_container not found
> on page
>
> The container (graph_container) is an AjaxLazyLoadPanel. If I don't load it
> lazyly, it works fine. Is this a known bug? Or maybe I am not using
> AjaxLazyLoadPanel properly? Let me know if you need more information.
>
> AjaxLazyLoadPanel code:
> graphContainer = new AjaxLazyLoadPanel("graph_container") {
> @Override
> public Component getLazyLoadComponent(String markupId) {
> return new ChartPanel(markupId, new ChartModel());
> }
> };
>
> This is where the panel is inserted:
> 
>
> And panel (ChartPanel) html:
> 
>  wicket:id="graph_container">
> 
> 
> 
>
> Thanks,
> Rodrigo


AjaxTabbedPanel, AjaxLazyLoadPanel and back button

2009-04-28 Thread Rodrigo De Castro
Hey,

I've been using AjaxTabbedPanel successfully, but ran into the following
problem today:

1. Load page that has multiple tabs
2. Click on the second tab
3. Click on link on the tab panel that takes me to another page
4. Press back button

It fails with the following error:

WicketMessage: component
tabpanel:mytabpanel:panel:general_workflow_panel:graph_container not found
on page

The container (graph_container) is an AjaxLazyLoadPanel. If I don't load it
lazyly, it works fine. Is this a known bug? Or maybe I am not using
AjaxLazyLoadPanel properly? Let me know if you need more information.

AjaxLazyLoadPanel code:
graphContainer = new AjaxLazyLoadPanel("graph_container") {
@Override
public Component getLazyLoadComponent(String markupId) {
return new ChartPanel(markupId, new ChartModel());
}
};

This is where the panel is inserted:


And panel (ChartPanel) html:






Thanks,
Rodrigo