wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Ferguson <the...@gmail.com>
Subject Re: Migrating to wicket 1.5
Date Thu, 01 Mar 2012 05:01:19 GMT
Just found another one:

What did AbortException get replaced with?

Douglas

On Feb 29, 2012, at 10:44 PM, Douglas Ferguson wrote:

> I was reading the migration doc and I'm not sure how I would migrate this to 1.5:
> 
> 		WebRequest webRequest = (WebRequest) RequestCycle.get().getRequest();
> 		HttpServletRequest httpServletRequest = (HttpServletRequest)webRequest.getContainerRequest();
> 		String jqueryURl = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js";
> 		if(httpServletRequest.isSecure()){
> 			jqueryURl = jqueryURl.replaceFirst("http://", "https://");
> 		}
> 		component.add(JavascriptPackageResource.getHeaderContribution(jqueryURl));


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


Mime
View raw message