How to speed up a page that uses data from a slow webservice

2009-07-13 Thread Martin Tilma

Hi all,

I have a page and it's a bit slow and I want to speed it up, but don't
know a proper solution.

The case:

I have a page that contains 5 components showing different data
retrieved from a webservice. Each webservice call takes about 1 second.
Besides that I have 2 buttons who's visibility is based on data from
also the same slow webservice. In total there are 7 calls taking about 7
seconds to finish and to render the page.

I could cache the data, but that will only work the second time. I was
thinking about a way to preload the data and maybe use different threads
so the calls don't have to wait for each other...


Any ideays?

Martin



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



Re: override isEnabed of FinishButton

2009-04-08 Thread Martin Tilma

Hi,

Thnx for the reply, but your solutions won't fix my problem because the 
isEnabled in FinishButton is implemented like this:


/**
 * @see org.apache.wicket.Component#isEnabled()
 */
public final boolean isEnabled()
{
IWizardStep activeStep = getWizardModel().getActiveStep();
return (activeStep != null  
getWizardModel().isLastStep(activeStep));
}

Regards,


Martin

jcgarciam wrote:

I guess, you can try to override protected void onBeforeRender() and make
something like:

protected void onBeforeRender(){
  this.setEnabled(true);
  super.onBeforeRender();
}



Martin Tilma wrote:

Hello,

I have a Wizard with a FinishButton. I want the button always be 
enabled. Because the method isEnabled is final I cant override it.


I think coping the button and change the isEnabled method to always 
return true is a bit ugly. What is de best way to do it?


Regards,

Martin


--
Martin Tilma
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

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








--
Martin Tilma
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

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



override isEnabed of FinishButton

2009-04-07 Thread Martin Tilma

Hello,

I have a Wizard with a FinishButton. I want the button always be 
enabled. Because the method isEnabled is final I cant override it.


I think coping the button and change the isEnabled method to always 
return true is a bit ugly. What is de best way to do it?


Regards,

Martin


--
Martin Tilma
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

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



Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Martin Tilma

Hello Anton,

Have a look at: 
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Proxy%20Support


maybe this helps?

Regards,

Martin


Hi,

http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
shows this configuration:

VirtualHost ordering.company.com
  ProxyPass / http://appserver.company.com:8080/ordering/
  ProxyPassReverse / http://appserver.company.com:8080/ordering/
  # Apache 2.2+ only
  ProxyPassReverseCookiePath /ordering /
/VirtualHost

as impossible until getApplicationSettings().setContextPath(/);
But it says in 1.3 it must work because it uses relative paths.
My experience shows that contextPath is still added in URL in links
and I don't know why.

Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
Apache through mod_proxy?
If yes, please, send me example of configuration. What I need to do in web.xml?

Thank you,
Tony.

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




--
Martin Tilma
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

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