Re: Howto modify css-class prefix of all components on a panel?

2011-05-18 Thread Mike Mander
That was the way brought me to my trouble. In IE the parent selector was ignored. {.sidebar * .facet} definition was nicely rendered in FF but ignored in IE. The solution for this non-wicket problem was to add the doc-type to my page html. Now i get the results i've expected. Thanks Mike you

Re: [1.5RC2] impossible to add cookies

2011-05-18 Thread adriclad
Sorry, I didn't work on this bug recently. But, I finally found the solution ! With the RC3 and RC4, I can now see now errors : (With RC2 they were not display !!!) 18:29:40.479 WARN (org.apache.wicket.util.lang.WicketObjects) Unable to determine object size: nc.ird.cantharella.web.utils.securi

tree

2011-05-18 Thread hubert_hupe
hello, after hours of researching and trying get a simple tree running iam completely frustrated. i added a tree to the website in this way: public class Test extends WebPage { protected TreeModel createTreeModel() { List l1 = new ArrayList(); l1.add("test 1.1")

Re: FormComponent convertInput for children FormComponets

2011-05-18 Thread kamiseq
maybe you need to set type for each control, I had similar issue. look at the wicket code where the value is set. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: tree

2011-05-18 Thread Sven Meier
Hi, > error: WicketMessage: Can't instantiate page using constructor > public com.test.Test(org.apache.wicket.PageParameters) and argument an exception stacktrace would give us a clue on what goes wrong here. Sven Am 18.05.2011 11:44, schrieb hubert_hupe: hello, after hours of researching an

Re: tree

2011-05-18 Thread hubert_hupe
hi sven, here it is. cheers hubert WicketMessage: Can't instantiate page using constructor public com.reporting.SignIn(org.apache.wicket.PageParameters) and argument Root cause: java.lang.NullPointerException at com.reporting.SignIn.(SignIn.java:217) at sun.reflect.NativeConstructor

Re: tree

2011-05-18 Thread Martijn Dashorst
Take a look at line 217 of your SignIn class and see why it throws a NPE. Martijn On Wed, May 18, 2011 at 3:24 PM, hubert_hupe wrote: > hi sven, > > here it is. cheers hubert > > WicketMessage: Can't instantiate page using constructor public > com.reporting.SignIn(org.apache.wicket.PageParamete

Re: tree

2011-05-18 Thread hubert_hupe
Oh my goodness, ok. there was an object that was null. error is gone. BUT still no event is fired when i click on a node in the tree. as a kind of template i tried to adapt the following for the tree: add(new AjaxLink("expandAll") { @Override public void onClick(AjaxRequestTarget target) {

IStringResourceLoader database implementation

2011-05-18 Thread Wicket
Hi, Has anyone successfully implemented IStringResourceLoader to get text via database without to much load for the database? Any suggestion? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional command

Re: HeaderContributors, Ajax and IE8

2011-05-18 Thread Mathias Nilsson
I had problem in IE8 with a previous version of wicket. Used 1.4.12 and it worked fine in IE8 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HeaderContributors-Ajax-and-IE8-tp3529468p3533422.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: tree

2011-05-18 Thread Sven Meier
Hi, the method you want to override is the following: protected void onNodeLinkClicked(Object node, BaseTree tree, AjaxRequestTarget target) { } Sven On 05/18/2011 05:27 PM, hubert_hupe wrote: Oh my goodness, ok. there was an object that was null. error is gone. BUT still no ev

Re: IStringResourceLoader database implementation

2011-05-18 Thread andrea del bene
Hi, I've just finished to implement a custom string resource loader which checks for existing resource bundle in database. For now i've used a simple HashMap to store loaded entries and to retrieve them without reading again from database. I've choose HashMap over HashTable because I need to

Re: IStringResourceLoader database implementation

2011-05-18 Thread Matthias Gasser
I've used a second level cache, works like a charm. - matt -- iPhone Mail On 18.05.2011, at 20:22, andrea del bene wrote: > Hi, > > I've just finished to implement a custom string resource loader which checks > for existing resource bundle in database. For now i've used a simple HashMap >

Killing threads in Application's onDestroy method

2011-05-18 Thread Henrique Boregio
Hi, in my Wicket Application class, I create a couple of thread that sleep most of the time..and come alive every one in a while to do some maintenance tasks. I create them in the init() method of the Wicket Application...and call kill() on them in the onDestroy() method. When I shutdown tomcat a

Re: Killing threads in Application's onDestroy method

2011-05-18 Thread Bruno Borges
Don't kill your threads... You should code them the right way: public void run() { while(running) { // do stuff } } Instead of killing them, change the value of that boolean 'running' to false through any other method. Cheers, *Bruno Borges* www.brunoborges.com.br +55 21 76727099

Re: Killing threads in Application's onDestroy method

2011-05-18 Thread Henrique Boregio
My bad...that's actually what I am doing. I have a stop() method insite my threads that change a boolean value to false inside the while...instead of having while(tru) On Wed, May 18, 2011 at 3:51 PM, Henrique Boregio wrote: > Hi, in my Wicket Application class, I create a couple of thread that >

Re: IStringResourceLoader database implementation

2011-05-18 Thread andrea del bene
Did you implemented this cache using some framework (ehcache, terracotta, spring cache, )? I've used a second level cache, works like a charm. - matt -- iPhone Mail On 18.05.2011, at 20:22, andrea del bene wrote: Hi, I've just finished to implement a custom string resource loader whic

Re: IStringResourceLoader database implementation

2011-05-18 Thread Matthias Gasser
Used hibernate+ehcache. - matt Am 18.05.2011 um 21:21 schrieb andrea del bene: > Did you implemented this cache using some framework (ehcache, terracotta, > spring cache, )? >> I've used a second level cache, works like a charm. >> >> - matt >> >> -- >> iPhone Mail >> >> >> On 18.05.201

Re: Killing threads in Application's onDestroy method

2011-05-18 Thread Rafał Krupiński
W dniu 18.05.2011 21:16, Henrique Boregio pisze: My bad...that's actually what I am doing. I have a stop() method insite my threads that change a boolean value to false inside the while...instead of having while(tru) In this case, most probably your threads are running while your application i

JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread eugenebalt
Hi, My SubmitButton has an onClick JavaScript handler. Let's say the handler is something simple, like onclick="alert('Test')" There are no JS errors when I run. But the problem is, the form submit flow stops. The flow doesn't go into Form.onSubmit() as it should. I tried returning true and fal

Re: JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread Bruno Borges
Please send more code. Would be great if you could put that on a quickstart project. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, May 18, 2011 at 5:04 PM, eugenebalt wrote: > Hi, > > My SubmitButton has an onClick JavaScript handler. Let's say the handler is > something sim

Re: Issue with internationalising the MultiFileUploadField component

2011-05-18 Thread Steve Swinsburg
Thanks, I can reproduce it in a quickstart using 1.4.17 as well. Attached to https://issues.apache.org/jira/browse/WICKET-3727Reproduced the snippets here:---HomePage.java:add(new Label("message", new Re

Re: JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread Pedro Santos
Hi, if you are using an AJAX submit button then you can't simple change the onclick tag attribute that is already changed by the component. Prepend your alert script in the attribute rather than modify it. e.g. submitComponent.add( new Behavior(){ onComponentTat(tag){ tag.put("onclick", "aler

Re: JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread hariharansrc
when you are using wicket in form that has already onSubmit event so your javascript onclick event won't work so you have to extend your form and override the onSubmit in wicket and add your javascript in that onSubmit function. Here is a sample code i am attaching you make changes in that to obtai

Re: IStringResourceLoader database implementation

2011-05-18 Thread Mathias Nilsson
Thanks, My concern is also name component collition. The org.apache.wicket.resource.loader.ComponentStringResourceLoader iterates over the component stack to check for the values but that could leed to 10 times per text string and it would be a heavy load even if I implemented some sort of cache.

Re: Killing threads in Application's onDestroy method

2011-05-18 Thread François Meillet
You should have a look at Terracotta Quartz, a very good scheduler. François Le 18 mai 2011 à 20:51, Henrique Boregio a écrit : > Hi, in my Wicket Application class, I create a couple of thread that > sleep most of the time..and come alive every one in a while to do some > maintenance tasks. >

Re: warn on exit from browser

2011-05-18 Thread rebecca
Thank you all for replying It does sound like I'm trying to do something impossible, but I would like to post my code here in case i did not explain the problem correctly: I add onbeforeunload event to the body of my page, which calls a JS function. The JS does submit to my form. In my form onSub