Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
meduolis wrote: Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) {

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) { FormComponent? comp

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
Doh! Never mind. I just discovered that buried in my Page was this piece of code: AjaxFormValidatingBehavior.addToAllFormComponents(form,onblur); That's what was adding the onblur call to the dropdown. -- View this message in context:

AjaxFormComponentUpdatingBehavior Question

2010-10-09 Thread pjacobsma
I have defined a dropdown using the AjaxFormComponentUpdatingBehavior for the onchange event. When I look at the html generated, the Ajax call is associated with both the onchange and the onblur events. I would like the call to be done only on the onchange event, not the onblur event. Is there

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread pjacobsma
meduolis wrote: I dont know if it works, but you can try to make a hack :) endDateDropDown = new DropDownChoiceDate(endDateDropDown, new PropertyModel(viewHistoryCriteria, endDate), ProcessDateContext.getSixtyDayRange()); endDateDropDown.add(new