ICEfaces
  1. ICEfaces
  2. ICE-4623

Add support for specifying a facet for an ice:panelTab label.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      It would be useful if users could override the label and/or image attribute-based mechanism for defining a panelTab label and instead optionally use an arbitrary facet to define the tab's label region. This would provide great flexibility for users wanting to use multiple components in the label section, or even to add a "close" button to the tab label itself.

      Since clicking on the label region selects the tab for viewing special handling must be incorporated such that any input type components used in the label facet must *not* change the tab visibility when clicked, but instead will rely on their own click event handlers, which may set the tabs visibility if desired (or remove the tab completely as in the case of the "close" button).

        Issue Links

          Activity

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Salesforce Case []
          Fix Version/s 1.8.2 [ 10190 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Priority P3
          Assignee Adnan Durrani [ adnan.durrani ]
          Ken Fyten made changes -
          Link This issue blocks ICE-4624 [ ICE-4624 ]
          Arran Mccullough made changes -
          Salesforce Case [50070000008ovJg]
          Adnan Durrani made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18990 Wed Jun 24 11:52:29 MDT 2009 adnan.durrani ICE-4623 Add support for specifying a facet for an ice:panelTab label.
          "label" facet added to the ice:panelTab component
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/paneltabset/PanelTabSetRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp.css
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/paneltabset/PanelTab.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/paneltab-renderer.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/rime/rime.css
          Hide
          Adnan Durrani added a comment -

          "label" facet added to the ice:panelTab.

          <ice:panelTab >
          <f:facet name="label">
          <ice:panelGroup>
          <ice:outputText value="Tab 1"/>
          </ice:panelGroup>
          </f:facet>
          <ice:outputText value="Contents"/>
          </ice:panelTab >

          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTab.java
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTabSetRenderer.java
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\paneltab-renderer.xml
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\rime\rime.css
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTabSetRenderer.java
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\rime\rime.css
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\paneltab-renderer.xml
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTab.java
          Completed: At revision: 18990

          Show
          Adnan Durrani added a comment - "label" facet added to the ice:panelTab. <ice:panelTab > <f:facet name="label"> <ice:panelGroup> <ice:outputText value="Tab 1"/> </ice:panelGroup> </f:facet> <ice:outputText value="Contents"/> </ice:panelTab > Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTab.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTabSetRenderer.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\paneltab-renderer.xml Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\rime\rime.css Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTabSetRenderer.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\xp\xp.css Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\resources\css\rime\rime.css Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\paneltab-renderer.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\paneltabset\PanelTab.java Completed: At revision: 18990
          Adnan Durrani made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 1.8.2-RC1 [ 10210 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #19900 Wed Dec 09 10:26:15 MST 2009 adnan.durrani 1.8.2EE panelTabset changes moved to Compat panelTabset towards ICE-4481. The changes include the fix of following JIRAs: ICE-2367, ICE-4623, ICE-4638, ICE-4642, ICE-4645, ICE-4649, ICE-4656, ICE-4737, ICE-4746, ICE-5050
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/paneltabset/PanelTab.java
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/WEB-INF/includes/examples/panel/panelTabSet-dynamic.xhtml
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/xp/xp.css
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/rime/rime.css
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/META-INF/resources/ice-extras.js
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/component-metadata/src/main/resources/conf/ice_cust_properties/cust-paneltabset-props.xml
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/royale/royale.css
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/xp/xp-portlet.css
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/src/org/icefaces/application/showcase/view/bean/examples/layoutPanel/panelTabset/DynamicTabSetBean.java
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/component-metadata/src/main/resources/conf/custom/paneltab-renderer.xml
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/paneltabset/PanelTabSet.java
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/paneltabset/PanelTabSetRenderer.java
          Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/rime/rime-portlet.css
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P3
          Hide
          Krashan Brahmanjara added a comment -

          Was css modifications really necessary?

          In my opinion css changes from revision 18990 and 19005 can be reverted because I see some problems

          • without this changes label on tab works well
          • syntax modification is not backward compatibile, tabs are not correctly displayed in IE6
            instead
            .icePnlTbOn .MidMid>a, .icePnlTbOn .MidMid>div {
            can be old
            .icePnlTbOn .MidMid a, .icePnlTbOn .MidMid div {
          • css syntax like
            .icePnlTbOn .MidMid a, .icePnlTbOn .MidMid div {
            increase twice size of tab area because div and a got the same big padding
            <a class="icePnlTbLblLnk">
            <div><table cellspacing="0" cellpadding="0"><tbody><tr><td>Tab title</td></tr></tbody></table></div></a>

          Finnaly xp.css from revision 18990 was better than 19005.

          Show
          Krashan Brahmanjara added a comment - Was css modifications really necessary? In my opinion css changes from revision 18990 and 19005 can be reverted because I see some problems without this changes label on tab works well syntax modification is not backward compatibile, tabs are not correctly displayed in IE6 instead .icePnlTbOn .MidMid>a, .icePnlTbOn .MidMid>div { can be old .icePnlTbOn .MidMid a, .icePnlTbOn .MidMid div { css syntax like .icePnlTbOn .MidMid a, .icePnlTbOn .MidMid div { increase twice size of tab area because div and a got the same big padding <a class="icePnlTbLblLnk"> <div><table cellspacing="0" cellpadding="0"><tbody><tr><td>Tab title</td></tr></tbody></table></div></a> Finnaly xp.css from revision 18990 was better than 19005.

            People

            • Assignee:
              Adnan Durrani
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: