Thanks Michael ...i could hardly detect that...hehehe cheers..
Thanks...


Michael Sparer wrote:
> 
> looks like something's wrong in your service, check the random stuff at
> com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72)
> ;-) ... don't think it's anything related to the headercontributor
> 
> 
> freak182 wrote:
>> 
>> Hello,
>> 
>> I have a project which uses mostly javascript because it is a client base
>> part. My problem is when i cannot redirect wicket pages in javascript. I
>> already try this in behavior:
>> 
>> .............
>> init.js
>> 
>> function clientReady() {
>> 
>>  location.href = '${url}';
>> 
>> }
>> 
>> in behavior...
>> 
>> final Map params = ....
>> 
>>  map.put("url" , RequestCycle.get().urlFor(new TestPage());
>> 
>> component.add(TextTemplateHeaderContributor.forJavaScript(InitBehavior.class,
>> "init.js", params));
>>      super.bind(component);
>> 
>> i get an error:
>> Caused by: java.lang.reflect.InvocationTargetException
>>      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>      at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>      at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>      at
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
>>      ... 29 more
>> Caused by: java.lang.IllegalArgumentException: Upper bound for nextInt
>> must be positive
>>      at org.apache.commons.lang.math.JVMRandom.nextInt(JVMRandom.java:104)
>>      at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:88)
>>      at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:74)
>>      at
>> com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72)
>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>      at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>      at java.lang.reflect.Method.invoke(Method.java:597)
>>      at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>>      at $Proxy20.get3QA(Unknown Source)
>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>      at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>      at java.lang.reflect.Method.invoke(Method.java:597)
>>      at
>> org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
>>      at org.apache.wicket.proxy.$Proxy23.get3QA(Unknown Source)
>>      at
>> com.ccti.digibanker.arcot.process.ArcotNoIdPage.<init>(ArcotNoIdPage.java:49)
>>      ... 34 more
>> 
>> any idea...Thanks a lot...Cheers.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-wicket-pages-using-javascript-tp20083835p20084989.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to