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
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
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
It works well when I don't provide the complete path !
Thank you a lot Mike !
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
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(){
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");
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 =
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
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.
you can find it here : https://issues.apache.org/jira/browse/WICKET-3973
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...
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(&
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
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 ?
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
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
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
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
nel modulePanel = (ModuleContentPanel)
modalWindowQuestionnaire.get(modalWindowQuestionnaire.getContentId());
Component module = modulePanel.get("module");
module = modulePanel.get("module");
return module;
}
2011/7/29 Mathilde Pellerin
&g
I tried your solution Andrea :
- just one modal window :
modalWindow = new ModalWindowE4N("modalQuestionnaire", "");
questionnaireContentPanel = new
QuestionnaireContentPanel(modalWindow.getContentId(), this);
modalWindow.setContent(questionnaireContentPanel);
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
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...
vascript("Wicket.Window.unloadConfirmation = false;");
moduleContentPanel.initialiserModule(qCourant);
modalModule.setTitle("Module "+qCourant.getTitre());
modalModule.show(target);
}
};
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> FormTester formTester =
>> tester.newFormTester(loginForm.getPageRelativePath());
>> formTester.setValue("membreId", "benj");
>> formTester.setValue("password", "password");
>> formTester.submit("ajaxSubmitLogin");
>>
>&g
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
; > <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
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
}
>>
>> @Override
>> protected void onError(AjaxRequestTarget target, Form
>> form) {
>> target.addComponent(feedBackPanel);
>> }
>> };
>> loginForm.add(submitbutton);
>>
>>
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
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
>>
>>
>
>
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
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&
}
};
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
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-
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,
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
>
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
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
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.
>
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
56 matches
Mail list logo