Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Sorry for the Type: I meant: My problem is: setEnabled does not take iModel as argumet. I'd like to do something like setEnabled(new PropertyModel(doc, canDelete) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004245.html Sent

Re: setEnabled based on Model

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 12:00 PM, Andrei Razin rukusv...@hotmail.comwrote: Sorry for the Type: I meant: My problem is: setEnabled does not take iModel as argumet. I'd like to do something like setEnabled(new PropertyModel(doc, canDelete) override isVisible instead: @Override public

Re: setEnabled based on Model

2010-10-20 Thread Igor Vaynberg
or better yet, override onconfigure() and call setvisible/enabled from there -igor On Wed, Oct 20, 2010 at 10:04 AM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 12:00 PM, Andrei Razin rukusv...@hotmail.comwrote: Sorry for the Type: I meant: My problem is:

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Thanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004356.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
: element.setEnabled(new PropertyModel(iModel, enabled)); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004864.html Sent from the Users forum mailing list archive at Nabble.com

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
get the property directly and it will be much nicer to use PropertyModel. Regards, Andrei. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004867.html Sent from the Users forum mailing list archive at Nabble.com

Re: setEnabled based on Model

2010-10-20 Thread Jeremy Thomerson
and the Name like the isEditEnabled property. So, inside the LinkColumn i cannot get the property directly and it will be much nicer to use PropertyModel. Regards, Andrei. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004867

Re: setEnabled based on Model

2010-10-20 Thread James Carman
PropertyModel. Regards, Andrei. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004867.html Sent from the Users forum mailing list archive at Nabble.com

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Jeremy. Thanks a lot. It is nice to have a hand when you need it. Appreciate, Andrei. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004897.html Sent from the Users forum mailing list archive at Nabble.com