8 Replies Latest reply on Apr 14, 2010 8:52 AM by John Stegeman

    MDS (paneSplitter collapsed)

    Qjeta
      Hi,
      I am trying to customize my application with MDS (Jdeveloper 11.1.1.2.0) but I am not able to remember the collapsed property of the panelSplitter, both for duration of the session and across the session (however splitterPosition is remembered).
      Please, where could be the problem?

      ViewController project has set Enable UserCustomization Across Sessions using MDS and Enable Seeded Customization.
      This is my adf-config.xml:
      <adf-config xmlns="http://xmlns.oracle.com/adf/config"
                  xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
                  xmlns:sec="http://xmlns.oracle.com/adf/security/config">
        <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
          <adf-property name="adfAppUID" value="MyCustomizationApp-3195"/>
        </adf:adf-properties-child>
        <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
          <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
                                  credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
        </sec:adf-security-child>
        <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
          <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
            <cust-config>
              <match path="/">
                <customization-class name="oracle.model.mycompany.SiteCC"/>
              </match>
            </cust-config>
          </mds-config>
        </adf-mds-config>
        <persistence-config>
          <metadata-namespaces>
            <namespace path="/persdef" metadata-store-usage="mdsRepos"/>
          </metadata-namespaces>
          <metadata-store-usages>
            <metadata-store-usage id="mdsRepos" default-cust-store="true">
              <metadata-store name="fs1"
                              class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
                <property name="metadata-path"
                          value="c:/MyCustomizationApp/ViewController/public_html;c:/MyCustomizationApp/ViewController/adfmsrc;c:/MyCustomizationApp/Model/src"/>
              </metadata-store>
            </metadata-store-usage>
          </metadata-store-usages>
        </persistence-config>
        <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
          <persistent-change-manager>
            <persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
          </persistent-change-manager>
          <taglib-config>
            <taglib uri="http://xmlns.oracle.com/adf/faces/rich">
              <tag name="panelSplitter">
                <attribute name="collapsed">
                  <persist-changes>true</persist-changes>
                </attribute>
                <attribute name="splitterPosition">
                  <persist-changes>true</persist-changes>
                </attribute>
                <persist-operations>ALL</persist-operations>
              </tag>
            </taglib>
          </taglib-config>
        </adf-faces-config>
      </adf-config>
      Thanks
        • 1. Re: MDS (paneSplitter collapsed)
          Shay Shmeltzer-Oracle
          Are other preferences kept ok? for example the order of columns in a table.
          • 2. Re: MDS (paneSplitter collapsed)
            Qjeta
            I have made a small observation:

            1. I added
                 <tag name="column">
                      <attribute name="width">
                        <persist-changes>true</persist-changes>
                      </attribute>
                   ...
                      <attribute name="visible">
                        <persist-changes>true</persist-changes>
                      </attribute>
                      <persist-operations>ALL</persist-operations>
                    </tag>
                  ...
            => column width were remembered
            2. I removed just
            <attribute name="width">
                <persist-changes>true</persist-changes>
            </attribute>
            => column width were not remembered

            from the behavior of 1. and 2., I would say that this configuration is not ignored

            3.
            I used
                    <tag name="panelSplitter">
                      <attribute name="collapsed">
                        <persist-changes>true</persist-changes>
                      </attribute>
                      <attribute name="splitterPosition">
                        <persist-changes>true</persist-changes>
                      </attribute>
                      <persist-operations>ALL</persist-operations>
                    </tag>
            => splitterPosition remembered sometimes (I don't know if it could be caused by the interval when I terminate WebLogic server)
            collapsed remembered never
            • 3. Re: MDS (paneSplitter collapsed)
              Krithika
              Just in case can you make sure that the Persist and DontPersist property for the specific panelSplitter is not set so that the default UserCustomization for panelSplitter is not overriden.

              Regards,
              ~Krithika
              • 4. Re: MDS (paneSplitter collapsed)
                Qjeta
                I am sorry for the later response.

                Persist and DontPersist values for the splitter are empty.
                Here is the part of the jsf page
                <af:form id="f1">
                        <af:panelStretchLayout id="psl1" styleClass="AFVisualRoot"
                                               endWidth="50px">
                          <f:facet name="bottom"/>
                          <f:facet name="center">
                            <af:panelSplitter id="ps1" orientation="vertical"
                                              positionedFromEnd="true">
                              <f:facet name="first">
                                <af:panelGroupLayout id="pgl1" layout="scroll">
                                  <af:panelFormLayout ...
                                  </af:panelFormLayout>
                                </af:panelGroupLayout>
                              </f:facet>
                              <f:facet name="second">
                                <af:table ...
                                </af:table>
                              </f:facet>
                            </af:panelSplitter>
                          </f:facet>
                          <f:facet name="start"/>
                          <f:facet name="end"/>
                          <f:facet name="top"/>
                        </af:panelStretchLayout>
                      </af:form>
                • 5. Re: MDS (paneSplitter collapsed)
                  Frank Nimphius-Oracle
                  Hi,

                  I can reproduce this and filed a bug. The component also doesn't remember its collapsed state when setting the persistence programmatically.

                  Frank
                  • 6. Re: MDS (paneSplitter collapsed)
                    Qjeta
                    Hi Frank,
                    thank you for your help
                    • 7. Re: MDS (paneSplitter collapsed)
                      766375
                      i am using the Jdeveloper11g for customization using MDS.
                      but still i am not able to persist the panelsplitter value.
                      My adf-config is below

                      <?xml version="1.0" encoding="windows-1252" ?>
                      <adf-config xmlns="http://xmlns.oracle.com/adf/config"
                      xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
                      xmlns:sec="http://xmlns.oracle.com/adf/security/config">
                      <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
                      <adf-property name="adfAppUID" value="MDSApp-3718"/>
                      </adf:adf-properties-child>
                      <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
                      <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
                      credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
                      <sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
                      jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
                      authorizationEnforce="true"
                      authenticationRequire="true"/>
                      </sec:adf-security-child>
                      <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
                      <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
                      <cust-config>
                      <match path="/">
                      <customization-class name="oracle.model.mycompany.SiteCC"/>
                      <customization-class name="oracle.adf.share.config.UserCC"/>
                      </match>
                      </cust-config>
                      </mds-config>
                      </adf-mds-config>
                      <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
                      <taglib-config>
                      <taglib uri="http://xmlns.oracle.com/adf/faces/rich">
                      <tag name="column">
                      <attribute name="displayIndex">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="frozen">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="noWrap">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="selected">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="visible">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="width">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      </tag>
                      <tag name="showDetailHeader">
                      <attribute name="disclosed">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      </tag>
                      <tag name="panelSplitter">
                      <attribute name="collapsed">
                      <persist-changes>
                      true
                      </persist-changes>
                      </attribute>
                      <attribute name="splitterPosition">
                      <persist-changes>
                      false
                      </persist-changes>
                      </attribute>
                      </tag>
                      </taglib>
                      </taglib-config>
                      <persistent-change-manager>
                      <persistent-change-manager-class>
                      oracle.adf.view.rich.change.MDSDocumentChangeManager
                      </persistent-change-manager-class>
                      </persistent-change-manager>
                      </adf-faces-config>
                      </adf-config>


                      please let me know what is happening with panelsplitter...
                      • 8. Re: MDS (paneSplitter collapsed)
                        John Stegeman
                        As Frank said,
                        I can reproduce this and filed a bug. The component also doesn't remember its collapsed state when setting the persistence programmatically.
                        It doesn't work