Re: Page Expired to home or login instead of default?

2008-07-05 Thread Brill Pappin
Just tried it... seems to work as it should. thanks for your help. - Brill On 5-Jul-08, at 12:33 AM, David Leangen wrote: I can't seem to find anywhere, how I get wicket to automatically go to the home page instead of the Page Expired page when the session is invalidated (expires, or

ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
Hi - I am trying to integrate ajax behavior with a radio button such that whenever a radio button in a radio group is selected - an appropriate handler is invoked. Java: RadioGroup sex = new RadioGroup(sex); sex.add(new Radio(M, new Model(AgeValidator.SexEnum.MALE))); sex.add(new Radio(F,

Re: No effect of code until restarting netbeans.

2008-07-05 Thread Ayodeji Aladejebi
which version of netbeans are you using. I use NB6.1 and with a standard netbeans web project all you have to do is recompile your web project and right-click on project and then Run. It will deploy your changes alright. Only that after a while, tomcat will give you perm-gen error which will force

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Timo Rantalaiho
On Sat, 05 Jul 2008, Rakesh Sinha wrote: This does not seem to invoke the ajax code handler that I was expecting when I select an age in the front - end. Any idea what I am missing here. Check out which JavaScript event gets triggered on checking the radio button. It might be onclick instead

Re: generics

2008-07-05 Thread Timo Rantalaiho
On Fri, 04 Jul 2008, Matthijs Wensveen wrote: How do you cope with deeply nested model properties? For example: public class PersonViewer extends ComponentPerson { .. } some other component does: person.getOrders().get(0).setAmount(0); // first order for free (as in beer) I have no idea

Re: generics

2008-07-05 Thread Timo Rantalaiho
On Thu, 03 Jul 2008, Matej Knopp wrote: I'm gonna be -1 on removing model utility methods and default model slot from component until you suggest a clean and transparent way to support - compound (inherited) models - component assigned models - automatic detachment Fair enough, let's see

Validators for lists

2008-07-05 Thread atul singh
Can someone please suggest a way to use/extend the current validators to validate list of objects. The problem is i have to write code in the following manner and don't know if it is a good approach. EmailAddressValidator validator = EmailAddressValidator.getInstance(); for (final

PropertyModel implementing IComponentInheritedModel

2008-07-05 Thread Thomas Kappler
Hi, if I haven't overlooked something, there's no variant of PropertyModel implementing IComponentInheritedModel. IComponentInheritedModel demands only one method, wrapOnInheritance. Looking at the implementation of CompoundPropertyModel, wrapOnInheritance does nothing but return an

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
I changed the code to be AjaxFormComponentUpdatingBehavior (onclick) - but it still does not seem to work ( though , onclick *is* the right method to invoke from javascript ). The generated HTML does not seem to contain the javascript invocation for the particular event. I am suspecting something

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
Ok - my new code looks as follows: - RadioGroup sex = new RadioGroup(sex); Radio male = new Radio(M, new Model(SexEnum.MALE)); Radio female = new Radio(F, new Model(SexEnum.FEMALE)); sex.add(male.add(new AjaxEventBehavior(onchange) {

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
RadioGroup sex; //define as a member variable .. sex = new RadioGroup(sex, new Model(SexEnum.MALE) ) ; //important: the model of the radio group has to be the same as // the model for the individual radio members as well. Radio male = new Radio(M, new Model(SexEnum.MALE)); Radio female = new

calendar control for wicket ??

2008-07-05 Thread Rakesh Sinha
Hi - Just curious if there is a Calendar control / class associated with Wicket. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: calendar control for wicket ??

2008-07-05 Thread Ayodeji Aladejebi
are you talking about a DatePicker? On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha [EMAIL PROTECTED] wrote: Hi - Just curious if there is a Calendar control / class associated with Wicket. Thanks. - To unsubscribe, e-mail:

Re: calendar control for wicket ??

2008-07-05 Thread Rakesh Sinha
Thanks Ayodeji. import org.apache.wicket.extensions.yui.calendar.DateField; This does the trick. But a clarification though - I am using the default version as specified in the javadoc. java: dateField = new DateField(birthday); html: div wicket:id=birthday/div I need a couple of

Re: Validators for lists

2008-07-05 Thread Timo Rantalaiho
On Sun, 06 Jul 2008, atul singh wrote: Can someone please suggest a way to use/extend the current validators to validate list of objects. The problem is i have to write code in the following manner and don't know if it is a good approach. Your approach seems fine, though you could collect the

Re: PropertyModel implementing IComponentInheritedModel

2008-07-05 Thread Johan Compagner
Why should the propertymodel be an inherited? Propertymodel is assignable model. Compound is inherited. Property model isnt meant to be shared over multiple components thats why we have compound On 7/5/08, Thomas Kappler [EMAIL PROTECTED] wrote: Hi, if I haven't overlooked something, there's

Re: Validators for lists

2008-07-05 Thread Johan Compagner
So the list of objects is in this case multiple input fields? Why do that in a list, just give every email field that validator and let wicket be the one that iterates of the list. Then you also have much better feedback to the end user On 7/5/08, atul singh [EMAIL PROTECTED] wrote: Can someone