How about an initPanel() method, or similar, that's called in
onBeginRequest() that subclasses can override?
On 6/15/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
> Thanks! That's exactly what I needed. :)
>
> -Phil
>
> On 6/14/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > Ah, so /that's/ why Jonathan allways makes everthing final by default :)
> > That method actually wasn't meant for overriding, just forgot to mark it
> > final. Another thing I forgot is to turn of versioning for this
> > component. Just makes no sense for the feedbackpanel.
> >
> > I made these fixes in both HEAD (1.1) and 1.0, and added some methods
> > that are convenient (without exposing too much) when extending
> > FeedbackPanel. Find it attached.
> >
> > With the new version you could create a custom feedback panel like:
> >
> > /**
> > * Custom feedback panel that only displays when there is any message.
> > */
> > private final class MyFeedbackPanel extends FeedbackPanel
> > {
> > /**
> > * Construct.
> > * @param id component id
> > */
> > public MyFeedbackPanel(String id)
> > {
> > super(id);
> > }
> >
> > /**
> > * @see wicket.Component#isVisible()
> > */
> > public boolean isVisible()
> > {
> > return anyMessage();
> > }
> > }
> >
> >
> > Phil Kulak wrote:
> >
> > >I would like the make a feedback panel that also includes a brief
> > >message at the top of the list. This means that I have to make the
> > >panel invisible when there are no messages. I tried this:
> > >
> > >@Override
> > >public void setCollectingComponent(Component component) {
> > > super.setCollectingComponent(component);
> > > if (component.hasErrorMessage() || component.hasFeedbackMessage()) {
> > > this.setVisible(true);
> > > } else {
> > > this.setVisible(false);
> > > }
> > >}
> > >
> > >but that gives me a wierd "no page found for component" error for my
> > >form. Is there a better way to do this? Thanks!
> > >
> > >
> > >-------------------------------------------------------
> > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > >from IBM. Find simple to follow Roadmaps, straightforward articles,
> > >informative Webcasts and more! Get everything you need to get up to
> > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> > >_______________________________________________
> > >Wicket-user mailing list
> > >[email protected]
> > >https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> >
> >
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user