Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      jsf 2 icefaces 3 icemobile

      Description

      creation of a contentPane component to satisfy Patricks' requirement of panelStack but also be able to reuse this as server-side implementation for future layout components.
      For Patrick's requirements, see his comments here
      http://wiki.icesoft.com/display/mobile/LayoutContainer

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28699 Thu Apr 12 17:05:10 MDT 2012 judy.guglielmin MOBI-218
          Files Changed
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPane.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28701 Thu Apr 12 17:19:23 MDT 2012 judy.guglielmin MOBI-218 simple test of contentPane
          Files Changed
          Commit graph DEL /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/layoutContainer1.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layoutComponents.html
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/images/queen.jpg
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/images/kingOfClubs.jpg
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout/LayoutBean.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentPane.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/images/Joker.jpg
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout
          Judy Guglielmin created issue -
          Judy Guglielmin made changes -
          Field Original Value New Value
          Assignee Steve Maryka [ steve.maryka ] Judy Guglielmin [ judy.guglielmin ]
          Hide
          Judy Guglielmin added a comment - - edited

          scrollable attribute is on this component (for now) and may be removed if deemed unecessary, however in order for the inner panel to be scrollable, may require some styling on this component so left it in for now.
          Also, for now it extends UIPanel, but may be changed to UIComponent if no requirement to be a panel.
          just has a div for the "mobi-panel-stack" base class, but Patrick can decide if he wants that there as he may want to do his styling outside of this component.

          Show
          Judy Guglielmin added a comment - - edited scrollable attribute is on this component (for now) and may be removed if deemed unecessary, however in order for the inner panel to be scrollable, may require some styling on this component so left it in for now. Also, for now it extends UIPanel, but may be changed to UIComponent if no requirement to be a panel. just has a div for the "mobi-panel-stack" base class, but Patrick can decide if he wants that there as he may want to do his styling outside of this component.
          Hide
          Judy Guglielmin added a comment -

          http://wiki.icesoft.com/display/mobile/Manipulating+Content+within+various+mobile+components

          is the link with the latest approach to this component in regards to containerLayout, accordion and tabSet

          Show
          Judy Guglielmin added a comment - http://wiki.icesoft.com/display/mobile/Manipulating+Content+within+various+mobile+components is the link with the latest approach to this component in regards to containerLayout, accordion and tabSet
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28914 Wed May 02 16:11:43 MDT 2012 judy.guglielmin MOBI-218, MOBI-223, MOBI-221 still work to do on accordion. css only for ipad and iphone at this point and only tested on those devices as well as desktop Chrome and Safari. Performance api is causing problems on ff, but that is built into page, so commenting it out makes things work
          Files Changed
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionRenderer.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/api/ContentPaneController.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentPane.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/android
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ipad
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/android/default-webkitOnly-accordion.css
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionMeta.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/api
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/utils/HTML.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackRenderer.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/resources/org.icefaces.component.accordion/accordion.js
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ipad/default-contentpane.css
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/iphone
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/iphone/default-contentpane.css
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/iphone
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/iphone/default-accordion.css
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/ipad/default-accordion.css
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/ipad
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordion.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout/LayoutBean.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/build.xml
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackMeta.java
          Commit graph ADD /icemobile/trunk/icemobile/components/component/resources/org.icefaces.component.accordion
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28916 Wed May 02 16:19:48 MDT 2012 judy.guglielmin MOBI-218, 221 layout update for contentStack and accordion tests
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layoutComponents.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28917 Wed May 02 16:33:09 MDT 2012 judy.guglielmin MOBI-218
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPane.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Hide
          Judy Guglielmin added a comment -

          this component is waiting for tagHandler. I have renamed the accordionTitle to just "title" for use with tablet as well and will check this in when I have tabSet working.

          Show
          Judy Guglielmin added a comment - this component is waiting for tagHandler. I have renamed the accordionTitle to just "title" for use with tablet as well and will check this in when I have tabSet working.
          Judy Guglielmin made changes -
          Assignee Judy Guglielmin [ judy.guglielmin ] Mark Collette [ mark.collette ]
          Ken Fyten made changes -
          Fix Version/s 1.1 Beta [ 10320 ]
          Affects Version/s 1.1 Beta [ 10320 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29056 Tue May 15 17:38:05 MDT 2012 judy.guglielmin MOBI-218....clean up the meta as it does not have a selectedId attribute. (part of contentStack)
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Hide
          Mark Collette added a comment -

          Will use a custom TagHandler to optimise the construction of the contentPane such that if the contentPane children won't be rendered, then they won't be constructed either. The TagHandler will decide that given:

          pane.getCacheType().equals("tobeconstructed") && ((ContentPaneController)parent).getSelectedId().equals(pane.getId())

          ACE will need to be augmented to added support for specifying the custom TagHandler on the @Component annotation, and making that take precedence over any generated TagHandler.

          Show
          Mark Collette added a comment - Will use a custom TagHandler to optimise the construction of the contentPane such that if the contentPane children won't be rendered, then they won't be constructed either. The TagHandler will decide that given: pane.getCacheType().equals("tobeconstructed") && ((ContentPaneController)parent).getSelectedId().equals(pane.getId()) ACE will need to be augmented to added support for specifying the custom TagHandler on the @Component annotation, and making that take precedence over any generated TagHandler.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29061 Wed May 16 10:12:05 MDT 2012 judy.guglielmin MOBI-218. take logic out of getSelectedId for ContentStack as per Mark's request. Also, put license headers on these classes
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPane.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Hide
          Mark Collette added a comment -

          ContentPaneController.getSelectedId() can't access the ContentPane components, since it's called while the ContentPane is being constructed.

          Show
          Mark Collette added a comment - ContentPaneController.getSelectedId() can't access the ContentPane components, since it's called while the ContentPane is being constructed.
          Mark Collette made changes -
          Link This issue depends on ICE-8115 [ ICE-8115 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29071 Wed May 16 15:16:20 MDT 2012 judy.guglielmin MOBI-221 rework for tagHandler specifics on MOBI-218
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionMeta.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29073 Wed May 16 15:37:22 MDT 2012 judy.guglielmin MOBI-224 license headers and modify for mark's specs/comments on MOBI-218.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSetMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSetRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29111 Thu May 17 16:54:58 MDT 2012 judy.guglielmin MOBI-218 proper set of selectedId for tag handler as per Mark's instructions. All simple samples in mobitest working and selectedId returning what Mark requires
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/renderkit/BaseLayoutRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java
          Hide
          Mark Collette added a comment -

          In the ContentPaneHandler, onComponentCreated is called on GET and POST restore view, but not POST render. In applyNextHandler, on GET and POST restore view, c.parent is null, but in POST render c.parent is non-null. So for POST render, check if should skip in applyNextHandler, using the non-null parent as the switch.

          Works with ContentStack, but when testing with Accordion and TabSet, when changing current contentPane, since they use @PostConstruct, selectedId is null on restore view construction, so doesn't break but not optimised.

          Show
          Mark Collette added a comment - In the ContentPaneHandler, onComponentCreated is called on GET and POST restore view, but not POST render. In applyNextHandler , on GET and POST restore view, c.parent is null, but in POST render c.parent is non-null. So for POST render, check if should skip in applyNextHandler , using the non-null parent as the switch. Works with ContentStack, but when testing with Accordion and TabSet, when changing current contentPane, since they use @PostConstruct, selectedId is null on restore view construction, so doesn't break but not optimised.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29222 Mon May 28 16:01:46 MDT 2012 judy.guglielmin MOBI-218 remove findComponent call from contentPane to determine if it is the selected content
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/renderkit/BaseLayoutRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29233 Tue May 29 15:46:45 MDT 2012 mark.collette MOBI-218 : ContentPane component
          Files Changed
          Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneHandler.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackWithCForEach.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout/LayoutBean.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/lib/generator/ace-generator.jar
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentPane.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/included.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStack.xhtml
          Hide
          Mark Collette added a comment -

          Made the ContentPaneHandler work when contentPane is in a contentStack parent. Tested with a c:forEach of contentPane(s) and also tested with the whole contentStack within an h:dataTable although can't use the dataTable var to drive the relevant properties of course since everything needs to be available in construction.

          Subversion 29233

          Show
          Mark Collette added a comment - Made the ContentPaneHandler work when contentPane is in a contentStack parent. Tested with a c:forEach of contentPane(s) and also tested with the whole contentStack within an h:dataTable although can't use the dataTable var to drive the relevant properties of course since everything needs to be available in construction. Subversion 29233
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29270 Thu May 31 16:38:13 MDT 2012 mark.collette MOBI-218 : ContentPane component
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/renderkit/BaseLayoutRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSet.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSetMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSetRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordion.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/resources/org.icefaces.component.accordion/accordion.js
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/utils/Utils.java
          Hide
          Mark Collette added a comment -

          Changed Accordion and TabSet to use currentId instead of their indexing for determining the selected pane/tab.

          Subversion 29270

          Show
          Mark Collette added a comment - Changed Accordion and TabSet to use currentId instead of their indexing for determining the selected pane/tab. Subversion 29270
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29280 Mon Jun 04 08:28:14 MDT 2012 mark.collette MOBI-218 : ContentPane component
          Files Changed
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordion.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/accordion/AccordionRenderer.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionInMultiRowDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackWithCForEach.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackInMultiRowDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout/LayoutBean.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetWithCForEach.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetInMultiRowDataTable.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSet.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionWithCForEach.xhtml
          Hide
          Mark Collette added a comment -

          Made TabSet only set currentId in decode, removing the redundant call in broadcast. Added more tests.

          Subversion 29280

          Show
          Mark Collette added a comment - Made TabSet only set currentId in decode, removing the redundant call in broadcast. Added more tests. Subversion 29280
          Hide
          Judy Guglielmin added a comment - - edited

          Accordion:- javascript wasn't allowing for removal of contentPane by application using c: forEach, so fixed that and cleaned up the test pages a bit for accordion. Now works in all current tests as of rev 29284

          Show
          Judy Guglielmin added a comment - - edited Accordion:- javascript wasn't allowing for removal of contentPane by application using c: forEach, so fixed that and cleaned up the test pages a bit for accordion. Now works in all current tests as of rev 29284
          Hide
          Judy Guglielmin added a comment -

          Request that attributes for the cacheType be modified to add:-

          facelet = "true" ....means to use the tag handler to NOT add the children of the contentPane to the server component tree. Default will be false.
          clientSide= "true" ....meaning that facelet attribute MUST be false and the contentPane is always rendered on the client.
          clientSide="false" ...meaning that if the facelet attribute is true, the handler will determine whether the children are added to the component server tree (if "selected" then the children are added) and the Renderer will only render the children of the selected contentPane.

          Show
          Judy Guglielmin added a comment - Request that attributes for the cacheType be modified to add:- facelet = "true" ....means to use the tag handler to NOT add the children of the contentPane to the server component tree. Default will be false. clientSide= "true" ....meaning that facelet attribute MUST be false and the contentPane is always rendered on the client. clientSide="false" ...meaning that if the facelet attribute is true, the handler will determine whether the children are added to the component server tree (if "selected" then the children are added) and the Renderer will only render the children of the selected contentPane.
          Hide
          Ted Goddard added a comment -

          client="true/false" should be sufficient.

          client="true" causes the faclet attribute to effectively be ignored. If this is difficult to implement, then it can just be an error to use client="true" facelet="true".

          Show
          Ted Goddard added a comment - client="true/false" should be sufficient. client="true" causes the faclet attribute to effectively be ignored. If this is difficult to implement, then it can just be an error to use client="true" facelet="true".
          Hide
          Judy Guglielmin added a comment -

          I have made the changes locally and in the tag handler, I read the 2 TagAttributes "client" and "facelet" and do the following:-
          boolean overridden = false;
          if (client != null && client.getValue(ctx).trim()=="true")

          { overridden = true; }

          // System.out.println(" remove key");
          if (facelet == null || facelet.getValue(ctx).trim()!="true" || overridden==true)

          { // System.out.println(" cacheType not tobeconstructed"); return false; }

          //System.out.println(" cacheType is tobeconstructed");
          if (!(parent instanceof ContentPaneController))

          { // System.out.println(" parent not ContentPaneController"); return false; }

          //System.out.println(" parent is ContentPaneController");
          String selectedId = ((ContentPaneController)parent).getSelectedId();
          if (selectedId == null || selectedId.length() == 0)

          { // System.out.println(" selectedId not set"); return false; }

          //System.out.println(" selectedId is set");
          if (selectedId.equals(c.getId()))

          { // System.out.println(" selectedId equal to id"); return false; }

          // System.out.println(" selectedId not equal to id => SKIP");
          return true;
          }

          ///
          in this way, if client is true, then facelet (tobeconstructed) is disregarded as it is overridden by the other attribute. I can't leave it in the renderer to resolve, so had to place it all here.
          Am testing now, but it appears that this does work. Any gotchas I need to watch for?

          Show
          Judy Guglielmin added a comment - I have made the changes locally and in the tag handler, I read the 2 TagAttributes "client" and "facelet" and do the following:- boolean overridden = false; if (client != null && client.getValue(ctx).trim()=="true") { overridden = true; } // System.out.println(" remove key"); if (facelet == null || facelet.getValue(ctx).trim()!="true" || overridden==true) { // System.out.println(" cacheType not tobeconstructed"); return false; } //System.out.println(" cacheType is tobeconstructed"); if (!(parent instanceof ContentPaneController)) { // System.out.println(" parent not ContentPaneController"); return false; } //System.out.println(" parent is ContentPaneController"); String selectedId = ((ContentPaneController)parent).getSelectedId(); if (selectedId == null || selectedId.length() == 0) { // System.out.println(" selectedId not set"); return false; } //System.out.println(" selectedId is set"); if (selectedId.equals(c.getId())) { // System.out.println(" selectedId equal to id"); return false; } // System.out.println(" selectedId not equal to id => SKIP"); return true; } /// in this way, if client is true, then facelet (tobeconstructed) is disregarded as it is overridden by the other attribute. I can't leave it in the renderer to resolve, so had to place it all here. Am testing now, but it appears that this does work. Any gotchas I need to watch for?
          Hide
          Mark Collette added a comment -

          You can just call getBoolean(ctx) on client and facelet, since they're boolean properties now.

          Show
          Mark Collette added a comment - You can just call getBoolean(ctx) on client and facelet, since they're boolean properties now.
          Hide
          Mark Collette added a comment -

          I was thinking that maybe ContentPaneMeta should be changed to make the @Property annotations for cache and facelet to have an Implementation of Implementation.EXISTS_IN_SUPERCLASS so that no getter or setter will be made in the component itself, since the component properties aren't used and the tag attributes are used directly, instead.

          Show
          Mark Collette added a comment - I was thinking that maybe ContentPaneMeta should be changed to make the @Property annotations for cache and facelet to have an Implementation of Implementation.EXISTS_IN_SUPERCLASS so that no getter or setter will be made in the component itself, since the component properties aren't used and the tag attributes are used directly, instead.
          Hide
          Judy Guglielmin added a comment -

          the client attribute is used in the Renderer. If you have facelet="false", then client makes a difference on whether the children are rendered or not --if client="true", they are always rendered on client, if client="false" then, the children are only rendered when the pane is selected.
          I can see doing this with the facelet attribute though as the Renderer doesn't care about this one at all. I can put that in if you like (since I am working on it now).

          Show
          Judy Guglielmin added a comment - the client attribute is used in the Renderer. If you have facelet="false", then client makes a difference on whether the children are rendered or not --if client="true", they are always rendered on client, if client="false" then, the children are only rendered when the pane is selected. I can see doing this with the facelet attribute though as the Renderer doesn't care about this one at all. I can put that in if you like (since I am working on it now).
          Hide
          Mark Collette added a comment -

          Ok then we should let it generate all the code for isClient() and setClient(), but then override the methods in ContentPane so make them not use the clientId and not try to set or get it per row. Just copy and paste the generated methods in, and strip out the row related stuff.

          Show
          Mark Collette added a comment - Ok then we should let it generate all the code for isClient() and setClient(), but then override the methods in ContentPane so make them not use the clientId and not try to set or get it per row. Just copy and paste the generated methods in, and strip out the row related stuff.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29370 Thu Jun 07 13:04:10 MDT 2012 judy.guglielmin MOBI-218 remove "cacheType" attribute for contentPane and subsequent fix of all test pages in mobitest to remove this attribute and replace it with "client" and "facelet" attributes.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionInMultiRowDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPane.java
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/includes/other.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackWithCForEach.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackInMultiRowDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStackInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentPane.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/ajaxComponents.html
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/panelStack-tabSet.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSet.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordion.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/includes
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneHandler.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/java/org/icefaces/mobile/layout/LayoutBean.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetWithCForEach.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/tabSetInMultiRowDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/index.html
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/contentStack.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/components/tests/mobitest/src/main/webapp/layout/accordionWithCForEach.xhtml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29372 Thu Jun 07 13:38:37 MDT 2012 judy.guglielmin MOBI-218 needed to commit this for contentPane
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/tabset/TabSetRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29373 Thu Jun 07 13:58:25 MDT 2012 judy.guglielmin MOBI-218 needed to commit this for contentPane has features of layout menu incorporated
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackMeta.java
          Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29511 Thu Jun 14 11:32:49 MDT 2012 patrick.corless MOBI-218 updated mobile showcase's main panelStack to use the new contentPane attribute facelets = true. Also updated the individual demo tabset to client=true.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/resources/components/exampleTabset.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/metadata/context/ExampleImpl.java
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/showcase_small.xhtml
          Commit graph ADD /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/util/CompTreeMonitor.java
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/tabset.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/content/content-stack.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/tabset-example.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/layout/contentstack-example.xhtml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29587 Wed Jun 20 15:18:16 MDT 2012 patrick.corless MOBI-218 further tweaks to try and get textarea to submit data, still a work in progress.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/InputTextTag.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29592 Wed Jun 20 15:23:24 MDT 2012 patrick.corless MOBI-218 updated home.jsp so that tabset tabs will mutate into a menubar when screen width is creater then 481 pixels.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/samples/icemobilespring/src/main/webapp/WEB-INF/views/home.jsp
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29600 Wed Jun 20 16:09:04 MDT 2012 patrick.corless MOBI-218 touched up attributes for use of a tabset outside of a pagePane.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetWithCForEach.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetInMultiRowDataTable.xhtml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29605 Wed Jun 20 17:08:43 MDT 2012 judy.guglielmin MOBI-218 clean up of Meta file.
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneMeta.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29607 Wed Jun 20 17:15:38 MDT 2012 patrick.corless MOBI-218 added fixedHieght attribute for tabsets used in tables and with c:foreach
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetInDataTable.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetWithCForEach.xhtml
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/tabSetInMultiRowDataTable.xhtml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29609 Wed Jun 20 17:16:58 MDT 2012 patrick.corless MOBI-218 addition of theme support for contentPane on android, bberry and honeycomb.
          Files Changed
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/bberry
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/honeycomb
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/android
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/build.xml
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/bberry/default-contentpane.css
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/honeycomb/default-contentpane.css
          Commit graph ADD /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/android/default-contentpane.css
          Hide
          Judy Guglielmin added a comment -

          this component was completed for 1.1 Beta release. Any further work should be done on new jira

          Show
          Judy Guglielmin added a comment - this component was completed for 1.1 Beta release. Any further work should be done on new jira
          Judy Guglielmin made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Migration made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37681 Tue Aug 27 07:12:36 MDT 2013 philip.breau MOBI-218 ContentPane comp
          - remove deprecated and confusing selectedId attribute
          - remove unneeded ContentPaneController class
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentstack/ContentStackRenderer.java
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentstack/ContentStack.java
          Commit graph DEL /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/api/ContentPaneController.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37683 Tue Aug 27 07:47:43 MDT 2013 philip.breau MOBI-218 ContentPane comp
          - remove deprecated and confusing selectedId attribute
          - remove unneeded ContentPaneController class
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37684 Tue Aug 27 07:52:23 MDT 2013 philip.breau MOBI-218 ContentPane comp
          - remove deprecated and confusing selectedId attribute
          - remove unneeded ContentPaneController class
          Files Changed
          Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/contentpane/ContentPaneHandler.java

            People

            • Assignee:
              Mark Collette
              Reporter:
              Judy Guglielmin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: