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: StaleObjectStateException got intercepted

2011-08-22 Thread Florian B.
Checking the type of exception during run time show that the Hibernate StaleObjectStateException was wrapped by a HibernateOptimisticLockingFailureException of the Spring framework. So catching the latter one worked as expected. Thanks for pushing me in the right direction! -- View this mes

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

2011-08-22 Thread Mike Mander
Am 22.08.2011 09:45, schrieb 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 questionnair

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

2011-08-22 Thread Mike Mander
Am 22.08.2011 13:27, schrieb Mike Mander: Am 22.08.2011 09:45, schrieb 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_VerificationInitialisationBouto

Feedback panel don't show messages of child component

2011-08-22 Thread Florian B.
I got some trouble with the FeedbackPanel. My scenario looks like this. I got a custom panel which can be added to a page. Within the panel I add a FeedbackPanel to show any errors that arise from the panel. The main content of the panel is a list to show entities from a database. To be able to d

Re: Feedback panel don't show messages of child component

2011-08-22 Thread Andrea Del Bene
Hi, try calling setReuseItem(true) on list. See ListView JavaDoc for further details (the WARNING paragraph) . I got some trouble with the FeedbackPanel. My scenario looks like this. I got a custom panel which can be added to a page. Within the panel I add a FeedbackPanel to show any errors th

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

2011-08-22 Thread Kent Tong
> In my unit test, I try to check what radio is selected, but I don't find > how... You may check out http://wicketpagetest.sourceforge.net which will work for this use case. - To unsubscribe, e-mail: users-unsubscr...@wicket.a

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: Menubar in wicket ?

2011-08-22 Thread aabfattah
Thanks I download it and copied it to maven local repository and the plugin was able to read it. On 22 August 2011 03:05, Bruno Borges [via Apache Wicket] < ml-node+3759220-470717262-260...@n4.nabble.com> wrote: > You can always download de JAR and install in your local maven repository. > > http

Re: Feedback panel don't show messages of child component

2011-08-22 Thread Florian B.
Mh, sorry I told you something wrong I'm not using a list but instead I'm using a DefaultDataTable with a SortableDataProvider. But I followed you advise and call setItemReuseStrategy(new ReuseIfModelsEqualStrategy()) on the table instead if setReuseItem(). Then I overwrote the equals() method of

modal page encoding

2011-08-22 Thread Anna Simbirtsev
Hi, Encoding issue in Wicket: we want to change encoding from "utf-8" to "iso-8859-01", after adding the following codes in application, it works for page, but doesn't work with modal page, which is still using 'utf-8' encoding. getRequestCycleSettings().setResponseRequestEncoding("iso-8859-1");

AJAXDownload Example Doesn't Support Content-Disposition (Save As)

2011-08-22 Thread eugenebalt
I followed the AJAXDownload example on how to do an Ajax-based file download: https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html It works, but my problem is, I can't get it to support the Content-Disposition header "attachment" to do the Save As dialog box. The file op

Re: AJAXDownload Example Doesn't Support Content-Disposition (Save As)

2011-08-22 Thread Martin Grigorov
see org.apache.wicket.request.target.resource.ResourceStreamRequestTarget.configure(RequestCycle, Response, IResourceStream) On Mon, Aug 22, 2011 at 5:41 PM, eugenebalt wrote: > I followed the AJAXDownload example on how to do an Ajax-based file download: > > https://cwiki.apache.org/WICKET/ajax

Re: modal page encoding

2011-08-22 Thread Martin Grigorov
disable your browser caches or give more details what exactly is the problem On Mon, Aug 22, 2011 at 5:39 PM, Anna Simbirtsev wrote: > Hi, > > Encoding issue in Wicket: > we want to change encoding from "utf-8" to "iso-8859-01", after adding the > following codes in application, it works for page

Re: Menubar in wicket ?

2011-08-22 Thread aabfattah
Now trying the demo in the project in google code gives me this error : Unexpected RuntimeException Last cause: Unable to find component with id 'menuList' in [MultiLevelMenu [Component id = multiLevelMenu]] Expected: 'multiLevelCssMenu:multiLevelMenu.menuList'. Found with similar

Re: modal page encoding

2011-08-22 Thread Anna Simbirtsev
it seems that Ajax form processing should always be encoded in UTF-8, is there alternative way to let Ajax form processing using 'iso-8859-1' except changing wicket-ajax.js On Mon, Aug 22, 2011 at 10:51 AM, Martin Grigorov wrote: > disable your browser caches > or give more details what exactly

Re: modal page encoding

2011-08-22 Thread Martin Grigorov
W3C requires UTF-8 On Mon, Aug 22, 2011 at 6:56 PM, Anna Simbirtsev wrote: >  it seems that Ajax form processing should always be encoded in UTF-8, is > there alternative way to let Ajax form processing using 'iso-8859-1' except > changing wicket-ajax.js > > On Mon, Aug 22, 2011 at 10:51 AM, Mart

Re: AJAXDownload Example Doesn't Support Content-Disposition (Save As)

2011-08-22 Thread eugenebalt
Thanks I fixed it. This example explains how to do it. https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AJAXDownload-Example-Doesn-t-Support-Content-Disposition-Save-As-tp3760342p3760552.html Sent from t

How to update the value of a Hidden Field using Ajax

2011-08-22 Thread eugenebalt
How to update the value of a hidden filed using ajax? I was trying to do something like the following listYears.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(AjaxRequestTarget target) { HiddenField fi

Re: Redirect to Page with FeedbackPanel Message on New Page

2011-08-22 Thread Igor Vaynberg
session.info("foo"); setresponsepage(new page2()); -igor On Mon, Aug 22, 2011 at 9:20 AM, eugenebalt wrote: > When I click a button on Page1, I redirect to Page2. > > But I also need to display a FeedbackPanel message, perhaps using info(), on > Page[b]2[/b]. Is there a way to do it? > > Thanks

Re: modal page encoding

2011-08-22 Thread Bruno Borges
We work with projects based on Portuguese and we are having some problems because of that too. It seems that it is easier to just use UTF-8 instead of ISO. *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Mon, Aug 22, 2011 at 1:01 PM, Martin Grigorov wrote: > W3C requires UTF-8 > > On M

StatelessForm on BookmarkablePage and its action url

2011-08-22 Thread Doug Leeper
I have a stateless page (LocationPage) that contains an StatelessForm. @StatelessComponent public class LocationPage extends AppBasePage { ... } The LocationPage is mounted as: mount(new MixedParamUrlCodingStrategy("/b", LocationPage.class, new String[] { "name",

Re: Feedback panel don't show messages of child component

2011-08-22 Thread Andrea Del Bene
Hi, running your app in development mode do you get any message of this kind "-Component-targetted feedback message was left unrendered."? Mh, sorry I told you something wrong I'm not using a list but instead I'm using a DefaultDataTable with a SortableDataProvider. But I followed you advise an

Re: Redirect to Page with FeedbackPanel Message on New Page

2011-08-22 Thread Martijn Dashorst
or Page2 page2 = new Page2(); page2.info("bla"); setResponsePage(page2); Martijn On Mon, Aug 22, 2011 at 6:44 PM, Igor Vaynberg wrote: > session.info("foo"); setresponsepage(new page2()); > > -igor > > > On Mon, Aug 22, 2011 at 9:20 AM, eugenebalt wrote: >> When I click a button on Page1, I re