Re: Is it possible to let messages in a FeedbackPanel contain links?
https://issues.apache.org/jira/browse/WICKET-2438 -igor On Wed, Sep 2, 2009 at 6:19 AM, Pieter Degraeuwe wrote: > 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 < > reier...@gmail.com> 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 < >> pieter.degrae...@systemworks.be> 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 < >> > pieter.degrae...@systemworks.be> wrote: >> > >> > > Perfect !. >> > > I'll give it a try. >> > > >> > > Thanks >> > > >> > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < >> > > reier...@gmail.com> 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 < >> > >> pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be >> > > visit us at http://www.systemworks.be >> > > >> > >> > >> > >> > -- >> > Pieter Degraeuwe >> > Systemworks bvba >> > Belgiëlaan 61 >> > 9070 Destelbergen >> > GSM: +32 (0)485/68.60.85 >> > Email: pieter.degrae...@systemworks.be >> > visit us at http://www.systemworks.be >> > >> > > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is it possible to let messages in a FeedbackPanel contain links?
Do you have to link to components, or can you link to e.g. a bookmarkable page with a message/ topic id in the URL? If that's the case, you can achieve that through the feedback panel. Eelco On Wed, Sep 2, 2009 at 6:19 AM, Pieter Degraeuwe wrote: > 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 < > reier...@gmail.com> 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 < >> pieter.degrae...@systemworks.be> 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 < >> > pieter.degrae...@systemworks.be> wrote: >> > >> > > Perfect !. >> > > I'll give it a try. >> > > >> > > Thanks >> > > >> > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < >> > > reier...@gmail.com> 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 < >> > >> pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be >> > > visit us at http://www.systemworks.be >> > > >> > >> > >> > >> > -- >> > Pieter Degraeuwe >> > Systemworks bvba >> > Belgiëlaan 61 >> > 9070 Destelbergen >> > GSM: +32 (0)485/68.60.85 >> > Email: pieter.degrae...@systemworks.be >> > visit us at http://www.systemworks.be >> > >> > > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is it possible to let messages in a FeedbackPanel contain links?
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 < reier...@gmail.com> 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 < > pieter.degrae...@systemworks.be> 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 < > > pieter.degrae...@systemworks.be> wrote: > > > > > Perfect !. > > > I'll give it a try. > > > > > > Thanks > > > > > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < > > > reier...@gmail.com> 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 < > > >> pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be > > > visit us at http://www.systemworks.be > > > > > > > > > > > -- > > Pieter Degraeuwe > > Systemworks bvba > > Belgiëlaan 61 > > 9070 Destelbergen > > GSM: +32 (0)485/68.60.85 > > Email: pieter.degrae...@systemworks.be > > visit us at http://www.systemworks.be > > > -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: Is it possible to let messages in a FeedbackPanel contain links?
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 < pieter.degrae...@systemworks.be> 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 < > pieter.degrae...@systemworks.be> wrote: > > > Perfect !. > > I'll give it a try. > > > > Thanks > > > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < > > reier...@gmail.com> 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 < > >> pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be > > visit us at http://www.systemworks.be > > > > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be >
Re: Is it possible to let messages in a FeedbackPanel contain links?
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 < pieter.degrae...@systemworks.be> wrote: > Perfect !. > I'll give it a try. > > Thanks > > On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> 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 < >> pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: Is it possible to let messages in a FeedbackPanel contain links?
Perfect !. I'll give it a try. Thanks On Wed, Sep 2, 2009 at 11:55 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> 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 < > pieter.degrae...@systemworks.be> 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: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: Is it possible to let messages in a FeedbackPanel contain links?
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 < pieter.degrae...@systemworks.be> 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 >
Re: Is it possible to let messages in a FeedbackPanel contain links?
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