AnsweredAssumed Answered

Customizing the web-client panels

Question asked by qasimh on Sep 11, 2008
Latest reply on Sep 11, 2008 by qasimh
I'm using Alfresco 2.1 (Tomcat, MySQL, Windows).

I'm trying to modify the web client so that the first view the user sees is the "custom view" (or something like it).
Trying to alter <shared>\web-client-config-custom.xml did not help because the custom view is not an available default. 

   <config evaluator="string-compare" condition="Views">
      <views>
        <view-defaults>
          <topic>
            <sort-direction>ascending</sort-direction>
          </topic>

          <browse>
            <!– allowable values: list|details|icons –>
            <view>details</view>  <!– CUSTOM does not work –>
            <page-size>
              <list>10</list>
              <details>20</details>
              <icons>9</icons>
            </page-size>
          </browse>           
        </view-defaults>
      </views>
   </config>

So, to work around this, I'm trying to shrink the content and space panels by default, (and apply custom view/templates in all major spaces).   I started to modify the alfresco\jsp\browse\browse.jsp file. 
Now, I'm not an JSP/Springs/Struts/tags expert, but I can't seem to make it work…


<h:panelGroup id="content-panel-facets">
<f:facet name="title">
<a:panel id="page-controls2" style="font-size:9px">
<h:outputText value="#{msg.items_per_page}" id="items-txt2"/>
<h:inputText id="content-pages" value="#{BrowseBean.pageSizeContentStr}" style="width:24px;margin-left:4px" maxlength="3" onkeyup="return applySizeContent(event);" />
<div style="display:none"><a:actionLink id="content-apply" value="" actionListener="#{BrowseBean.updateContentPageSize}" /></div>
</a:panel>
</f:facet>
</h:panelGroup>
<a:panel id="content-panel" border="white" bgcolor="white" titleBorder="lbgrey" expandedTitleBorder="dotted" titleBgcolor="white" styleClass="mainSubTitle"
label="#{msg.browse_content}" progressive="true" facetsId="content-panel-facets"
expanded='#{BrowseBean.panels["content-panel"]}' expandedActionListener="#{BrowseBean.expandPanel}">

When testing this out, I can't change
expanded='#{BrowseBean.panels["content-panel"]}'
to
expanded='false'
According to the taglib library, the 'expanded' attribute accepts strings, which I assume get's converted to some discrete value like true or false.  I tried adding 'false', 'FALSE', '0', but it didn't work.

I know I'm doing something wrong… any advice?
And, btw, does the '#{}' block indicate the inclusion of some Java code within a tag?

-Q

Outcomes