So these pallet controls are inside of a ListView that is ultimately nested in a Form. I *want* the button to do it's stuff of moving things from one list to the other, and unsetting the checkbox-- I don't want it to do any other kind of form processing.
It was suggested maybe the checkbox value is being re-entered as part of the form of the button, but A. I would hope that .setDefaultFormProcessing(false) would have prevented that, and B. it doesn't seem like the Model's accessor for the hashmap for this checkbox is being accessed, as it is when I click on the checkbox directly. In short, the problem seems to be that the Checkbox is being redrawn, but not checking its underlying PropertyModel to do so, so its state is not correctly updated. It's not clear to me where Wicket is then getting the information to redraw... it's like it's caching it somewhere. (Again, I think I know it's being redrawn because I put inside a span and am redrawing that, and I put a label on the span that gets the current timestamp, and I can see THAT updating with each click...) On Fri, May 23, 2008 at 12:51 PM, Thijs Vonk <[EMAIL PROTECTED]> wrote: > I'm not sure what you are saying here. But if it is what I'm thinking then > you have misunderstood the meaning of .setDefaultFormProcessing. > > If your component is in a form, the 'defaultFormProcessing' will try to > write any changes in the form to the model, and then call the onSubmit of > the form, and finally the onSubmit of the button. > If set to false it will skip all the form handling and call the onSubmit of > the button directly. > http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) > > So if you are doing anything in the buttons 'onSubmit' that you don't want > in certain cases, then calling setDefaultFormProcessing(false) won't have > any affect. > > Thijs > > Kirk Israel wrote: >> >> the left/right moves ARE being done in the buttons onSubmit, I was >> hoping calling .setDefaultFormProcessing(false); when adding the >> button to the page would have prevented that? >> >> On Fri, May 23, 2008 at 4:50 AM, Thomas Mäder <[EMAIL PROTECTED]> >> wrote: >> >>> >>> Do the move left/move right controls do a submit? If so you might also be >>> resubmitting the (old) check box value. >>> >>> Thomas >>> >>> >>>> >>>> We have a list view that iterates over manufacturers, and each >>>> manufacturer has a "pallet control" of devices >>>> (two list boxes w/ move selection to right list, move selection to >>>> left list buttons between) along with a "all for manufacturer" >>>> checkbox >>>> >>>> >>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
