Re: how to use getAjaxCallDecorator with AjaxButton ?

2011-09-28 Thread Mathilde Pellerin
Ok, I understand. Thanks, it works well now. 2011/9/28 Mathilde Pellerin > Hi all, > > I want to generate a Line chart (from Google Visualization API) when I > submit a form. > To do that, I used getAjaxCallDecorator like this : > > AjaxButton submit = n

how to use getAjaxCallDecorator with AjaxButton ?

2011-09-28 Thread Mathilde Pellerin
Hi all, I want to generate a Line chart (from Google Visualization API) when I submit a form. To do that, I used getAjaxCallDecorator like this : AjaxButton submit = new AjaxButton("submit") { private int agePersonne; private double risque; @Override

upgrade from version 1.4.17 to 1.4.18 : a test broken

2011-09-07 Thread Mathilde Pellerin
Hi all, when I upgrade my application from wicket version 1.4.17 to version 1.4.18, there is one test which fails. When I test application manually, there is no problem, so I think there is a problem inside the test. this is the test which failed with 1.4.18 : @Test public void testStory

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mathilde Pellerin
It works well when I don't provide the complete path ! Thank you a lot Mike !

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mathilde Pellerin
Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){ Questionnaire questionnaire = serviceQuestionnaire.findBytitre("Questionnaire

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink), but then there is no Ajax. This is the entire test, maybe it can help : @SuppressWarnings("unchecked") @Test @Transactional @Rollback public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestionnaire:genre:femme"); TagTester tagHomme = tester.getTagByWicketId("formCreationQuestionnaire:genre:homme");

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme = tester.getTagByWicketId("formCreationQuestionnaire:genre:femme"); TagTester tagHomme =

how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
ne of radio is checked. It happen when I fill the form with existant Questionnaire : radiogroup model is ok, but none of radio is checked. Before correct this bug, I want to reproduce it in test, but I didn't find how to see if a radio is checked or not : I didn't find any method like &qu

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
problem solved on Jira : I used formTester.setValue() instead of formTester.setFile() in my tests. With FormTester.setFile() it works well. Thank you Martin for your help.

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
you can find it here : https://issues.apache.org/jira/browse/WICKET-3973

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
I use Wicket 1.4.17. Validation is not execute only when testing. I mean, only validation of my FileUploadField : maxSize error and my own abstractValidation errors are not executed. It's why I thought I made a mistake in my test...

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
wrong in my test. 2011/8/18 Mathilde Pellerin > Hi all, > > I have a little problem to test a form in my application. > I have a FileUploadField with an abstractValidator like that : > FileUploadField fuploadField = new > FileUploadField(&

onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
limitée à 50k."}); } but onValidate() method of my validator is never called. It's not an ajax form, and I can check error messages send by required fields without any problem. Is there something else to do to test our own validator? Thanks. M. -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: session closed when adding CSSPackageResource

2011-08-05 Thread Mathilde Pellerin
Wonderful ! it works with "*InjectorHolder.getInjector().inject(this);*". Thank to you all. Can someone could explain to me why I need a specific LoadableDetachableModel only when I add CSSPackageResource to my modal window ?

Re: session closed when adding CSSPackageResource

2011-08-05 Thread Mathilde Pellerin
Ok, so I try with your method. This is my model : public class QuestionnaireModel extends LoadableDetachableModel { @SpringBean private ServiceQuestionnaire serviceQuestionnaire; private Long id; public QuestionnaireModel(Long primaryKey) { id = primaryKey; } @Ove

Re: session closed when adding CSSPackageResource

2011-08-05 Thread Mathilde Pellerin
Hi Dan, I followed your advise : I change Questionnaire so it is not serializable and errors appeared in my page for this line : item.add(new BoutonRemplirQuestionnaire("boutonQuestionnaire", new Model(q))); and it's coherent because it's when I click on this AjaxLink that I have the first error

session closed when adding CSSPackageResource

2011-08-04 Thread Mathilde Pellerin
is line, everything works well), and I don't understand why. What am I doing wrong? Thanks M. -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: show modal window without clicking on ajaxLink

2011-08-01 Thread Mathilde Pellerin
Thank you very much Andrea. Now unit tests are OK and it works well when I test it manually. 2011/8/1 Mathilde Pellerin > I use Wicket 1.4.17. > I tried with replaceWith like this : > //affichage du module interactif > String idContent = qPage.ge

Re: show modal window without clicking on ajaxLink

2011-08-01 Thread Mathilde Pellerin
nel modulePanel = (ModuleContentPanel) modalWindowQuestionnaire.get(modalWindowQuestionnaire.getContentId()); Component module = modulePanel.get("module"); module = modulePanel.get("module"); return module; } 2011/7/29 Mathilde Pellerin &g

Re: show modal window without clicking on ajaxLink

2011-07-29 Thread Mathilde Pellerin
I tried your solution Andrea : - just one modal window : modalWindow = new ModalWindowE4N("modalQuestionnaire", ""); questionnaireContentPanel = new QuestionnaireContentPanel(modalWindow.getContentId(), this); modalWindow.setContent(questionnaireContentPanel);

Re: show modal window without clicking on ajaxLink

2011-07-29 Thread Mathilde Pellerin
dn't be empty thanks to method initialiserModule) I don't understand what happen, so if you have an idea, let me know... 2011/7/29 Mathilde Pellerin > Thanks a lot for your answer. > The solution of Sven Meier works well. > > Sometimes I wonder why I always try complex solut

Re: show modal window without clicking on ajaxLink

2011-07-29 Thread Mathilde Pellerin
Thanks a lot for your answer. The solution of Sven Meier works well. Sometimes I wonder why I always try complex solutions instead of simplest one...

show modal window without clicking on ajaxLink

2011-07-29 Thread Mathilde Pellerin
vascript("Wicket.Window.unloadConfirmation = false;"); moduleContentPanel.initialiserModule(qCourant); modalModule.setTitle("Module "+qCourant.getTitre()); modalModule.show(target); } };

enable submit button obly when all fields are filled

2011-07-19 Thread Mathilde Pellerin
w how to do that. Is there a method like AjaxFormComponentUpdatingBehavior but for entire form? thanks -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: infos message not rendering in feedback panel whereas error messages are rendered

2011-06-17 Thread Mathilde Pellerin
ld.add(new AjaxFormComponentValidationTextField("onkeyup", boutonEnregistrerInfos, feedbackPanelTaille)); but it doesn't work : error is still rendered when I submit the form... 2011/6/17 Martin Grigorov > use AjaxFormComponentUpdatingBehavior for the TextField > > On Fri, Jun 17, 2

Re: infos message not rendering in feedback panel whereas error messages are rendered

2011-06-17 Thread Mathilde Pellerin
t use target.addComponent( myFeedbackPanel) like I do for the submit button. Is there a way to do this? 2011/6/17 İzlem Gözükeleş > you should add target.addComponent(feedbackPanelPassword) for onSubmit > method. > > > On Fri, Jun 17, 2011 at 10:34 AM, Mathilde Pellerin < > mathilde.p

infos message not rendering in feedback panel whereas error messages are rendered

2011-06-17 Thread Mathilde Pellerin
Panel) like I do for the submit button. Is there a way to do this? Thanks -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: Component-targetted feedback message was left unrendered even if I add Feedback Panel

2011-06-10 Thread Mathilde Pellerin
s Ajax interfering with feedback Panel? >> >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Mathi

Re: Component-targetted feedback message was left unrendered even if I add Feedback Panel

2011-06-10 Thread Mathilde Pellerin
I don't have any ListView, but I use Ajax for form submitting. Is Ajax interfering with feedback Panel? 2011/6/10 Andrea Del Bene > Hi Mathilde, > > have you got any ListView component in your form? Do you use AJAX for form > submitting? > > Hi all, >> >> I have a form which can send error mes

Component-targetted feedback message was left unrendered even if I add Feedback Panel

2011-06-10 Thread Mathilde Pellerin
rstand why, because in another page my feedbackPanel works well : the only difference is that it is in a panel component. But in wicket documentation it doesn't seem necessary to have panel component to feedbackPanel works... Thanks. -- *Mathilde Pellerin* Ingénieur en développement de logi

Re: setEnabled(true) doesn't work on onUpdate method

2011-06-10 Thread Mathilde Pellerin
of course, it works. Thanks a lot ! 2011/6/10 Martin Grigorov > On Fri, Jun 10, 2011 at 9:42 AM, Mathilde Pellerin > wrote: > > Thanks for your answer, it works with > > target.addComponent(submitButton); > > > > one more little question : how can I test my form w

Re: setEnabled(true) doesn't work on onUpdate method

2011-06-10 Thread Mathilde Pellerin
Thanks for your answer, it works with target.addComponent(submitButton); one more little question : how can I test my form with wicket tester? Because formTester.setValue doesn't send "keyup" event... so my button is still disable when I test my form with JUnit and WicketTester. I try with : teste

setEnabled(true) doesn't work on onUpdate method

2011-06-09 Thread Mathilde Pellerin
final Button submitButton = new Button("submitButton"); submitButton.setEnabled(false); I don't understand why this code doesn't work because I saw similar code on the Web that seems to work. Thanks for your help. -- *Mathilde Pellerin* Ingénieur en

Re: How to initialize database with Spring in wicketTester/JUnit class?

2011-05-31 Thread Mathilde Pellerin
My mistake : I tried to do integration test with mocks... I think I have to use @ContextConfiguration instead ApplicationContextMock... 2011/5/31 Mathilde Pellerin > Hi all, > > I have a Wicket application which works with Spring, JPA and Hibernate. I > used this archetype t

How to initialize database with Spring in wicketTester/JUnit class?

2011-05-31 Thread Mathilde Pellerin
initialized. So how can I initialize my database ? Thanks -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: how handle confirm password field with CompoundPropertyModel ?

2011-05-29 Thread Mathilde Pellerin
ple should work just fine: > > > PasswordTextField confirmPwdField = new > PasswordTextField("confirmPassword", new Model()); > > What do you mean by "it didn't work" ? > > Sven > > > On 05/29/2011 11:16 AM, Mathilde Pellerin wrote: > >> Hi a

how handle confirm password field with CompoundPropertyModel ?

2011-05-29 Thread Mathilde Pellerin
models in one form, is there a way to have a confirm password field without have a confirmPassword attribute in class Membre? Thanks Mathilde -- *Mathilde Pellerin* Ingénieur en développement de logiciel STATLIFE tel : 01.42.11.64.88 mail : mathilde.pelle...@statlife.fr

Re: WicketTester and error messages

2011-05-27 Thread Mathilde Pellerin
Yeah ! it's work : my mistake, I wrote "onClick" and not "onclick"... Thanks a lot for your help ! 2011/5/27 Martin Grigorov > AjaxButton has AjaxFormSubmitBehavior which is AjaxEventBehavior > It should be able to find it > > On Fri, May 27, 2011 at

Re: WicketTester and error messages

2011-05-27 Thread Mathilde Pellerin
>> FormTester formTester = >> tester.newFormTester(loginForm.getPageRelativePath()); >> formTester.setValue("membreId", "benj"); >> formTester.setValue("password", "password"); >> formTester.submit("ajaxSubmitLogin"); >> >&g

Re: WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
27;ll have to find a workaround. Or you Wicket 1.5 RC4.2 > where this problem is solved... > > On Thu, May 26, 2011 at 3:49 PM, Mathilde Pellerin > wrote: > > I don't know, it's possible... but honestly, I'm too "newbie" to judge > that. > > And

Re: WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
; > <http://www.mathilde-pellerin.fr/> http://www.mathilde-pellerin.fr/ > Mes > > liens : <http://www.viadeo.com/fr/profile/mathilde.pellerin> > > <http://fr.linkedin.com/in/mathildepellerin> > > > > > > -- > Martin Grigorov > jWeek

WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
ester.setValue("password", "password"); formTester.submit("ajaxSubmitLogin"); tester.assertErrorMessages(new String[] {"Identifiant ou mot de passe incorrect"}); -- Mathilde Pellerin Ingénieur en Génie Logiciel Tél mobile : 06.60.78.79.03 E-mail

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
} >> >> @Override >> protected void onError(AjaxRequestTarget target, Form >> form) { >> target.addComponent(feedBackPanel); >> } >> }; >> loginForm.add(submitbutton); >> >>

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
ionContentPanel loginPanel = (ConnexionContentPanel) modalWindow.get(modalWindow.getContentId()); Form loginForm = (Form) loginPanel.get("loginForm"); FormTester formTester = tester.newFormTester(loginForm.getPageRelativePath()); and it works. Thanks for your help. 20

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
nd >> feedbackPanel >> is also null). >> I begin with Wiket and I really don't understand why it doesn't work. >> What am I doing wrong? >> >> Thanks >> Mathilde >> >> > >

problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
Hi all, I have a modal window with a login form inside that works fine when I test it manually. I try to test it with wicket tester since yesterday. I saw in some mails of this list that "there is nothing special in testing modal windows". I tried this : tester.startPage(AccueilPage.class

Re: form in modal window

2011-05-25 Thread Mathilde Pellerin
Ok, it's fix with an ajaxButton. The first time that I tried, I forgot a cast, that's why it didn't work. 2011/5/25 Mathilde Pellerin > Thanks for answer. > > Sorry for the first question : it was not the main problem so I didn't > search the solution. Now it&

Re: form in modal window

2011-05-25 Thread Mathilde Pellerin
} }; loginForm.add(new TextField("membreId")); loginForm.add(new PasswordTextField("password")); add(loginForm); } } 2011/5/25 Martin Grigorov > Translate the message to English and search in Nabble/Google. > It has b

form in modal window

2011-05-25 Thread Mathilde Pellerin
loginForm.add(new PasswordTextField("password")); add(loginForm); } how can I avoid the confirmation message, and how can I prevent the modal to disappear whan login failed? thanks. Mathilde -- Mathilde Pellerin Ingénieur en Génie Logiciel Tél mobile : 06.60.78.79.03 E-

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
add(CSSPackageResource.getHeaderContribution(BasePageVisiteur.class, > "style.css")); > means that style.css should be next to BasePageVisiteur.class in the > classpath. Ensure your IDE copies the .css (and images) in the build path. > > On Fri, May 20, 2011 at 12:44 PM,

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
nly very simple to do that. I don't understand what am I doing wrong. 2011/5/20 Martin Grigorov > On Fri, May 20, 2011 at 11:48 AM, Mathilde Pellerin < > mathilde.pelle...@gmail.com> wrote: > > > it was in the webapp folder, so I put it in the WEB-INF folder and I put >

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
uld either be in WEB-INF/ folder or you should use .../> > > On Fri, May 20, 2011 at 11:27 AM, Mathilde Pellerin < > mathilde.pelle...@gmail.com> wrote: > > > You are right again : when I remove the css file of ma BasePage, > errorPage > > constructor is not call

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
Grigorov > You have a resource with broken url. Some css/js/image cannot be found. > > On Fri, May 20, 2011 at 11:00 AM, Mathilde Pellerin < > mathilde.pelle...@gmail.com> wrote: > > > thanks for your answer. > > You are right : the second call is not due to Acc

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
ge's constructor and see the thread stack. > > > On Fri, May 20, 2011 at 10:17 AM, Mathilde Pellerin < > mathilde.pelle...@statlife.fr> wrote: > > > Hi all, > > > > I am new in wicket and I encountering a problem with my Markup > inheritance. >

Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
esn't appear : it is added by AccueilPage but then, it remove by BasePage constructor I guess. So I wonder : why BasePage constructor is called after AccueilPage constructor? What am I doing wrong? Thanks Kind regards, Mathilde -- *Mathilde Pellerin* Ingénieur en développement de logici