Nested Grid Panels

Hello,
I'm trying to center my website and the only way i though i could do this was to put all my components into some sort of table or something, and since JSC does not support colspans and rowspans, i had to make do with nested Grid Panels. Boy, was i in for a heck of a time.
After a few hours of fudging i finally got the layout i wanted, in Design Mode that is. When i deployed it to the App Server 8 and viewed it in IE, the final result was not rendered the same as what i had in design mode. For instance, i had a nested grid panel which contained a button and an empty grid panel. The empty grid panel was basically used to offset the button in a certain direction for better placement (if there is a better way, pls tell me!). Anyway when deployed, this was not rendered properly such that the empty grid panel was not included - the button was centered in the parent grid panel rather than offset to the right (the way i wanted it).
Another thing which didn't work were some of my image components. Some loaded their images correctly and some others did not - they were blank and had a red cross in the corner.
Is there a known issue with nested grid panels? I had quite a few levels of nests so maybe the browsers did not like this? Thanks a lot.
Mitch_J.

Let me try to clarify what you're seeing here.
The grid panel component is really intended as a -container- component. In particular, at runtime, if the grid panel has zero components as children, it will take up -zero- space. It might render an empty <table> tag, or it might render nothing - I can't remember what's in the component renderer logic. But the end result is the same: You shouldn't use an empty grid panel component as a "spacing" component.
Why does it work in the designer then, you're asking?
That's deliberate designtime behavior to make it easier to work with the component. Let's say you want to drop a grid panel compoent, and then put a button or two in it. First you drop the grid panel. Uh oh - if the designer renders it the same way as it will be at runtime, the grid panel will have size 0,0 (or maybe even be invisible) and you (a) don't see it, and (b) can't drop on it in the designer. (As a workaround, you -can- drop on it in the Outline, but still, this is not what users expect at designtime).,
So, the component designtime renderer will enforce a minium size on the component for the specific case that the component is empty or invisible, forcing a small border on the component, such that it's easily visible and easily a drop target.
If you want a spacing component, try a Static Text for example, with some space characters in it.
-- Tor
http://blogs.sun.com/tor

Similar Messages

  • Display a buttons in the footer of a grid panel

    I display images in a grid panel .I want to know how to add components in the footer part of the panel.
    Because when I add them simply by using
    grid.getChildren().add(component);they are added just after the last displayed image.
    I thought to the VerbatimTag element by adding the
    tag but I didn't found which method to use to add the
    tag into the VerbatimTag.
    Thanks in advance for your help.

    Can you please explain to me because I m really knew with JSF.

  • After editing a photo in another program, the photos return to the library at the end of the grid panel instead of at their original loacation.  How do I avoid this or alternatively, is there a quick way of moving them back to their original position inst

    After editing a photo in another program, the photos return to the library at the end of the grid panel instead of at their original loacation.  How do I avoid this or alternatively, is there a quick way of moving them back to their original position instead of clicking and dragging them?

    Sort your photos by File Name or Capture Date
    Use View->Sort

  • How to specify column span for a row in grid panel

    In a grid panel with 4 columns, how to set one of the rows to span all 4 columns?

    I don't think it's possible with the standard JSF component. There are no hooks to get it to emit a rowspan attribute on the <td> it will render for each cell. There is a hook to get it to add a styleclass, but that won't help with colspans and rowspans.
    -- Tor
    http://blogs.sun.com/tor

  • Bulleted List within a Grid Panel

    Hi,
    I'm trying to format an HTML page, using the Grid Panel component to arrange various text and images.
    In one of the text sections I need a bulledted list, but can't seem to find a way to do that, within the Grid Panel.
    I need this page to be a JSP page, as it is going to be dynamic.
    All help/advice would be appreciated.
    Regards
    Haroon

    Hi Haroon,
    Please go through the below jsp code to get a bulleted list in a grid panel
    <h:panelGrid binding="#{Page1.gridPanel1}" id="gridPanel1" style="left: 48px; top: 48px; position: absolute">
                            <ul>
                                <li>One</li>
                                <li>Two</li>
                                <li>Three</li>
                            </ul>
                        </h:panelGrid>Hope this helps
    Cheers
    Giri

  • Nested Collapsible Panels

    Hi I have found a bug in using the collpasible panels, in a
    nested manner. No problem in IE 6, after I altered the class for
    the main CollapsiblePanel container, to have overflow:hidden( which
    prevents (in IE6 & IE7) the nested sub-panels, showing
    underneath/through a main panel, when collapsing (even after giving
    the main panel a background color).
    When interacting with sub-panels, after the initial loading
    of the page, the height of the master panels grow appropriately,
    based on sub-panel opening and closing, until, the sub-panel is
    collapsed and subsequently the main panel is also collapsed.
    IN IE 7, a main panel, housing a sub-panel, will not grow to
    the appropriate height , after a sub-panel has been collapsed and
    then the main-panel is collapsed. After re-opening the main panel
    and then clicking the sub-panel's tab, the subpanel's content gets
    cuts-off, until the main panel is closed and re-opened, at which
    point everything grows correctly.
    How do I get the interim height of the subpanel, to size the
    main panel correctly, without closing the main panel while the
    sub-panel is opened, and then reopening the main panel?

    For the first problem you'll have to use overflow: auto which
    will not cut the content that will not fit into the element but
    instead will show scrollbars. The default behavior in CSS say that
    an element shouldn't grow if has a fixed height if the content will
    be larger. Instead there are 3 options: the content is displayed on
    top over the element but the element shouldn't resize because will
    affect all the other elements in the flow (default browser
    behaviour, overflow: visible) or it should cut the content and
    display the part that enter in the viewport (overflow: hidden) or
    should show scrollbars to be able to scroll the viewport and see
    the full content (overflow: scroll).
    The only method to allow the element to enlarge to the same
    size as the content within is to not specify a height. In this
    situation the element will expand itself to its content height. In
    this situation you'll have to put the useFixedPanelHeights option
    of the Accordion widget to false (default is true) which will mean
    the Accordion is not controling the height anymore and will leave
    each panel with the height you set.
    Now, the second problem appears because when you open a panel
    we are animating the transition from the element current height to
    0px and the other way around by setting a gradual fixed height.
    Because of this the last height value used to animate will remain
    set to the element. When you change the content into a Panel, the
    Panel is no longer able to resize automatically for the reasons I
    explained above. Unfortunately there is no solution to this issue
    other then to disable the animation by passing "enableAnimation"
    option to false into the constructor.
    Regards,
    Cristian

  • Nested Accordion Panels

    I want to set up a set of nested Accordion panels but I don't know how. For instance I want to make a 3 tier Navigation structure that accordions. So I would have for example: Object 1>Sub 1> Sub Sub1, Object 1>Sub 1> Sub Sub2, Object 1>Sub 2, Object 2>Sub 1> Sub Sub1, Object 2>Sub 1> Sub Sub2, Object 2>Sub 2>Sub Sub 1, Object 2>Sub 2>Sub Sub 2. However, you seem to only be able to have a sliding panel with content under it and not be able to nest it with a panel inside a panel.
    I would use the Spry Menu Bar because it has multiple tiers however I really like the sliding feature. I know I have seen this type of menue before but I cannot remember where. Any help would be greatly appreciated.
    Also, can you have a diferent number of sub elements? You seem to only be able to pick one size all of your sub content. However, my content is not uniform in length.
    Thanks

    <!DOCTYPE HTML>
    <html>
    <head>
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet">
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">
            <div id="Accordion2" class="Accordion" tabindex="0">
              <div class="AccordionPanel">
                <div class="AccordionPanelTab">Label 1</div>
                <div class="AccordionPanelContent">Content 1</div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab">Label 2</div>
                <div class="AccordionPanelContent">Content 2</div>
              </div>
            </div>
        </div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <script src="SpryAssets/SpryAccordion.js"></script>
    <script>
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false });
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", { useFixedPanelHeights: false });
    </script>
    </body>
    </html>
    Gramps

  • How to align content in Grid panels

    Hello,
    I have a grid panel using the following tag <h:panelGrid> . I have only one column and I want the child component inside it, to be placed in the middle of the panel and not on the left part as it is done by default. I can probably use something like "left 50%; position relative" but I really don't like that. Any other ways?
    Thanks in advance,
    Tony

    Replying to myself...
    using a "text-align:center" in h:panelGrid declaration :-).

  • Form Guide - Nested Optional Panels questions translations

    Hi!
    I'm developping a multi language form guide. Thanks to the Paul's workaround, I'm able to translate the field caption. But I cannot find a solution to translate the questions/answers in nested optional panels. Does somebody know a way to do that?
    Thank you
    Denis

    Not that I am aware of

  • Fragments in Grid Panels

    I've read in other posts that Creator does not handle page fragments in Grid Panels (at lease not well). I've tried everything I can think of to get fragments to work in a Grid in order to avoid using absolute positioning or inconsistently behaving CSS, and have little to no luck doing so.
    I'm also disappointed that Struts Tiles do not work with Creator. I'm really still evaluating this product, and I'm on the verge of going on to another if I can't find a flexible way of handling fragments.
    For example, I have a footer fragment that I want to "float" at the bottom of my content as the last row in a Grid. Alas, I cannot put the footer in a Grid so I'm forced to use absolute positioning or a css class that behaves differently in various browser types. Other than the limited options with fragments I love Creator; however, I may be forced to go with another tool.
    Am I missing something? Is there actually a way to put a fragment into a Grid Panel and see it show up in my design view (and when deployed)?
    Thanks,
    Tom

    Hi Tom,
    not sure you are missing something. IMHO it is NOT working. I have already posted two subjects on the related theme and there is no consistent answer from Creator team.
    Try to use LayoutPanel and put your fragment using CSS at the bottom of this panel.
    Best regards,
    Alex

  • Nested Sliding Panel in an Accordion Panel

    I have a nested Sliding Panel inside an Accordion Panel.
    The Sliding panel will show until the Accordion panel is
    completely closed then it abruptly hides itself.
    It does this only in IE of course.
    Not sure if a sliding panel can be properly nested inside an
    Accordion panel so if anybody could please tell me I would really
    appreciate it.
    Thank you,
    Bisser.

    Hi kinblas,
    I changed the AccordionPanelContent5 to "hidden" and it still
    keeps the image displayed until the Accordion Panel closes, and
    then the nested sliding panel image disappears abruptly. This only
    happens in IE.
    Any other suggestions would be welcome.
    Thank you,
    Bisser.

  • Clear Grid Panel

    I'm using panel Grid to display images .And I use buttons to scroll into the list of the images.But in each listener of the buttons I must clear the panel grid to display the images for the associated page.
    Because the last images still displayed despite the fact that I have created a method named
    findAndRemoveComponentInRoot(componentId);
    to remove components by Id.
    And I also have Exception
    Component ID form1:Results:button0 has already been found in the view.
    I also tried with this
    for(int j=0;j<grid.getChildCount();j++){
                grid.getChildren().remove(j);
            }But I still have the exception.
    How can I do please.
    Thanks.

    Hi,
    The components are of various types like display components, input / output components, containers etc. The grid panel is a container. The containers can only hold other components. There is no action even associated with the container components. Also grid panels are not visible components. How do you propose to click on something that is not visible. It would be better if you explained your use case.
    Cheers
    Giri

  • How do I move back to the grid panel

    There must be a key command to move between the grid panel or the filmstrip and the keywording panel, isn't there? I don't want to use my mouse. I just want to select the photo (if I'm in the grid panel I just move right arrow or left) and then go to the keywording panel (Command K) and then GET BACK TO THE GRID PANEL SO I CAN SELECT THE NEXT PHOTO. I've looked at a lot of articles and lists of key commands for Lightroom 4 and can't seem to find the answer.

    In case this helps, pammmm, the Esc key is used in many programs to back out of ("escape" from) a lot of places. For example, if you're in a dialog box, pressing Esc is usually the same as clicking the Cancel button. You'll find the Esc key used in this way in all kinds of programs, from Photoshop to Microsoft Word.
    It is possible that the reason Esc isn't documented is because it isn't documented in a lot of other programs either. It's probably just assumed as a "power user" shortcut, the same way a lot of people know that they can press Enter instead of clicking OK.

  • OutputText in Grid Panel problem.

    Can anyone explain why the text displayed using an outoutText component is a single line running off the end of the screen instead of being contained within the area of an outputText component?
    I expected the code below to give a two column table. The first column contains images and the second contains outputText components. The width of the columns is set using the stylesheet classes centrala and centralb to be 25px and 325 respectively.
    The outputText gets the text to display from a property file and the fonts etc are set using the stylesheet with the styleclass centraltext shown below.
    Thanks in advance for any help with this.
    John.
    <h:panelGrid binding="#{central.gridPanel3}" columnClasses="centrala,centralb" columns="2" id="gridPanel3" style="width: 350px; height: 333px;">
                <h:graphicImage binding="#{central.image1}" id="image1" style="width: 24px; height: 50px;" value="images/spacer.gif"/>
                <h:outputText binding="#{central.outputText5}" id="outputText5" styleClass="centraltext" value="#{info.c1}"/>
                <h:graphicImage binding="#{central.image2}" id="image2" style="width: 24px; height: 12px;" value="images/leafbulletpoint.gif"/>
                <h:outputText binding="#{central.outputText1}" id="outputText1" styleClass="centraltext" value="#{info.c2}"/>
                <h:graphicImage binding="#{central.image3}" id="image3" style="width: 24px; height: 12px;" value="images/leafbulletpoint.gif"/>
                <h:outputText binding="#{central.outputText2}" id="outputText2" styleClass="centraltext" value="#{info.c3}"/>
                <h:graphicImage binding="#{central.image4}" id="image4" style="width: 24px; height: 12px;" value="images/leafbulletpoint.gif"/>
                <h:outputText binding="#{central.outputText3}" id="outputText3" styleClass="centraltext" value="#{info.c4}"/>
                <h:graphicImage binding="#{central.image5}" id="image5" style="width: 24px; height: 12px;" value="images/leafbulletpoint.gif"/>
                <h:outputText binding="#{central.outputText4}" id="outputText4" styleClass="centraltext" value="#{info.c5}"/>
            </h:panelGrid>
    .centraltext {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        line-height: 12px;
        color: #ffffff;
        width: 324px;
        height: 50px;
    }

    Yes: Output Text renders a <span> containing the text. A span is an inline tag. And according to the CSS2.1 spec, the "width" property is ignored (does not apply) when in normal flow: http://www.w3.org/TR/CSS21/visudet.html#q4 .
    That's because when you put the output text inside a grid panel, it's not absolutely positioned itself - it's normal flow (the grid panel might however be absolutely positioned but that doesn't matter).
    If you drop an output text on its own and change its width, you'll notice that it -does- cause the text inside to be wrapped; that's because the width property does apply for absolutely positioned inline boxes; just not for normal/static flow inline boxes.
    -- Tor
    http://blogs.sun.com/tor

  • How can I nest Tabbed Panels 2

    I am trying to learn HTML and need help using Tabbed Panels 2.
    I have three defualt tabs which are very simple to do but how can i nest four tabs with content inside one of the defualt tabs?
    Link to Documentation.

    Haven’t begun to try it yet. Looking at some tutorials.
    But I appreciate the heads up.
    Bill Liedlich
    TerraGroup Corporation
    Tactical Water Purification Systems
    Po Box 8839
    Allentown, PA 18105 USA
    p  610-821-7003
    f   610-821-7025
    [email protected]
    [email protected]<mailto:[email protected]>
    www.tacticalwater.com<http://www.tacticalwater.com/>
    CONFIDENTIALITY NOTICE: This electronic mail transmission, its contents and any attachments to it, are privileged and confidential, and/or may contain legally privileged and confidential information and is intended only for the review of the party or parties to whom it is addressed.  Any dissemination, distribution, copying or forwarding of this message, its contents or attachments to other than the intended recipient(s) is strictly prohibited.  If you are not one of the intended recipients, or have received this transmission and its contents in error, please immediately return it to the sender.  Unintended transmission shall not constitute a waiver of any "Confidentiality Notice" privilege.

Maybe you are looking for

  • I cannot open a document from an earlier version of pages.

    Hope someone has a helpful solution for me.  I am trying to access my resume that I did in an earlier version of Pages.  I tried to open it today and saw an error saying that the document could not be opened.  I have tried researching this and basica

  • Print a report with a long cross table

    Hi experts, I try to explain..XD I have a large cross table, and when I print it, the report is cut on the write hand, because it's to large. Por example, the number 123.234.234 its part in : frist page 123.23 second page 34234 There is a solution to

  • IDOC status 54

    Hello! IDOC status 54 - Error during formal application check... Has this status any specific meaning and usage? In which cases it is recommended by SAP to set it? Should it always be followed by a record with status 51? Thanks and best regards, Vlad

  • Need Prior month data in OBIEE Anwers

    Need help!!!! Report output should look like this Month is the prompt value and the report should show two measures one for present period and another for the previous year. MONTH     NET AMOUNT   NET_AMOUNT_PREVIOUS JUN-07               1234        

  • HighPoint RocketRAID 2322 v1.1.1 and OS X Yosemite?!

    Help! I have no access to my 32 TB archive, I can not install the driver for the HighPoint RocketRAID 2322 v1.1.1 under OS X Yosemite?!