Re: Sort order of css files

2013-04-05 Thread Martin Grigorov
I think using ResourceReference#getDependencies() is better for this requirement. Your CSS should depend on BootstrapCssReference. See JQueryPluginJavaScriptResourceReference for example - it is a JS reference that depends on another JS reference that contributes jQuery.js. On Fri, Apr 5, 2013

how to set radio

2013-04-05 Thread david.li
hello. I use the wicket RadioGroup in my project.the code like this: final RadioGroup group = new RadioGroup(group, new Model()); Radio monthRadio = new Radio(month, new Model()); monthRadio.add(new AjaxEventBehavior(onchange) {

Re: how to set radio

2013-04-05 Thread Martin Grigorov
Hi, You have to use org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior on the RadioChoice component. On Fri, Apr 5, 2013 at 12:23 PM, david.li lxw_fi...@hotmail.com wrote: hello. I use the wicket RadioGroup in my project.the code like this: final RadioGroup

Re: Browser Cookie detection

2013-04-05 Thread divad91
Does NonResettingRestartException suppose to keep the cookies in the response ? I am using wicket 6.6.0 on jboss 6 and when I throw a NonResettingRestartException, the cookies are not present in the request after. Cookie appCookie = new Cookie(appCoookie, 1); ((WebResponse)

Re: Browser Cookie detection

2013-04-05 Thread Martin Grigorov
Set some age for this cookie. On Fri, Apr 5, 2013 at 4:31 PM, divad91 diva...@hotmail.com wrote: Does NonResettingRestartException suppose to keep the cookies in the response ? I am using wicket 6.6.0 on jboss 6 and when I throw a NonResettingRestartException, the cookies are not present

CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
I wrote a checkboxmultiple choice that looks like the following: CheckBoxMultipleChoiceFilterValue forfTypes = new CheckBoxMultipleChoiceFilterValue( forfeitureTypes, lookupService.fetchFilterValuesByFilterName(Forfeiture Type), new

Re: AjaxIndicatorAppender on a Panel

2013-04-05 Thread saty
This is great, thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694p465.html Sent from the Users forum mailing list archive at Nabble.com. - To

problem using ThreadPool in wicket

2013-04-05 Thread saty
ExecutionExceptionjava.util.concurrent.ExecutionException: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread pool-2-thread-1 I am trying to process a bulk data request within a thread pool. Thanks for your help. -- View this message in context:

Re: CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
Sven Meier wrote Seems like you're having an issue with generics. Introducing local variables should help identifying the problem. Yeah, I am definitely in generics hell. I tried spreading it out, and get the same problem. ArrayListFilterValue list = (ArrayListFilterValue)

Re: Browser Cookie detection

2013-04-05 Thread divad91
Sorry this was just a test cookie. Even with the age, Cookie appCookie = new Cookie(appCoookie, 1); appCookie.setMaxAge(3600 * 5); appCookie.setPath(/); appCookie.setSecure(false); the cookie is not transfer. When i debug, in the transferResponseMetaData of the NonResettingRestartException

Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
Application is a thread local which is attached to the thread handling the request... You will have to path the info you need to this pooled thread from request handling thread On Fri, Apr 5, 2013 at 9:26 PM, saty satya...@gmail.com wrote:

Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
Sorry i dont get what you mean by 'You will have to path the info you need to this pooled thread from request handling thread ' Did you mean 'pass the info'? that is what i am doing.. The request handling thread is creating a pooled thread and submitting tasks and waiting for them to finish and

Re: problem using ThreadPool in wicket

2013-04-05 Thread Andrea Del Bene
Which is the instruction that rises the exception and how do you pass the application instance to the working threads of the pool? Sorry i dont get what you mean by 'You will have to path the info you need to this pooled thread from request handling thread ' Did you mean 'pass the info'? that is

Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
Hi, On Fri, Apr 5, 2013 at 10:00 PM, saty satya...@gmail.com wrote: Sorry i dont get what you mean by 'You will have to path the info you need to this pooled thread from request handling thread ' Did you mean 'pass the info'? that is what i am doing.. yes.. I might be getting sleepy:-)

Re: CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
Solved. CheckBoxMultipleChoiceFilterValue adTypes = new CheckBoxMultipleChoiceFilterValue( adTypes, new Model((Serializable) model.getAdTypes()), lookupService.fetchFilterValuesByFilterName(Advertisement Type),

Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
I am not doing any Application.get() inside the thread pool, pool does not care who is using it, it just processed anything submitted to it and returns a future to collect the output, Any thoughts? -- View this message in context:

Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
post stacktrace. On Fri, Apr 5, 2013 at 10:19 PM, saty satya...@gmail.com wrote: I am not doing any Application.get() inside the thread pool, pool does not care who is using it, it just processed anything submitted to it and returns a future to collect the output, Any thoughts? --

Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
It just prints one line as of now as i mentioned above, trying to see if i can print more details. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657788.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Browser Cookie detection

2013-04-05 Thread divad91
I just created a new wicket 6.6.0 quickstart project (http://wicket.apache.org/start/quickstart.html) and I have the same problem. If I add the following code in the HomePage class, Cookie requestCookie = ((WebRequest) getRequest()).getCookie(appCoookie);

Re: AbstractDefaultAjaxBehavior response handling

2013-04-05 Thread heikki
hi Sven, thanks ! I see now how it works. The basic thing is that AbstractDefaultAjaxBehavior does not write anything to responses, you have to subclass it and write to the response according to your needs, in this subclass. kind regards Heikki Doeleman -- View this message in context:

Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
You were right, It was my fault, the code was indeed trying to read user from session. It works fine after i tweaked the code, thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657791.html Sent from the Users forum

Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
you are welcome:-) On Sat, Apr 6, 2013 at 1:31 AM, saty satya...@gmail.com wrote: You were right, It was my fault, the code was indeed trying to read user from session. It works fine after i tweaked the code, thanks! -- View this message in context: