Re: Changing model state from another thread

2009-01-22 Thread Gohan
This worked perfectly. Gohan wrote: > > 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

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: http://www.nabble.com/Changing-

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 W

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: What could be wrong? /Johan -- View this messag

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 la

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

2009-01-13 Thread Gohan
/Johan igor.vaynberg wrote: > > ILinkListener > > -igor > > On Mon, Jan 12, 2009 at 10:45 PM, Gohan 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: >

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: http://www.nabble.com/Several-Ajax-features-doesn%27t-seem-to-work-in-Wicket-1.3.5-and-Firefox-3.0.5-tp2143321

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 (.NE

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: http://www.nabble.com/Several-Ajax-featu

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 http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wic

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 a

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. /Jo

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

2009-01-12 Thread Gohan
te: > > class myitem extends item implements IOnClickHandler { >protected oncomponenttag(tag) { >tag.put("onclick").urlfor(IOnClickHandler.INTERFACE); > } > > public void onclick() { > whatever(); > } > } > > -igor > > On

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: http://www.nabble.com/FileUpload-broken-in-Firefox-3.0.5

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 th

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

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. T

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() ? >> >> Mar

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 trie

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: http://www.nabble.com/How-to-use-form-method%3

How to use form method="get"?

2007-08-07 Thread Gohan
Hi, I have a simple HTML file that contains: ... 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 it seems like many browsers doesn't

Re: Feedback is not dispayled in ajax submit

2007-08-03 Thread Gohan
That must be it. I'll try it out. Thanks! Damian Mendez Romera wrote: > > You must override the onError method and add a > target.addComponent(feedback) :) > > Gohan wrote: >> I cannot seem to get the Feedback panel to be displayed on a Form submit. >> >&g

Feedback is not dispayled in ajax submit

2007-08-03 Thread Gohan
I cannot seem to get the Feedback panel to be displayed on a Form submit. I have a custom form component that extends Form to which I'm adding an AjaxSubmitButton using: add(new AjaxSubmitButton("submit", this) { private static final long serialVersionUID = 4557185412512174512L;