You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Florian B." <fl...@gmail.com> on 2011/08/22 14:38:46 UTC

Feedback panel don't show messages of child component

I got some trouble with the FeedbackPanel. 

My scenario looks like this. I got a custom panel which can be added to a
page. Within the panel I add a FeedbackPanel to show any errors that arise
from the panel. The main content of the panel is a list to show entities
from a database. To be able to delete entities the list has a custom column
that extends AbstractColumn<Entity> which adds another custom panel (called
ActionPanel) to each row containing the buttons and logic to delete the
entity. 

Now we come to the problem. When I call the error() method within the
ActionPanel the message is not shown by the FeedbackPanel of the panel that
contains the list. 

I thought that all messages of a component are rendered by any FeedbackPanel
on a page. But somehow messages of the ActionPanel are not rendered. 

I don't know what I'm doing wrong. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3759993.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by "Florian B." <fl...@gmail.com>.
No I'm not doing any ajax on this page. 

I got it somehow working that the feedback panel show info messages form the
ActionPanels constructor but the error messages after the delete button was
pressed are still not shown. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3770617.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by nino martinez wael <ni...@gmail.com>.
You are not doing any ajax are you?

2011/8/23 Florian B. <fl...@gmail.com>:
> Hi,
>
> you're right I found the following message:
>
> /WARN  - WebSession                 - Component-targetted feedback message
> was left unrendered. This could be because you are missing a FeedbackPanel
> on the page.  Message: [FeedbackMessage message =
> "StringResourceModel[key:form.error.storeDoesntExist,default:null,params:[]]",
> reporter = remove, level = ERROR]/
>
> I'm wondering why it says it couldn't find a FeedbackPanel, as I'm pretty
> sure there's a FeedbackPanel on the page. As I could display messages there
> from the panel that contains the FeedbackPanel.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3762065.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by "Florian B." <fl...@gmail.com>.
Hi,

you're right I found the following message:

/WARN  - WebSession                 - Component-targetted feedback message
was left unrendered. This could be because you are missing a FeedbackPanel
on the page.  Message: [FeedbackMessage message =
"StringResourceModel[key:form.error.storeDoesntExist,default:null,params:[]]",
reporter = remove, level = ERROR]/

I'm wondering why it says it couldn't find a FeedbackPanel, as I'm pretty
sure there's a FeedbackPanel on the page. As I could display messages there
from the panel that contains the FeedbackPanel. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3762065.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by Andrea Del Bene <an...@libero.it>.
Hi,

running your app in development mode do you get any message of this kind
"-Component-targetted feedback message was left unrendered."?
> Mh, sorry I told you something wrong I'm not using a list but instead I'm
> using a DefaultDataTable with a SortableDataProvider.
>
> But I followed you advise and call setItemReuseStrategy(new
> ReuseIfModelsEqualStrategy()) on the table instead if setReuseItem(). Then I
> overwrote the equals() method of the model that get returned by the
> SortableDataProvider so that the equals method is passed to the models's
> objects. But unfortunately it doesn't work.
>
> I also did some more testing on that issue and at the moment I'm not sure if
> it has some thing to do with the reuse strategy at all. When calling
> info("Test message main panel"); in the constructor of the panel which
> contains the FeedbackPanel the message is displayed by the FeedbackPanel
> whereas when calling info("Test message action panel"); in the constructor
> of the ActionPanel the message is not displayed by the FeedbackPabel. So I
> think it has nothing to do with the reuse of the items.
>
> Any other ideas?
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3760282.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by "Florian B." <fl...@gmail.com>.
Mh, sorry I told you something wrong I'm not using a list but instead I'm
using a DefaultDataTable with a SortableDataProvider. 

But I followed you advise and call setItemReuseStrategy(new
ReuseIfModelsEqualStrategy()) on the table instead if setReuseItem(). Then I
overwrote the equals() method of the model that get returned by the
SortableDataProvider so that the equals method is passed to the models's
objects. But unfortunately it doesn't work. 

I also did some more testing on that issue and at the moment I'm not sure if
it has some thing to do with the reuse strategy at all. When calling
info("Test message main panel"); in the constructor of the panel which
contains the FeedbackPanel the message is displayed by the FeedbackPanel
whereas when calling info("Test message action panel"); in the constructor
of the ActionPanel the message is not displayed by the FeedbackPabel. So I
think it has nothing to do with the reuse of the items. 

Any other ideas?



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3760282.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Feedback panel don't show messages of child component

Posted by Andrea Del Bene <ad...@ciseonweb.it>.
Hi,

try calling setReuseItem(true) on list. See ListView JavaDoc for further 
details (the WARNING paragraph) .
> I got some trouble with the FeedbackPanel.
>
> My scenario looks like this. I got a custom panel which can be added to a
> page. Within the panel I add a FeedbackPanel to show any errors that arise
> from the panel. The main content of the panel is a list to show entities
> from a database. To be able to delete entities the list has a custom column
> that extends AbstractColumn<Entity>  which adds another custom panel (called
> ActionPanel) to each row containing the buttons and logic to delete the
> entity.
>
> Now we come to the problem. When I call the error() method within the
> ActionPanel the message is not shown by the FeedbackPanel of the panel that
> contains the list.
>
> I thought that all messages of a component are rendered by any FeedbackPanel
> on a page. But somehow messages of the ActionPanel are not rendered.
>
> I don't know what I'm doing wrong.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-don-t-show-messages-of-child-component-tp3759993p3759993.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org