This discussion is archived
3 Replies Latest reply: Jul 18, 2013 1:24 AM by Daniel Merchán RSS

Spaces Listing Page Default Settings

nickw2 Newbie
Currently Being Moderated

On the spaces listing page, the default Show setting is "All Spaces."  Is it possible to configure it so the default is "Joined By Me" instead?

 

I was able to reorder the options in that list by editing the task flow, but I've been unable to edit the default value.

  • 1. Re: Spaces Listing Page Default Settings
    Daniel Merchán Expert
    Currently Being Moderated

    Hi.


    Try customizing Community Browser Task Flow.

     

    To achieve it follow next steps:

    • If you don't have already a WebCenter Portal - Spaces Task Flow Customization Application project for your customizations then create one using JDeveloper -> New Application -> WebCenter Portal - Spaces Task Flow Customization Application
    • Open you JDeveloper using Customization Role.
    • Allow to Show Libraries in your customization project.
    • Find WebCenter Spaces View Library.
    • Go to oracle.webcenter.community.view.taskflows.browser package and you'll find TableOfCommunities-Tiled.jsff fragment.
    • Find following code:
    <!-- LOV for filtering Group Spaces displayed to user -->
                <af:selectOneChoice id="filter" autoSubmit="true"
                                    styleClass="NoLabelWrap"
                                    value="#{pageFlowScope.tableOfCommunitiesBean.filterCondition}"
                                    label="#{uib_o_w_w_r_WebCenter.LABEL_SHOW}">
                  <af:selectItem value="all" label="#{uib_o_w_s_r_Spaces.LABEL_ALL_SPACES}"
                                 rendered="#{!profileHelper.multiTenantModeEnabled}"
                                 id="si1"/>
                  <af:selectItem value="joined"
                                 label="#{uib_o_w_s_r_Spaces.GROUP_SPACES_MANAGE_SHOW_JOINED_BY_ME}"
                                 id="si2"/>
                  <af:selectItem value="moderated"
                                 label="#{uib_o_w_s_r_Spaces.GROUP_SPACES_MANAGE_SHOW_MODERATED_BY_ME}"
                                 id="si3"/>
    
    
    
    
    
    
    • Try with customizaiton allow different value to be first. You have to be concerned that #{pageFlowScope.tableOfCommunitiesBean.filterCondition} must to have the final value. It could be achieved using custom manage bean updating #{pageFlowScope.tableOfCommunitiesBean.filterCondition} with the final value. #{pageFlowScope.tableOfCommunitiesBean.filterCondition} start value is "all" in Java Code
    public final class TableOfCommunitiesBean
      implements Serializable
    {
      private transient UIXTable mTable;
      private boolean selectedState;
      private boolean selectedStatus;
      private transient List<String> mNameTable;
      private SpacesQueryParameters advancedQueryOption;
      private String sortBy = "displayName";
      private String filterCondition = "all"; // <------------------ Default value
    
    
    

     

    • After changes deploy your customization MAR file to WC_Spaces servers. If you created more java manage beans for Spaces re-deploy your code first.
    • Test.

     

    Another possibility could be override the class in your Spaces Code and change class-loader to load your overriden class instead of product one. Just copy the Java code and change variable initialization to another value (joined...). It's an unrecommended way because patches will no be applied correctly for this Java Class.

     

    Regards.

  • 2. Re: Spaces Listing Page Default Settings
    nickw2 Newbie
    Currently Being Moderated

    Where can the source code be found?

  • 3. Re: Spaces Listing Page Default Settings
    Daniel Merchán Expert
    Currently Being Moderated

    Find WebCenter Spaces View Library

    Through inside of the libraries of spaces and check the registered manage bean to decompile the associated class .

     

    Regards.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points