Hi, I seem to have solved the issue. I have made a number of changes to clarify and clean up code. However, as part of the Ajax requests for changing the GroupSize or Departure the component#Error method was called, but the feedback panel was not refreshed to display an error. Removing any messages being added to Component#Error seems to have solved the issue.
Fergal. On 26 February 2013 12:25, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > > On Tue, Feb 26, 2013 at 2:10 PM, Fergal Keating < > fergal.keat...@directski.com> wrote: > > > Hi, > > > > If i put a breakpoint in renderCount (it gets called a lot) But the > > "resolvePageInstance" only gets called once per request, It seems to > have > > the same renderCount Value that is on the current page. > > E.G. The page is displaying "booking?14-1" for all event listeners. > > > > > > If i change the GroupSize via the Dropdown then the > > PageProvider#getPageInstance() is being called with e.g. > > pageId=14 renderCount = 1. > > The Ajax response contains event Listeners for all the passenger names > > textboxes, all the URLs reference "booking?14-1.IBehaviorListener" as > part > > of the URL, and when i type in a passenger name it looks like they are > > correctly called, but once i click Next the Names are lost. > > > > The Next Button reference a form with the following URL > > "./booking?14-1.IFormSubmitListener-wizard-form" Yet If i Click NEXT then > > the page refreshes again and all the Links rerender with "booking?14-3" > > > > This is consistent with wicket 1.5.5 on the Live site in the same > browser, > > if i click Next without any passenger names it resets the Booking page, > and > > moves from e.g 14-1 to 14-3.. > > > > I'm not 100% sure where i need to go from here. > > > > I have no idea too. > If you are able to reproduce the problem in a mini application then attach > it to Jira and we will debug it. > > > > > > On 25 February 2013 13:50, Martin Grigorov <mgrigo...@apache.org> wrote: > > > > > Hi, > > > > > > Such behavior can be experienced when the page is re-rendered in the > > > meantime, for example in a new tab/window. > > > See Page#renderCount javadoc for explanation. > > > To verify that this is or is not the case you can put a breakpoint in > > > PageProvider#getPageInstance() method. > > > > > > > > > On Mon, Feb 25, 2013 at 3:39 PM, Fergal Keating < > > > fergal.keat...@directski.com> wrote: > > > > > > > Hello, > > > > > > > > I'm trying to update a wicket 1.5.5 application to 6.5.0. I have > > overcome > > > > some issues with Header items, and setting Attributes to > > > > AllowDefault(true) for ajax. I have one remaining issue that i cant > > seem > > > to > > > > figure out. > > > > > > > > I have a wizard that allows users to create a booking. > > > > > > > > (See currently working version on following Link + "Click Book") > > > > > > > > > > http://www.directski.com/ski/france/la_plagne/residence_prestige_sun_valley > > > > > > > > When you click Next it calls the applyState() method. However on > > version > > > > 6.5.0, if you update the Group Size or departure, Clicking Next just > > > > reloads the page and the applyState() method is not called. > > > > > > > > The Group size and departure dropdowns merely use > > > > AjaxFormComponentUpdatingBehavior to update the object and sends a > > > > ComponentEvent message to the relevant panels to update themselves. > > > > > > > > Any ideas why applyState() might not be being called? > > > > > > > > > > > > > > > > -- > > > Martin Grigorov > > > jWeekend > > > Training, Consulting, Development > > > http://jWeekend.com <http://jweekend.com/> > > > > > > > > > > > -- > > Fergal Keating > > IT Senior Engineer > > ----------------------------------------------- > > e. fergal.keat...@directski.com > > p. NA > > w. www.directski.com > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/> > -- Fergal Keating IT Senior Engineer ----------------------------------------------- e. fergal.keat...@directski.com p. NA w. www.directski.com