CF8 Tab Layout Problem

I'm having a problem with <cflayout type="tab">. The
issue is that the <div> that contains the layout is initially
hidden on the page and revealed through a javascript function. When
the cflayout is revealed, the tab labels are missing. If the layout
is visible on the page load, the labels display fine. Can anyone
think of a workaround for this? I've attached code to reproduce the
issue.

yep, you are right!
however... removing the ' style="display:none;" ' from your
div and
adding
onload="document.getElementById('myDiv').style.display='none';"
to the <body> tag of your page* seems to fix this...
hmm... well, in
every browser except IE...
* aternatively, you can add
document.getElementById('myDiv').style.display='none'; inside
a /script
html tag right after the closing </div> instead of
adding onLoad to the
/body tag... but this too does not seem to work in IE... i
hate MS s*&t!!!
anywway, here's the code i tested with:
<body
onload="document.getElementById('myDiv').style.display='none';">
<p><a href="#"
onclick="(document.getElementById('myDiv').style.display=='none') ?
document.getElementById('myDiv').style.display='' :
document.getElementById('myDiv').style.display='none';">Show/Hide</a></p>
<div id="myDiv">
<cfform name="theform" format="html">
<cflayout type="tab">
<cflayoutarea title="Tab 1">
</cflayoutarea>
<cflayoutarea title="Tab 2">
</cflayoutarea>
<cflayoutarea title="Tab 3">
</cflayoutarea>
<cflayoutarea title="Tab 4">
</cflayoutarea>
<cflayoutarea title="Tab 5">
</cflayoutarea>
</cflayout>
</cfform>
</div>
</body>
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Similar Messages

  • Problem with scroll tab layout in JtabbedPane

    Pls. if anyone know this, help me
    I have a problem, my scroll tab layout policy does not working when I set it to UI.
    import javax.swing.*;
    import javax.swing.plaf.basic.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.plaf.*;
    public class Components_Area extends JFrame{
         JTabbedPane tab = new JTabbedPane(JTabbedPane.TOP,JTabbedPane.SCROLL_TAB_LAYOUT);
         JLabel l[] = new JLabel[5];
        public Components_Area() {
              tab.setUI(new TestPlaf());
              tab.addTab("Untitled",l[0]);
              tab.addTab("Untitled",l[1]);
              tab.addTab("Untitled",l[2]);
              tab.addTab("Untitled",l[3]);
              tab.addTab("Untitled",l[4]);
              getContentPane().add(tab);
        public static void main(String args []) {
             Components_Area frame = new Components_Area();
             frame.setSize(200,200);
             frame.show();
         static class TestPlaf extends BasicTabbedPaneUI {
              protected LayoutManager createLayoutManager() {
                   return new TestPlafLayout();
              protected Insets getTabInsets(int tabPlacement,int tabIndex) {               
                   Insets defaultInsets = (Insets)super.getTabInsets(tabPlacement,tabIndex).clone();
                   defaultInsets.right += 50;
                   defaultInsets.top += 2;                
                   return defaultInsets;
              class TestPlafLayout extends TabbedPaneLayout {
                   //a list of our close buttons
                   java.util.ArrayList closeButtons = new java.util.ArrayList();
                   public void layoutContainer(Container parent) {
                        super.layoutContainer(parent);
                        //ensure that there are at least as many close buttons as tabs
                        while(tabPane.getTabCount() > closeButtons.size()) {
                             closeButtons.add(new CloseButton(closeButtons.size()));
                        tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
                        Rectangle rect = new Rectangle();
                        int i;
                        for(i = 0; i < tabPane.getTabCount();i++) {
                             rect = getTabBounds(i,rect);
                             JButton closeButton = (JButton)closeButtons.get(i);
                             //shift the close button 3 down from the top of the pane and 20 to the left
                             closeButton.setLocation(rect.x+rect.width-20,rect.y+4);
                             closeButton.setSize(15,15);
                             tabPane.add(closeButton);
                        for(;i < closeButtons.size();i++) {
                             //remove any extra close buttons
                             tabPane.remove((JButton)closeButtons.get(i));
                   // implement UIResource so that when we add this button to the 
                   // tabbedpane, it doesn't try to make a tab for it!
                   class CloseButton extends JButton implements javax.swing.plaf.UIResource {
                        public CloseButton(int index) {
                             super(new CloseButtonAction(index));
                             setBorder( BorderFactory.createEmptyBorder() );
                        setToolTipText("Close this tab");
                             //remove the typical padding for the button
                             setMargin(new Insets(0,0,0,0));
                        addMouseListener(new MouseAdapter() {
                                  public void mouseEntered(MouseEvent e) {                           
                                   setBorder( BorderFactory.createLineBorder(Color.black, 1 ));
                                 public void mouseExited(MouseEvent e) {                                
                                      setBorder( BorderFactory.createEmptyBorder() );
                   class CloseButtonAction extends AbstractAction {
                        int index;
                        public CloseButtonAction(int index)     {
                             super("x");
                             this.index = index;
                        public void actionPerformed(ActionEvent e) {
                             tabPane.remove(index);
    }     Message was edited by:
    henyo

    If someone knows this, help me!

  • Problem in scroll tab layout policy

    Hi everyone!!
    I made a application using tabbedpanes. My problem is when i put
    an "x" button for close in the tab title area the scroll tab layout policy
    are not working, but if no button it's working.
    I need a closable Jtabbedpane with scroll tab policy.
    Pls anyone help me.
    It's my big appreciation

    no i dont have the code,
    i am just telling the idea....
    create a image labels inspite of tabs create panels corresponding to it
    add ur needs inside the panel and make it visible according to the tab clicked

  • Siebel Sales Enterprise 8.0.0.8 - problem with Screen Tab Layout

    Hello all !
    I create [Manager] Resonsibility and check hide [Opportynities screen] in Screen Tab Layout for [Manager] Resonsibility for Siebel Sales Enterprise.
    I added user Bob with [Manager] resonsibility.
    But user Bob stiil see Opportunities Screen when log on.
    User Bob has no other resonsibilities.
    I cannot inactivate Opportynities screen because this screen used by other resonsibilities.
    What is cause of with issue?
    Best Regards
    Lev

    Hello,
    Did you delete the user preferences of this user prior to your test ?
    I also assumed that the default view is not part of Opportunity screen when you log in.
    Best Regards
    EvtLogLvl

  • PDF Portfolio Navigator with horizontal tab layout

    Hello, Experts
             I am trying to create a PDF Portfolios with horizontal tab layout structure;
             several .NET libraries allowed me to create PDF files with thumbnail layout, but, in order to populate a horizontal tab
             layout, it seems, I would need to create a custom PDF navigator and import it into PDF Portfolio prior to inserting PDF file components ?
            preinstalled navigators look great, but I just need a simple horizontal tab view, where each tab only contains file's name and nothing else;
             buy clicking on each tab - corresponding file would be activated in the viewer
           is there any library of predesigned navigators that I can use ?
            is there any way to extract navigator from one and import it into another PDF portfolio ?
           would I need to use Flash or can this be done via .NET ?
    Best Regards,
    -Alex

    tried to install Portfolio SDK
    can't see the Navigator project wizard in Flex Builder  (  4.6 )
    The plugins have been extracted to:
    C:\Program Files\Adobe\Adobe Flash Builder 4.6\eclipse\plugins
    The NavigatorSupport folder has been extracted to:
    C:\Program Files\Adobe\Adobe Flash Builder 4.6\eclipse and ( just in case ) to
    C:\Program Files\Adobe\Adobe Flash Builder 4.6\

  • CSS Layout Problem?

    Can someone please help me with a layout problem.
    As far as I can tell the page looks as it should in Netscape,
    Firefox, etc., but IE6 and 7 refuse to work correctly.
    The page I am working on is:
    http://www.vmtampademo.com/localangler/testpage.html
    Most of the picture caption and headline of the middle column
    is behind the picture. I attempted to force the info with a
    seperating div which seems to work sometimes. I doubt that this is
    the correct solution. What am I doing wrong?
    Thank you for the help!

    It looks fine in Firefox 2.0.0.1, Opera 9.10, and IE 7.

  • How to increase the height of a tabbed layout

    How to increase the height of a tabbed layout? I do have a form inside a panelTabbed layout which is not fitting inside.Is there any css class available ?
    Thanks
    Suneesh

    Hi,
    +"My panel tabbed layout is inside a detailStamp facet of a table"+
    you can set the StretchChildren property on the ShowDetailItem components to make the panel tab to resize the contained children. I set the inline style on a paneltab and the result shows in the rendered output
    Frank

  • Layout problem in PDF conversion

    Hi all,
    i am downloading spool data using the function module CONVERT_ABAPSPOOLJOB_2_PDF. But i am facing layout problem. e.g. RFBILA00(financial statement generation program) has written balancesheet data to the spool. This spool data has some 6 columns. but CONVERT_ABAPSPOOLJOB_2_PDF is writing only first 3 columns to the generated PDF file. i used 'GET_PRINT_PARAMETERS' function module also with values like layout as 'X_65_132' and 'X_90_120'. but no success. if anybody knows the answer, please let me know.
    Thanks in advance,
    Naveen

    Hi All,
    i am following the below approach to download the information from spool.
    program/spool output is an ALV List output data having 8 columns. but below approach is converting only first 5 columns in to PDF format. other 3 columns are getting truncated.
    FUNCTION /ngl/download_spoolinfo_as_pdf.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_SPOOL_REQUEST) LIKE  TSP01-RQIDENT
    *"     REFERENCE(I_FILENAME) LIKE  RLGRAP-FILENAME
    *"  EXCEPTIONS
    *"      DOWNLOAD_ERROR
      TABLES tsp01.
      DATA: mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
            mc_filename LIKE rlgrap-filename.
      DATA: mstr_print_parms LIKE pri_params,
            mc_valid(1) TYPE c,
            mi_bytecount TYPE i.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          copies                 = '1'
          cover_page             = space
          destination            = 'locl'
          expiration             = '1'
          immediately            = space
          mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
          line_size              = 200
          line_count             = 65
         layout                 = 'X_65_200'
          layout                 = 'X_90_120'
          sap_cover_page         = 'X'
        IMPORTING
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = i_spool_request
            no_dialog                = 'X'
            dst_device               = mstr_print_parms-pdest
          IMPORTING
            pdf_bytecount            = mi_bytecount
          TABLES
            pdf                      = mtab_pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
        IF sy-subrc EQ 0.
          mc_filename = i_filename.
          DATA: lv_filename TYPE string.
          lv_filename = i_filename.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize = mi_bytecount
              filename     = lv_filename
              filetype     = 'BIN'
            TABLES
              data_tab     = mtab_pdf
            EXCEPTIONS
              OTHERS       = 22.
          IF sy-subrc EQ 0.
            WRITE:/ mc_filename, 'CONVERTED TO PDF AND DOWNLOADED'.
          ELSE.
            WRITE:/ 'PROBLEM WITH DOWNLOAD'.
            RAISE download_error.
          ENDIF.
        ELSE.
          WRITE:/ 'PROBLEM WITH PDF CONVERSION'.
          RAISE download_error.
        ENDIF.
      ELSE.
        WRITE:/ 'PROBLEM GETTING PRINT PARAMETERS'.
        RAISE download_error.
      ENDIF.
    ENDFUNCTION.

  • Layout problem - multiple repeating frames

    Hi, I have a layout problem, pls help!
    Short report description:
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    - - - - .. other repeating frames ..
    When reaching the bottom of a page, and there is not enough room to print a record for Repeating frame 2, a record from Repeating frame 3 is printed in the bottom.
    Next page starts with the remaining records from Repeating frame 2.. and then the remaining records from Repeating frame 3.
    For example:
    Page 1:
    Rep frame 2 - Record 1
    Rep frame 2 - Record 2
    Rep frame 2 - Record 3
    Rep frame 3 - Record 1 -- not enough space to print Record 4, so this record is printed
    Page 2:
    Rep frame 2 - Record 4
    Rep frame 2 - Record 5
    Rep frame 3 - Record 2
    How can i ensure that all records from Rep frame 2 is printed before records from Rep frame 3?

    Hi, thanks for helping me out!
    I tried to use anchors, but they had no effect when connecting top of 3 to bottom of 2, got the same layout.
    I then tried to create frames with vertical elasticity expand around both rep frame 2 and rep frame 3, and it seems to do the job.
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Frame 4 - vertical elasticity expand
    - - - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Frame 5 - vertical elasticity expand
    - - - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    and so on..
    Thanks again

  • Change/ Add screen in Group Box specify tab layout for Asset master Record

    Hi All,
    I need to add or change group box in specify tab layout for Asset Master Record. Please advice where i can change or create new Group Box.
    Thanks & Regards,
    Pankaj

    Hi,
    Try at below path:
    Financial Accounting (New)>>Asset Accounting>>Master Data>>Screen Layout>>Define Screen Layout for Asset Master Data.
    here you can change the layout for the same.
    Kind Regards,
    Mehul

  • How to find number of subtabs in the in the sub tab layout

    Hi,
    I have a sub tab layout region.In that, i am hiding some some sub tabs based on some condition.I want to know how many visible sub tabs that a sub tab layout presently have in all of my sub tab controllers.Please Help me in this.
    Thanks
    Satya

    Satya,
    OASubTabLayoutBean subTabLayout = (OASubTabLayoutBean)webBean.findChildRecursive("SubTabLayoutRN");
    if(subTabLayout!=null)
          System.out.println("Child :"+subTabLayout.getIndexedChildCount());
    }Regards,
    Gyan

  • Layout Problem in swings

    I have an Layout problem. My Applications consists of a label and a panel in which some more labels are present.
    The panel should contain the scrollbar in order to view all the label that excced the size of the panel.This label and a panel should be adjacent to each other.
    My problem is, I am not getting the scroll bar to the panel when I am adding the label that excced the size of the panel, when I am adding the label adjacent to this label.

    Did you use JScrollPanel? If not, use it.

  • [solved] layout problem in amarok 2.02

    Hi,
    Here, I have a bad layout problem with amarok 2.02. Amarok does not fit on my screen which is 1400 pixels large! I cannot reduce the part where the collection is shown. So that it is really unpractical to use.
    I uploaded a snapshot to illustrate the problem (it is the full screen!):
    emmanuelfavrenicolin.free.fr/Public/Sna … ok202.jpeg
    Someone have the same problem ?
    I tried to install svn version but I stopped after 3 hours of compilation, it is quite a big application.
    Last edited by manouchk (2009-05-23 06:28:43)

    Well, I tried amarok2-devel 2.0.90-1 but the problem of graphic layout remains similar, no improvement. Is it normall? Maybe amarok is only available for computer with screen >= 1600x1200  or is there an hidden configuration file where I could tweek this?
    Last edited by manouchk (2009-05-18 02:41:03)

  • Urgent: Layout problem in "light inner page"

    Hi Experts,
    I am facing a problem in portal content area on external facing portal. I see a vertical scroll bar which restricts application from being displayed on entire screen.
    I am getting this problem after a patching of EP 7.0, before patching every thing was running fine.
    To me it looks like a layout problem in "light inner page", When I use "Light - 1: column (Full width)" layout I get a vertical scroll bar on portal. When I use default layout then this vertical scroll bar disappears but I see an empty navigation bar on left side which is not required.
    Can some one advise a solution for this.
    -Lave

    hi,
    Similar problem in this thread. check it out
    Desktop inner page lost
    Regardss,
    Ganesh N

  • Dynamic Tabs Layout

    Hello,
    I'm using the latest version of JHeadstart (11.1.1.3.35). I have selected Dynamic Tabs layout and everything works fine except that the home page still shows all the groups as a tab in home page. If I click on any of them it will go to the tree menu and dynamic tabs. I have also changed "Content Frirst-Level Menu Tab" to all possible values but it doesn't change anything. Any help would be appreciated.
    Sayyed

    Sayyed,
    The home page is just provided as a sample. It is a stand-alone page not a page fragment , so it cannot be used in a region. Since dynamic tabs only display regions, the dynamic tabs cannot be shown on the sample home page.
    If you want to have dynamic tabs on your home page, then create a Home group in your application definitiion editor, and check the group-level checkbox "Show as Initial Tab".
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for

  • Using unzip from unix in java-code ...

    Hi people, i have problem, i want to use the command unzip from unix, to unzip a zip-file, the commend unzip must invoke from java-code. Can someone help me. I use the zip-api, but i have 100Mb zip-file, it needs very long time to unzip the zip-file.

  • Canvas disappear on sending multiple requests specifically from IE 11

    I have a page which displays few javascript charts on it. I am using RGraph chart API to generate charts. The charts are been generated from a separate Ajax call. The page is working fine with IE 7, 8, 9 and 10. Then recently I have upgraded to IE 11

  • What's a fair price for a used GX660R 060US?

    Excellent condition and comes with two cases and a cooler. Only has 1 HD.

  • No javaw in jrockit-jdk1.6.0_33-R28.2.4-4.1.0

    Hi i am trying to use the jrockit jvm for my eclipse. The documentations tells me that i have to point to javaw as the jvm in the eclipse.ini file. I have installed jrockit-jdk1.6.0_33-R28.2.4-4.1.0 and jrockit-jdk1.6.0_37-R28.2.5-4.1.0 on my oracle

  • Maintain Field status grups for vendors

    In IMG - Vendor master - define account groups  with screen layout -, I'm trying to change one of the fields in General data - control tab.  there are two pages for this to viewl all fields associated with the control.  I could only view the first pa