Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-12 Thread vov
Thanks. It working. But the button visibility will never be changed and button will be visible in this case even if 'visibleFlag' changed to false. This mean that is your change 'visibleFlag' to false than method onSubmit() will be call -- View this message in context:

Setting the RadioChoice with selected value -

2010-07-12 Thread Nivedan Nadaraj
Hi All The problem: This seems pretty basic but I have some issues when I want the UI to be set with the value from the Model. Any pointers would be great. My Model has a property of type Boolean.On the UI I represent this as Yes and No using RadioChoice. When I perist this enitity, the Yes is

Re: Setting the RadioChoice with selected value -

2010-07-12 Thread sander v F
in this case 'autoGenerateSubjectKey' should contain Yes or No to be selected. You could change the property type of 'autoGenerateSubjectKey' from Boolean to String, but i think it is better to change the type of the choices to Boolean: ListBoolean list = new ArrayListBoolean();

Re: Setting the RadioChoice with selected value -

2010-07-12 Thread Nivedan Nadaraj
That helped a lot thank you.It works now. Earlier, (prior to your response) I went about changing the type of Radio and List to Boolean but used the default ChoiceRenderer and I was not sure what the ID and displayValue will be for a field like the one I was using. Thanks for the time. Cheers

Re: AjaxButton documentation error?

2010-07-12 Thread Craig McIlwee
Yeah, that's been wrong for a really long time, maybe always. Whenever I point coworkers to that class I tell them to ignore that comment. Just checked the code for AjaxButton, and there is no form.add(this) call anywhere. Craig - Original Message - From: Chris Colman

Re: Panel update with Ajax

2010-07-12 Thread Mansour Al Akeel
Thank you. It worked. But I am missing something. see the comments please. On Sun, Jul 11, 2010 at 6:35 PM, Sven Meier s...@meiers.net wrote: Hi, a usual error when working with models:    new PropertyModelString(model, id) Note you're passing around a reference to the initial model.

Consecutive AJAX operations lead to Page Expired

2010-07-12 Thread asarpe
Hello all, I recently encountered a problem where two consecutive AJAX requests from inside a panel, lead to a Page Expired exception. More detailed: The panel Panel contains a form Form and a ListView LW. Form has an AjaxButton who's onSubmit method is implemented to add the content of the

Re: Question - Does Wicket really initialize a page instance once?

2010-07-12 Thread Ian Marshall
I have solved my problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-Does-Wicket-really-initialize-a-page-instance-once-tp2281200p2286113.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using comet to find all clients using a page

2010-07-12 Thread fachhoch
I have a Page called A , now I need sessions of all the browsers which have Page A opened is this possible ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2286133.html Sent from the Wicket - User

refreshing fragment

2010-07-12 Thread Anna Simbirtsev
Hi, I have a listview inside a fragment. Listview has a text field comment. Fragment f = new Fragment(fragment, fragmentid, form2); f.setOutputMarkupId(true); form.add(f); final ListViewLoan lv = new ListViewLoan(loans, data .getLoans()) { private

Re: refreshing fragment

2010-07-12 Thread Martin Makundi
what is your fragment about ? container div does it have markupid? 2010/7/12 Anna Simbirtsev asimbirt...@gmail.com: Hi, I have a listview inside a fragment. Listview has a text field comment. Fragment f = new Fragment(fragment, fragmentid, form2);        f.setOutputMarkupId(true);        

Re: refreshing fragment

2010-07-12 Thread Anna Simbirtsev
span wicket:id=fragment class=results-tablefragments contents come here/span wicket:fragment wicket:id=fragmentid wicket:enclosure child=loans table id=results-table thead tr th

Re: refreshing fragment

2010-07-12 Thread Martin Makundi
Is your component visible in browser source when your refresh it ?? Ajax cannot referesh invisible components ** Martin 2010/7/12 Anna Simbirtsev asimbirt...@gmail.com: span wicket:id=fragment class=results-tablefragments contents come here/span             wicket:fragment

Re: using comet to find all clients using a page

2010-07-12 Thread fachhoch
I have a Page A , several browsers might have page A opened. based on an admin action I want to open a popup in page A ie if admin performs an action I query all Browsers connected to my server if they have page A opened then open a modal window in all those pages is this possible ?

Re: refreshing fragment

2010-07-12 Thread Anna Simbirtsev
I took out the wicket enclosure, still does not work. The value in the textfield still stays the same, instead of being empty. Printing out loans.getComment(), prints an empty value. On Mon, Jul 12, 2010 at 11:01 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Is your component

Re: refreshing fragment

2010-07-12 Thread Martin Makundi
No validation error? ** Martin 2010/7/12 Anna Simbirtsev asimbirt...@gmail.com: I took out the wicket enclosure, still does not work. The value in the textfield still stays the same, instead of being empty. Printing out loans.getComment(), prints an empty value. On Mon, Jul 12, 2010 at

Re: using comet to find all clients using a page

2010-07-12 Thread Martin Grigorov
Take a look at wicketstuff-core/push project and its examples. All you need is to subscribe a listener to a topic and when the admin makes the action just send a message to that topic. Cometd will notify all listeners and there you can do whatever you need. On Mon, 2010-07-12 at 08:05 -0700,

Re: using comet to find all clients using a page

2010-07-12 Thread vineetsemwal
you are already using comet,just create a event when admin does some action, you must be having channel listener corresponding to a component in page. when a event is received ,do your stuff .. -- regards, Vineet Semwal -- View this message in context:

Re: refreshing fragment

2010-07-12 Thread Anna Simbirtsev
No, I don't think so.:( On Mon, Jul 12, 2010 at 11:15 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: No validation error? ** Martin 2010/7/12 Anna Simbirtsev asimbirt...@gmail.com: I took out the wicket enclosure, still does not work. The value in the textfield still

Re: Consecutive AJAX operations lead to Page Expired

2010-07-12 Thread Igor Vaynberg
quickstart or it didnt happen -igor On Mon, Jul 12, 2010 at 5:57 AM, asarpe asa...@gmail.com wrote: Hello all, I recently encountered a problem where two consecutive AJAX requests from inside a panel, lead to a Page Expired exception. More detailed: The panel Panel contains a form Form

Re: refreshing fragment

2010-07-12 Thread Martin Makundi
Send me quickstart of your code so I can have a look martin.makundi / koodaripalvelut.com It's quite tiresome to try to figure it out from a post that doesn't even compile ;] Make it a junit test that fails at your bug. ** Martin 2010/7/12 Anna Simbirtsev asimbirt...@gmail.com: No, I don't

Re: Panel update with Ajax

2010-07-12 Thread Sven Meier
Hi, When I use this, the component class should provide the properties. This part I don't understand. PropertyModel doesn't care which object holds the property. In your code the ProductDetails panel has a property model, that's all. Sven Am 12.07.2010 14:16, schrieb Mansour Al Akeel:

Re: Model not Updating on Multiple Form Submits

2010-07-12 Thread jbrookover
Hello, Just a follow up on this from awhile back, since someone might encounter it again. The problem, which someone pointed out off-list, is that triggering an ajax form submit using jQuery does a complete non-Ajax page load, but then dumps that page. So, the model was being updated on

Re: using comet to find all clients using a page

2010-07-12 Thread Rodolfo Hansen
If they have javascript enabled and the comet loads correctly for them: Yes. On Fri, 2010-07-09 at 05:13 -0700, fachhoch wrote: using comet will I be able to get total number of clients using some page ? - To unsubscribe,

new feature in trunk and branch: Component#onInitialize()

2010-07-12 Thread Igor Vaynberg
there have been a lot of threads over the years about having some place to initialize components other than constructors. there are a few problems with constructors, such as not being able to call getPage() or non-final methods. historically we have refused to implement this because we have

Re: new feature in trunk and branch: Component#onInitialize()

2010-07-12 Thread James Carman
Very cool. Thanks, Wicket Team! On Mon, Jul 12, 2010 at 10:09 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: there have been a lot of threads over the years about having some place to initialize components other than constructors. there are a few problems with constructors, such as not

Re: Panel update with Ajax

2010-07-12 Thread Mansour Al Akeel
Thank you. I didn't know that wicket will pick the properties without getters. I thought I have to create a getter for each property before it's seen. Now the remaining issues: When I use soemthing like : add(new Label(id, new PropertyModelString(this, model.id))); I get an

Re: new feature in trunk and branch: Component#onInitialize()

2010-07-12 Thread vineetsemwal
very good feature,thanks!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-tp2286924p2286961.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: new feature in trunk and branch: Component#onInitialize()

2010-07-12 Thread Fernando Wermus
thanks you all On Tue, Jul 13, 2010 at 12:19 AM, vineetsemwal vineetsemwal1...@gmail.comwrote: very good feature,thanks!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-tp2286924p2286961.html Sent from the