Change By: Federico Grilli (27/May/13 10:15 AM)
Description: In essence, the footer allows access to an action pop for performing operations on the currently selected messages and displays a status, that is the number of total messages present in the container and the number of selected items.
Now, this works fine when we're in the ALL messages category but as soon as we change category things stop working.

Suppose you have an error and an info message. You're in ALL category and select the error message, the footer will display

- 2 messages, 1 selected

and that's all fine and well.

Now you switch to INFO category, the footer will display

- 1 message, 1 selected

And that's wrong. The total message count is correct but no message should be displayed (only the error message is currently selected). 
Now you select the only info message and the footer will display

- 1 message, 2 selected

Hmmm… What's worse is that if you try to execute an action via the action pop (say a deletion) it will also be performed on the message selected in the other category which is definitely not what we want.
 
As far as I could see, the underlying Vaaadin container is applied a filter by MessageCategory which actually works for the total items count {{container.getItemIds()}} but not for the selected ones {{container.getValue()}} the latter returning a Set in our case.
   
As a temporary workaround atm I'm unselecting all selected items when switching category.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to