Re: Select model object when clicking on a row in a DataView

2009-01-21 Thread Gohan
I've tried upgrading to Wicket 1.4-rc1 now and I'm using this in the onComponentTag method: .. tag.put(onclick, urlFor(ILinkListener.INTERFACE)); .. However the onLinkClicked method is never called.. The rendered HTML tr tag looks like this: tr wicket:id=mainDataView id=id15

Changing model state from another thread

2009-01-21 Thread Gohan
Hi, I have a long-running job that runs in another thread. To this job you can pass listeners to get notifications of various events such as when the job has ended and various other status events. I'd like to have a Wicket page with a label that updates when the status of the job changes and a

Re: Changing model state from another thread

2009-01-21 Thread Gohan
After some more investigation I think it would be possible to achieve what I'm looking for using a AjaxSelfUpdatingTimerBehavior and just overriding the onPostProcessTarget method and perform the logic there. I'll give this a spin. -- View this message in context:

Updating label using ajax on event

2009-01-19 Thread Gohan
Hi, I'd like to change the text of a Label when a certain event (callback) is received using Ajax. How should I go about? The event is not triggered by a user interaction but from a server-side service indicating that an certain operation is complete. This is what I would like to show in the

PropertyModel that add/read element from collection

2009-01-13 Thread Gohan
Hi, Is there a good way to add an element to a collection using a PropertyModel? What I'd like to do is this: .. form.add(new DefaultValueDropDownChoice(id, new PropertyModel(model, categories), jobTypes)); .. This obviously doesn't work since categories is mapped to a java.util.Set. /Johan

Re: PropertyModel that add/read element from collection

2009-01-13 Thread Gohan
Well it doesn't work for me, but mabey I'm doing something wrong. categories in my case is a set of Strings and the result/value selected from the DropDownChoice is a String and not a Set. Wicket says that it cannot find method setCategories which is reasonable because there's no such method and

Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Gohan
Hi, Several of the ajax components or features in Wicket doesn't seem to work correctly with Wicket 1.3.5 and Firefox 3.0.5 (but they do work in Internet Explorer for example). For example try out the

Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Gohan
If we take the Palette example in Firefox then nothing happens if I select a name and then press the right arrow. In Internet Explorer the name is moved from the Available to the Selected panel. Does this work for you? -- View this message in context:

Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Gohan
Ok so mabey it's just me. Perhaps I'm using some extension that prevents me from using the components? Are there any known Firefox extensions that you shouldn't use in combination with Wicket? I'm using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Gohan
Nope Javascript is enabled.. It seem to work on my other computer using Ubuntu and Firefox 3.0.5. So mabey it could be an extension causing the problem? -- View this message in context:

Re: Select model object when clicking on a row in a DataView

2009-01-13 Thread Gohan
, Jan 12, 2009 at 10:45 PM, Gohan hal...@gmail.com wrote: Thanks for your answer but I cannot seem to find the IOnClickHandler interface. I'm using Wicket 1.3.5. I've tried using: item.add(new AjaxEventBehavior(onclick) { private static final long

Select model object when clicking on a row in a DataView

2009-01-12 Thread Gohan
Hi, I have a DataView using a custom Item that I create when the newItem method is called. My question is, how do I add an onclick event handler to this Item that allows me to select the model object for a particular row? Or perhaps I can achieve this in some other way? Thanks Johan -- View

Re: FileUpload broken in Firefox 3.0.5

2009-01-12 Thread Gohan
It seems like many Ajax features doesn't seem to work in Firefox 3.0.5 while they work in Internet Explorer for example. This is quite a big annoyance more me since I cannot use an Ajax features in my code. -- View this message in context:

Re: Select model object when clicking on a row in a DataView

2009-01-12 Thread Gohan
IOnClickHandler { protected oncomponenttag(tag) { tag.put(onclick).urlfor(IOnClickHandler.INTERFACE); } public void onclick() { whatever(); } } -igor On Mon, Jan 12, 2009 at 2:18 AM, Gohan hal...@gmail.com wrote: Hi, I have a DataView using a custom Item that I create

Re: hot redeploy of java classes

2007-10-05 Thread Gohan
It's also possible to hotswap classes using a java agent. And if you're using java6 it's even possible to start an agent without specifying anything at the command line (the trick is that you need to get the java process id). Mr Mean wrote: Hot reloading of classes is already supported in

How to use form method=get?

2007-08-07 Thread Gohan
Hi, I have a simple HTML file that contains: form wicket:id=form method=get ... /form However, wicket seems to change the form method from get to post. Is there a way to stop wicket from changing the method to post? I need to use get because the application should work from a mobile phone and

Re: How to use form method=get?

2007-08-07 Thread Gohan
I've tried extending Form and adding tag.put(method, get) in onComponentTag(..), but this doesn't work either. The page gets rendered as with form method=get but submits won't work. Is this possible achieve? -- View this message in context:

Re: How to use form method=get?

2007-08-07 Thread Gohan
Yes, that's exactly what I did. And unfortunately it doesn't seem to work. Martijn Dashorst wrote: Have you tried adding it *after* the super.onComponentTag() ? Martijn On 8/7/07, Gohan [EMAIL PROTECTED] wrote: I've tried extending Form and adding tag.put(method, get

Re: How to use form method=get?

2007-08-07 Thread Gohan
Btw I'm using wicket 1.2.6. Gohan wrote: Yes, that's exactly what I did. And unfortunately it doesn't seem to work. Martijn Dashorst wrote: Have you tried adding it *after* the super.onComponentTag() ? Martijn On 8/7/07, Gohan [EMAIL PROTECTED] wrote: I've tried extending

Re: How to use form method=get?

2007-08-07 Thread Gohan
I'll open a jira issue tomorrow morning when I have a bit more time. Do you have a clue what's might be causing the behavior? Perhaps I can work my way around it somehow (like creating my own wicket version). I'd love for this to work, otherwise we may be forced to switch to another framework.