AjaxButton onSubmit and Submit Form order...

2009-09-07 Thread Arnaud Garcia
Hi List, I want to add a custom anim gif while the page is rendering... To do this, I created an AjaxButton and a Form - In the AjaxButton submit method I setVisible my anim gif - In the form submit metho I call the setResponsePage If I remove the setResponsePage and I log something on the form

Reused Component with a form inside another form

2009-11-23 Thread Arnaud Garcia
Hello, Suppose that you have a simple one to one relationship for example: Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel

ListView and DropDownChoice reset all form fields ..

2010-02-22 Thread Arnaud Garcia
Hi List, If you create a simple Panel with a DropDownChoice where you put wantOnSelectionChangedNotifications to true and onSelectionChanged... JUST your select box is re-rendered when your selection change, others panel fields are not re-renderer...(which is good). BUT if you put your panel in

Re: ListView and DropDownChoice reset all form fields ..

2010-02-24 Thread Arnaud Garcia
://old.nabble.com/New-behavior:-AjaxFormSubmittingChangeListenerBehavior-td26201382.html ** Martin 2010/2/22 Arnaud Garcia arn...@imagemed-87.com: Hi List, If you create a simple Panel with a DropDownChoice where you put wantOnSelectionChangedNotifications to true and onSelectionChanged... JUST your

Re: DatePicker onblur

2010-03-11 Thread Arnaud Garcia
) { } }); } } Regards Vitek Arnaud Garcia wrote: Hi list ! I add an AjaxFormComponentUpdatingBehavior on my DateTextField to update my model on the fly... The updating behavior is based on the onblur event... it works well, but since I added a DatePicker to the dateTextField I can't

Re: DatePicker onblur

2010-03-11 Thread Arnaud Garcia
;-), sure !! 2010/3/10 Martin Makundi martin.maku...@koodaripalvelut.com ONCHANGE! 2010/3/10 Arnaud Garcia arn...@imagemed-87.com: Hi list ! I add an AjaxFormComponentUpdatingBehavior on my DateTextField to update my model on the fly... The updating behavior is based

change tr background color when ListView iterate....

2010-03-28 Thread Arnaud Garcia
Hello, Using a ListView on a tr html markup, I would like to alternate the background color of each new tr when the list iterate... I just find how to do this on the label inside the td... not on the tr level..., so just the background color of the title is changed and not the full line ! here

Re: change tr background color when ListView iterate....

2010-03-29 Thread Arnaud Garcia
) and: org.apache.wicket.markup.repeater.OddEvenItem. Cheers. On Sun, Mar 28, 2010 at 11:40 AM, Arnaud Garcia arn...@imagemed-87.com wrote: Hello, Using a ListView on a tr html markup, I would like to alternate the background color of each new tr when the list iterate... I just

Re: change tr background color when ListView iterate....

2010-03-30 Thread Arnaud Garcia
solution just works. Did you try it? Martijn On Mon, Mar 29, 2010 at 9:24 AM, Arnaud Garcia arn...@imagemed-87.com wrote: Hi, Defenitively it is more elegant to use the OddEvenItem object instead of using my boolean... but it doesn't change my problem... Changing the class of the items

DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
Hello, I have a simple DataView where each row has some labels and textfields. Each time the user enter in a textfield I would like to highlight the selected row. (The idea is to adapt the wicket stuff example (OIRPage.java) with an AjaxFormComponentUpdatingBehavior(onfocus) instead of a simple

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
, selected)); target.addComponent(item); } }); Arnaud 2010/4/6 Arnaud Garcia arn...@imagemed-87.com Hello, I have a simple DataView where each row has some labels and textfields. Each time the user enter in a textfield I would like

retrieve class value

2010-04-06 Thread Arnaud Garcia
Hello, It is pretty easy using SimpleAttributeModifier to set the class of a Label for example, but how to retrieve it ? My css classes due to lot of AjaxBehaviors change very often for a Label field and I would like to find the associated class before changing it ? thanks arnaud

Formating String strategy

2010-04-18 Thread Arnaud Garcia
Hello, I would like to format a text field as soon as the onblur event is fired. ( number: to XX XX XX XX) I tried lot of things and I have some questions to improve my wicket knowledge ;-) 0/ First I add a Validator because I want to be sure that my String is formated correctly. 1/

Wicket Cayenne

2010-04-24 Thread Arnaud Garcia
Hello, Does anyone knows how to set up Cayenne for wicket ? In my WicketPage I have : private DataContext ctxt = (DataContext) DataContext.getThreadObjectContext(); but, I don't think it is the good way, since I suppose wicket will serialized the full DataContext... (maybe I can put the

WicketTester and AjaxFormComponentUpdatingBehavior

2010-04-27 Thread Arnaud Garcia
Hello, There was a previous thread, but it is not clear for me..., I have something which is working, but I don't understand why : http://apache-wicket.1842946.n4.nabble.com/WicketTester-No-Form-onSubmit-when-using-Ajax-DropDownChoice-Component-td1877797.html#a1877797 So, when you want to test

assertNOTContains ?

2010-11-23 Thread Arnaud Garcia
Hello, With WicketTester how do check that a word is not present in the page... tester.assertContains(toto); // check is the word toto is in the page... I would like: tester.assertNotContains(toto); = To be sure, that I don't have this word on my page... thanks arnaud