> But one thing - the isEnabled() method
> does not exist in the AbstractBehavior class.

public boolean isEnabled(Component component) is defined in both the
IBehavior interface and implemented (default) in AbstractBehavior.
It's in 1.3 though.

> But I think the
> following will work:
>
>            label.add(new AbstractBehavior() {
>                 @Override public void onRendered(Component component) {
>                     if (starIsVisible) {
>                         Response response = component.getResponse();
>                         response.write("<span id='foo' class='bar'>*</span>");
>                     }
>                 }
>             });

Sure, that'll work too.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to