Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Nick Heudecker
That did it. Thanks! On 11/27/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > 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]> wr

Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Martijn Dashorst
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 attribut

Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Nick Heudecker
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) ge

Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Nick Heudecker
Thanks Martjin. But doesn't the seem like a bit much just to customize the CSS for the containing UL in a feedback panel? On 11/27/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > At constructor time, the panel still isn't 'added' to the page, so the > feedback list cannot be retrieved. In your

Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Martijn Dashorst
At constructor time, the panel still isn't 'added' to the page, so the feedback list cannot be retrieved. In your case, you could alter the model you provide to the attribute modifier, making the evaluation 'lazy': if(feedbackul!=null) { add(new AttributeModifier("class", true, new ReadOnlyMod

Re: [Wicket-user] FeedbackPanel and CSS

2005-11-27 Thread Nick Heudecker
I tried making my own CSSFeedbackPanel and I'm running into the following Exception: Caused by: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = messages, page = , path = feedback:feedbackul:messages.FeedbackPanel$MessageListView]] at wicket.Compone

Re: [Wicket-user] FeedbackPanel and CSS

2005-10-25 Thread Nick Heudecker
I think I'll end up creating my own FeedbackPanel subclass.  Is there any way to have messages only display for one page refresh?  Currently, the messages stay visible on the page. On 10/25/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: You could assign a class on the element you attach the panel

Re: [Wicket-user] FeedbackPanel and CSS

2005-10-25 Thread Eelco Hillenius
You could assign a class on the element you attach the panel on. Like .. and then in css: .myfeedback ul { ... }. Another option, for more flexibility, is to extend FeebackPanel, and provide your own markup. Basically you would copy n paste the feedbackpanel markup, but you'd also provide the clas

Re: [Wicket-user] FeedbackPanel and CSS

2005-10-24 Thread Nick Heudecker
It only adds that CSS for the individual items.  Not for the containing element.On 10/24/05, Andrew Berman < [EMAIL PROTECTED]> wrote:A FeedbackPanel will automatically add a class of feedbackPanel  to all li elements.   So, for example, you can create a CSS class called feedbackPanelERROR.  If yo

Re: [Wicket-user] FeedbackPanel and CSS

2005-10-24 Thread Andrew Berman
A FeedbackPanel will automatically add a class of feedbackPanel  to all li elements.   So, for example, you can create a CSS class called feedbackPanelERROR.  If you don't like the naming of the classes, you can just override the getCSSClass() method. --AndrewOn 10/24/05, Nick Heudecker <[EMAIL PR

[Wicket-user] FeedbackPanel and CSS

2005-10-24 Thread Nick Heudecker
Is it possible to add a CSS style to the tag used by the FeedbackPanel?  My panels are either going to display INFO messages or ERROR messages.