Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-30 Thread janders
(newSelection.toString()); rot.setEnabled(true); } } }); snip - JA Eelco Hillenius wrote: On 8/30/07, janders [EMAIL PROTECTED] wrote: I don't think I'm doing a good job

setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I posted this on the Databinder forum but no one seems to know of a work-around so I thought I'd post it here. Essentially I have a FocusableTextField that gets set by a DropDownChoice. If the choice is not other then I setEnabled to false and I place the string value of the DropDownChoice into

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
on that field. -igor On 8/29/07, janders [EMAIL PROTECTED] wrote: I posted this on the Databinder forum but no one seems to know of a work-around so I thought I'd post it here. Essentially I have a FocusableTextField that gets set by a DropDownChoice. If the choice is not other then I

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I know how to add the attribute, I just don't know how to later remove it once added. - JA Eelco Hillenius wrote: So it sounds like I would use something like: final AttributeModifier ro = new AttributeModifier(readonly, true, new Model(readonly)); if (email.getType() !=

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I don't understand. Are you saying that I should use setEnabled(false) or are you saying that I should use: final AttributeModifier rof = new AttributeModifier(readonly, false, new Model(readonly)); Either way this doesn't seem to work. - JA Eelco Hillenius wrote: I know how to add

Re: DataTable with DropDownChoice to set rowsPerPage

2007-08-27 Thread janders
() { return td.getrowsperpage(); } void detach() {}), pages); } -igor On 8/26/07, janders [EMAIL PROTECTED] wrote: The format of the Exception got munged with the example code. This should read as: IllegalStateException: Attempt to set model object on null model of component

Re: DataTable with DropDownChoice to set rowsPerPage

2007-08-27 Thread janders
wicket ver - 1.2 then imodel has an extra component param which you can ignore my point is: look at what the example is trying to do. -igor On 8/27/07, janders [EMAIL PROTECTED] wrote: I'm new to wicket and I fail to see how the proposed solution works. Coping this into the IDE

Re: DataTable with DropDownChoice to set rowsPerPage

2007-08-26 Thread janders
newRowItem(String id, INTindex, IModel model) { RETURNNEWOddEvenItem(id, index, model); } }; janders wrote: I would like to be able to add a dropdown to a DataTable so that a user can change the rowsPerPage. Has anyone done this before? If not, what is the best / recommended approach