cancel
Showing results for 
Search instead for 
Did you mean: 

Status of progressive panel

xerox
Champ in-the-making
Champ in-the-making
How can I remember the status of the progressive panel?
or say, if I click on that space, the content panel should be open or closed.

Nick
3 REPLIES 3

sjeek
Champ in-the-making
Champ in-the-making
We give al the components in a space a personal ID
Then we added "progressive="true" " to our panel. (browse spaces) so that we can minimize our space panel

But, when we click on a content in the space, the panel allways comes back to his original state.

Note 1: We added a thirth panel in browse.jsp to view inline our content. So, when we click on a content, we actually link back to browse.jsp to view the content inline. Maby that's why the space panel always opens back?

Note 2: we also added a Tree to view our alfresco. When we close the space panel and navigate with the tree, the space panel still closed, but when we click back to a content (inline view) the space panel will open again.

Or is it possible to leave the space panel closed?

kevinr
Star Contributor
Star Contributor
Yes it is possible, we do exactly this on the document details screen. Look in projects/web-client/source/web/jsp/dialog/document-details.jsp, and search for the expandedActionListener on a aSmiley Tongueanel component as an example:
expandedActionListener="#{DocumentDetailsBean.expandPanel}"

The panel binds its expanded/collapsed state thus:
expanded='#{DocumentDetailsBean.panels["dashboard-panel"]}'

which is simply a boolean value on a managed bean, the actionlistener mentioned above is responsible for keeping the values in sync. If you look at DocumentDetailsBean you'll see how it works for multiple panels on a page (the constructor of the bean also sets the default expanded/collapses values for some panels)

Cheers,

Kevin

sjeek
Champ in-the-making
Champ in-the-making
Thx Kevin!