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
> a spin.
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-model-state-from-another-thread-tp21584253p21600845.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-model-state-from-another-thread-tp21584253p21584547.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
WebMarkupContainer should be set to visible when the job has finished. My
first approach was to just try to update the components directly from the
listener but that doesn't work since you cannot update a Wicket component
from another thread. My next approach was then to create a level of
indirection by creating a mutable Wicket model object that can be shared
between the two threads. Having added a AjaxSelfUpdatingTimerBehavior to the
label the text was updated correctly with the status changes when the state
of the shared model object was updated. But setting the visibility of the
WebMarkupContainer cannot be done in this way since you explicitly need to
call setVisible on the instance. So the question is, how should I go about?

One approach that I'm thinking of is to add some sort of ajax call-back
method mechanism to the web page that checks a "visbility" state in the
shared model on a frequent time-interval. If the state has changed then
perform whatever logic needed. But how do I make Wicket invoke such a
call-back method every X second? Is this a reasonable approach to solving
these kind of problems?

/Johan
-- 
View this message in context: 
http://www.nabble.com/Changing-model-state-from-another-thread-tp21584253p21584253.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21580529.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

Thanks
-- 
View this message in context: 
http://www.nabble.com/Updating-label-using-ajax-on-event-tp21540479p21540479.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

2009-01-13 Thread Gohan

Thanks but how does "tag.put("onclick").urlfor(IOnClickHandler.INTERFACE);"
looks like in Wicket 1.3.5? I've blindly tried "tag.put("onclick",
RequestCycle.get().urlFor(this,ILinkListener.INTERFACE, null));" but it
doesn't seem to work. 

/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:
>>
>> item.add(new AjaxEventBehavior("onclick") {
>>private static final long
>> serialVersionUID = 3710904016938478920L;
>>
>>@Override
>>protected void
>> onEvent(AjaxRequestTarget target) {
>>   
>> System.out.println("Clicked!");
>>selected =
>> (MyDomainObject) getParent().getModelObject();
>>}
>> });
>>
>> but it doesn't seem to work. In Internet Explorer "Clicked!" is printed
>> but
>> getParent().getModelObject() always returns null. In Firefox 3.0.5
>> nothing
>> happens at all.
>>
>> /Johan
>>
>>
>> igor.vaynberg wrote:
>>>
>>> class myitem extends item implements 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  wrote:
>>>>
>>>> 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 this message in context:
>>>> http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21430291.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21440788.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-tp21433218p21433819.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 (.NET CLR
3.5.30729). 
-- 
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-tp21433218p21433639.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-features-doesn%27t-seem-to-work-in-Wicket-1.3.5-and-Firefox-3.0.5-tp21433218p21433419.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.wicket.examples.repeater.AjaxDataTablePage
or
http://www.wicket-library.com/wicket-examples/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage.
Does anyone else experience the same problem? Does anyone know if it works
correctly in Wicket 1.4-rc1?
-- 
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-tp21433218p21433218.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 even if there were that's not the method I'd like to call.
Add like to call the add method of the Set itself.

-- 
View this message in context: 
http://www.nabble.com/PropertyModel-that-add-read-element-from-collection-tp21432582p21433055.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
-- 
View this message in context: 
http://www.nabble.com/PropertyModel-that-add-read-element-from-collection-tp21432582p21432582.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

2009-01-12 Thread Gohan

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 
serialVersionUID = 3710904016938478920L;

@Override
protected void 
onEvent(AjaxRequestTarget target) {
System.out.println("Clicked!");
selected = (MyDomainObject) 
getParent().getModelObject();
}
});

but it doesn't seem to work. In Internet Explorer "Clicked!" is printed but
getParent().getModelObject() always returns null. In Firefox 3.0.5 nothing
happens at all.

/Johan


igor.vaynberg wrote:
> 
> class myitem extends item implements 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  wrote:
>>
>> 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 this message in context:
>> http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21430291.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-tp21372466p21416052.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 this message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the jvm. it just
> requires a debug connection if i understand it all correctly. for
> instance we use the sysdeo tomcat plugin in eclipse which starts
> tomcat in debug mode every time we change some code tomcat
> automatically uses the new class. Well up till a certain point some
> changes cannot be hot swapped. I think the same is true for jetty if
> you run it in debug mode.
> 
> Maurice
> 
> On 10/5/07, Artur W. <[EMAIL PROTECTED]> wrote:
>>
>> Hi!
>>
>> I know that Wicket in development mode does hot redeploy of html
>> templates.
>> Is it possible to configure it to does a hot redeploy of java classes
>> too?
>> It would boost the development time!!
>>
>> Thanks,
>> Artur
>>
>> --
>> View this message in context:
>> http://www.nabble.com/hot-redeploy-of-java-classes-tf4573767.html#a13055319
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hot-redeploy-of-java-classes-tf4573767.html#a13059962
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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.

Thanks


Eelco Hillenius wrote:
> 
>> 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?
> 
> It looks like you can override method 'getMethod' in your form and let
> it return "get".
> 
> I actually think it is a bug that Wicket doesn't try to determine the
> current value first. You mind opening up a JIRA issue for it?
> 
> Eelco
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12041089
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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 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%3D%22get%22--tf4229581.html#a12035690
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> 
>> 
>> -- 
>> Wicket joins the Apache Software Foundation as Apache Wicket
>> Apache Wicket 1.3.0-beta2 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12040953
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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")" 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%3D%22get%22--tf4229581.html#a12035690
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Wicket joins the Apache Software Foundation as Apache Wicket
> Apache Wicket 1.3.0-beta2 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12040938
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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%3D%22get%22--tf4229581.html#a12035690
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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 support post. 

Everything works if I manually takes a copy of the generated page and change
the method back from post to get. But this is not really an option if you
have many pages.

Thanks


-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12032581
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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. 
>>
>> 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;
>>  @Override
>>  protected void onSubmit(AjaxRequestTarget target, Form form) {
>>  fromDate = (Date) fromDateField.getConvertedInput();
>>  toDate = (Date) toDateField.getConvertedInput();
>>
>>  target.addComponent(nbrOfAuthenticationsChart);
>>  target.addComponent(feedbackPanel);
>>  }
>>  });
>>
>> The feedback panel is added using (it's located outside the form in
>> another
>> component):
>> add(feedbackPanel = new FeedbackPanel("feedback"));
>> feedbackPanel.setOutputMarkupId(true);
>>
>> I've also added an AjaxFormValidatingBehavior to the form: 
>> AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick"); 
>> and I'm using a special form validator that extends AbstractFormValidator
>> that I've also added to the custom form.
>>
>> The ajax submission works when I press the submit button but there are no
>> form errors displayed if there are any errors. The problem seem to be
>> that
>> the feedback panel is never displayed and I cannot seem to figure out
>> why.
>> I'm using Wicket 1.2.6. I've looked in the example at
>> http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
>> but that example doesn't seem to work at all. 
>>
>> Could anyone give me a clue?
>>
>>
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feedback-is-not-dispayled-in-ajax-submit-tf4213023.html#a11986208
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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;
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
fromDate = (Date) fromDateField.getConvertedInput();
toDate = (Date) toDateField.getConvertedInput();

target.addComponent(nbrOfAuthenticationsChart);
target.addComponent(feedbackPanel);
}
 });

The feedback panel is added using (it's located outside the form in another
component):
add(feedbackPanel = new FeedbackPanel("feedback"));
feedbackPanel.setOutputMarkupId(true);

I've also added an AjaxFormValidatingBehavior to the form: 
AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick"); 
and I'm using a special form validator that extends AbstractFormValidator
that I've also added to the custom form.

The ajax submission works when I press the submit button but there are no
form errors displayed if there are any errors. The problem seem to be that
the feedback panel is never displayed and I cannot seem to figure out why.
I'm using Wicket 1.2.6. I've looked in the example at
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
but that example doesn't seem to work at all. 

Could anyone give me a clue?



-- 
View this message in context: 
http://www.nabble.com/Feedback-is-not-dispayled-in-ajax-submit-tf4213023.html#a11984924
Sent from the Wicket - User mailing list archive at Nabble.com.


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