ick, just create whatever subclasses of feedbackmessage you need
and use those

it will probably have a abstract string getlevel(), afict it is only the
feedbackpanel that needs to know the level so it can set the appropriate css
class, and message filters for filtering.

there is no semantic meaning behind error/info/etc

-igor


On 8/31/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>
> addFeedback(String class, String message)
> addFeedback(String class, IModel message)
>
> But before you know it, we're implementing Log4j in our feedback
> mechanism. Isn't there a JSR that standardizes this and we could
> implement/get inspiration on?
>
> Martijn
>
> On 8/31/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > ha... also my idea :)
> >
> > On 8/31/07, Igor Vaynberg (JIRA) <[EMAIL PROTECTED]> wrote:
> > >
> > > refactor feedback to allow users to easily add custom levels
> > > ------------------------------------------------------------
> > >
> > >                  Key: WICKET-911
> > >                  URL: https://issues.apache.org/jira/browse/WICKET-911
> > >              Project: Wicket
> > >           Issue Type: Improvement
> > >           Components: wicket
> > >     Affects Versions: 1.3.0-final
> > >             Reporter: Igor Vaynberg
> > >              Fix For: 1.4.0-alpha
> > >
> > >
> > > we have preset levels of fatal/error/warn/info, but users keep asking
> for
> > > more, such as sucess, see WICKET-907. we should probably refactor
> feedback
> > > to have
> > >
> > > component.addfeedback(feedbackmessage) instead of having ten methods
> for
> > > prebuild levels. as far as i can see wicket doesnt need to know if the
> > > message is error or success so there is no point in having a more
> > > complicated system.
> > >
> > > --
> > > This message is automatically generated by JIRA.
> > > -
> > > You can reply to this email to add a comment to the issue online.
> > >
> > >
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
>

Reply via email to