change the signature to:
Object getObject(Component component) {
}

That will help, now it didn't override anything. Apologies for the mixup.

Martijn


On 11/27/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> I've updated my class and I'm not getting the exception anymore, but
> the class attribute still isn't being added:
>
> public class CSSFeedbackPanel extends FeedbackPanel {
>
>     public CSSFeedbackPanel(final String id) {
>         super(id);
>         WebMarkupContainer feedbackul = (WebMarkupContainer) 
> get("feedbackul");
>         if (feedbackul != null) {
>             feedbackul.add(new AttributeModifier("class", true, new Model() {
>                 public Object getObject() {
>                     if (anyMessage()) {
>                         if (anyMessage(FeedbackMessage.INFO)) {
>                             return "feedbackulINFO";
>                         }
>                         else if (anyMessage(FeedbackMessage.ERROR)) {
>                             return "feedbackulERROR";
>                         }
>                         else {
>                             return "feedbackulNONE";
>                         }
>                     }
>                     else {
>                         return "feedbackulNONE";
>                     }
>                 }
>             }));
>         }
>     }
>
> }
>
> The getObject() call isn't being executed.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to