Indeed, The messages are removed on detach. So when clicking on the link, the actual message is already removed, this the component is not visible anymore.....
I will now -as you suggest- use another panel to show my links. (The feedback mechanism is not ideal for that. Thanks anyway On Wed, Sep 2, 2009 at 3:15 PM, Ernesto Reinaldo Barreiro < [email protected]> wrote: > Sorry but I do not understand well what you want to achieve? > > I think messages are removed after page has been rendered... (see > references > to WebSession.cleanupFeedbackMessages() at RequestCycle.detach()). > > What kind of links are you using? Why not cache yourself the "values" you > are interested at? And then have some kind of panel which you display, lets > say, via AJAX, where you show the information you want? > > Best, > > Ernesto > > On Wed, Sep 2, 2009 at 2:16 PM, Pieter Degraeuwe < > [email protected]> wrote: > > > Hmm, > > this approach (overriding the method newMessageDisplayComponent(...) > seems > > to work almost; > > > > I can show links in the feedbackpanel, but when I click on them, wicket > > does > > not find the component anymore (maybe because it was removed (since > > messages > > are removed too? > > > > Any tips? > > > > > > > > On Wed, Sep 2, 2009 at 12:59 PM, Pieter Degraeuwe < > > [email protected]> wrote: > > > > > Perfect !. > > > I'll give it a try. > > > > > > Thanks > > > > > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < > > > [email protected]> wrote: > > > > > >> Individual messages are created via the factory method > > >> protected Component newMessageDisplayComponent(String id, > > FeedbackMessage > > >> { > > >> Serializable serializable = message.getMessage(); > > >> Label label = new Label(id, (serializable == null) ? "" : > > >> serializable.toString()); > > >> > label.setEscapeModelStrings(FeedbackPanel.this.getEscapeModelStrings()); > > >> return label; > > >> } > > >> > > >> So, maybe you could override it to return a Panel with the > functionality > > >> you > > >> want (instead of a simple label). Otherwise, rolling out your own > > >> implementation of FeedBackPanel should not be very difficult in case > you > > >> find out doing this is not enough to achieve what you want. > > >> > > >> Best, > > >> > > >> Ernesto > > >> > > >> On Wed, Sep 2, 2009 at 10:59 AM, Pieter Degraeuwe < > > >> [email protected]> wrote: > > >> > > >> > Hi, > > >> > After some actions the user did trigger in my webapp, I give the > user > > >> some > > >> > messages like 'The order was successfully created.' > > >> > > > >> > However, sometimes I want to give a message like. 'The order was > > >> > successfully created, but some warnings were created. Click *here* > to > > >> view > > >> > these warnings' > > >> > > > >> > Is this possible in using the standard FeedbackPanel? If so, is > there > > >> > somewhere documentation how to do so?, If not, what is the best > > approach > > >> to > > >> > achieve this. > > >> > > > >> > Thanks > > >> > > > >> > > > > > > > > > > > > -- > > > Pieter Degraeuwe > > > Systemworks bvba > > > Belgiëlaan 61 > > > 9070 Destelbergen > > > GSM: +32 (0)485/68.60.85 > > > Email: [email protected] > > > visit us at http://www.systemworks.be > > > > > > > > > > > -- > > Pieter Degraeuwe > > Systemworks bvba > > Belgiëlaan 61 > > 9070 Destelbergen > > GSM: +32 (0)485/68.60.85 > > Email: [email protected] > > visit us at http://www.systemworks.be > > > -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: [email protected] visit us at http://www.systemworks.be
