Wow , TIL there are already VisibleModelBehavior and EnabledModelBehavior
in the minis package for this.

Thanks


Sven Meier <s...@meiers.net> 於 2022年3月10日 週四 下午3:22寫道:

> Hi,
>
> Models are not support for visible/enabled state.
>
> The recommended pattern is overriding onConfigure()
>
> onConfigure() {
>    setVisible(/*... lazy evaluated ...*/)
> }
>
> Regards
> Sven
>
>
> On 10.03.22 00:31, smallufo wrote:
> > Currently , component visible is defined by a eager evaluated boolean
> value
> >
> > public final Component setVisible(final boolean visible)
> >
> > Is it able to make it accept IModel<Boolean> ?
> > (so that we can lazy evaluated the value)
> >
> > Thanks.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to