5 Replies Latest reply on May 18, 2009 7:07 AM by peter koebele

    skin settings not applied for dynamic include jsp (a4j:inclu

    peter koebele Newbie

      Hello,

      I am using an own skin in my web app. Further there is an <a4j:commandLink> to include different JSF pages in my main page using the <a4j:include> component.
      When I try to include a new JSF page dynamically via an a4j:commandLink, the skin settings won't be applied on the included JSF pages. If the JSF page is included initially on the page, the skin settings (css-styles) are correct.
      If anyone related problems or anyone knows the reason for the problems, please let me know.
      Below you 'll find more information about the problem:

      Best regards
      Peter

      1.) Skin project was generated with the cdk maven plugin.
      2.) Some xyz.skin.properties was changed and the panelbar.xcss (e.g. rich-panelbar-header ...)
      3.) My main JSF page:



      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      Test skin include


      <f:view>
      <h:form id="TestSkinForm">
      <h:panelGrid id="TestSkinFormGrid" columns="1" >
      <a4j:commandLink value="ToggleTestInclude"
      actionListener="#{mySessionScopeBean.processToggleInclude}"
      reRender="TestSkinFormGrid" />
      <a4j:include viewId="#{mySessionScopeBean.toggleInclude}" />
      </h:panelGrid>
      </h:form>
      </f:view>



      4.) The included page when commandLink ist pressed
      <rich:panelBar width="600px" height="60%" >
      <rich:panelBarItem label="PanelBar1">
      <h:outputText value="bli" />
      </rich:panelBarItem>
      <rich:panelBarItem label="PanelBar2">
      <h:outputText value="bla" />
      </rich:panelBarItem>
      <rich:panelBarItem label="PanelBar3">
      <h:outputText value="blubb" />
      </rich:panelBarItem>
      </rich:panelBar>

      5.) The html code of the panelBar. The settings of rich-panelbar-header are not applied correctly
      <div class="dr-pnlbar-h rich-panelbar-header style="" />PanelBar1
      <div class="dr-pnlbar-h-act rich-panelbar-header-act style="display: none;" />PanelBar1