Threadinar10 - Page Separator, Page Fragment Box , Tab Set & Tab Components

Hi All,
This is the tenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date.
This Threadinar will discuss 4 components in the "Components Palette: Layout Section" section of the Creator Component Catalog.
The components we will focus on today are
"Page Separator", "Page Fragment Box" , "Tab Set" & "Tab" Components.
Let us begin our discussion with the "Page Separator" Component.
Page Separator Component
You can drag the Page Separator component from the Palette's Layout category to the Visual Designer to create a horizontal line that resizes to any page width selected by the user. This component is the visual equivalent of an HTML <hr> tag.
In the page bean, a Page Separator component is a PageSeparator object.
* Note: If you want to use an HTML <hr> tag, drop a Meta component on the page and set its tag property to hr.
[b]Page Fragment Box Component
This component enables you to include a page fragment in a page. A page fragment is a separate, reusable part of a page that can be included in any number of pages. For example, you might want to put a common a visual element like a header graphic in a page fragment and then include it in all the pages in an application.
When you drag the Page Fragment Box component from the Layout category of the Palette and drop it on a page, the Select Page Fragment dialog box prompts you for the name of the page fragment to be included. You can enter the name of an existing page fragment or create a new page fragment. If you create a new page fragment, the IDE gives the new fragment a .jspf file suffix and creates a node for it in the Projects window, as well as adding the page fragment to the Outline window.
* Note: A Page Fragment Box component simply includes a page fragment in a page. Deleting a Page Fragment Box component from a page does not delete the page fragment itself, even if you originally used the Select Page Fragment dialog box to create the page fragment.
After dropping a Page Fragment Box component on the page, if you click inside the component, you see the properties for the included fragment. If you click the border of the component, you see the properties for the enclosing <div> block. You can also use the Outline window to select the enclosing block, the page fragment, or the components in the page fragment. In the Outline window, the Page Fragment Box component is represented by a node named directive.include:fragment-file.jspf, where fragment-file is the name of the page fragment file.
If you double-click the page fragment, it opens as a page in the Visual Editor, enabling you to edit it like a regular page. The page fragment has an associated JavaBeans object, a page fragment bean, which you can edit by clicking the Java button at the top of the page fragment when it is open in the Visual Editor. As with a regular page, if you drop a component like a button in a fragment, double clicking adds an event handler in the page fragment bean, enabling you to reuse the code on any page to which you add the page fragment. A common scenario for reusing component code would be a Search Box fragment that has a search Label, a Text Field where the user enters the search string, some Inline Help, and search logic code in the page fragment bean.
* The tab order of the components in the page is unlikely to work properly unless you enclose the entire page fragment box in the Faces Verbatim component.
For more details see tutorial : "Using Page Fragments"
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
[b]Tab Set Component
The Tab Set component in the Palette's Layout category is a container for a set of Tab components. Typical uses of a tab set are:
* To provide alternate sets of components on the same page and enable the user to navigate to them by clicking on tabs. The user sees only the components under the currently selected tab. For more information on adding components to tabs, see Tab Component.
* To navigate among a set of pages. If you use a tab set this way, you would usually have the tab set near the top of each page with the component's width set at 100%. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. In addition, you would need to delete the default Layout Panel component under each tab so the tab would display the page contents.
You can set Tab Set properties in the component's Properties window.
A Tab Set component contains Tab Components, and Tab components can contain other Tab components. You can see these components displayed as hierarchical nodes in the Outline window after you add a Tab Set to your page.
You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dropping a new tab component on the Tab Set or on a Tab component.
You can drop a new tab component on a tab set in the Visual Designer to the right or left of existing tabs to create a new tab at that level. The tabs in a tab set can also be containers for other tabs. If you drop a Tab component on an existing tab, the new tab becomes a child of the tab on which you dropped it. The maximum number of levels for tabs is three.
The tab set component determines which tab is rendered as selected, storing the value in the selected property. By default, the selected property is set to the first tab created for the component. If you click a tab while designing your web page, that tab becomes the selected tab. You can tell during design time that a tab is selected because its color changes.
[b]Tab Component
A Tab is part of a Tab Set component. You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dragging a new Tab component from the Layout category of the Palette and dropping it on the Tab Set or on another Tab component. You can also drag from the Palette and drop the tab on the tab set's nodes in the Outline window.
* If you drop the Tab component to the left or right of an existing tab, it is added to the same row of tabs.
* If you drop the Tab component on an existing tab, the dropped tab becomes a child tab of the tab on which you drop it unless the existing tab is a third level tab. You can have at most three levels of tabs in a tab set.
o Note: You cannot add a child tab to a tab that has components in its Layout Panel. When you drop a tab on an existing tab component that has an empty Layout Panel, the empty Layout Panel is deleted to make room for the dropped tab.
By default, a Tab component has a Layout Panel below it where you can drop components that will be displayed when the user selects the tab. The Layout Panel by default has its panelLayout property set to Grid Layout, meaning that components dropped on the panel are aligned at the location where they are dropped. You can change the layout behavior by setting the panelLayout property to Flow Layout, which aligns dropped components left to right in rows. For more information on Layout Panel properties, see Layout Panel Component Properties Window.
To select a tab in a tab set, either click the Tab component on the page or select the Tab component's node in the Outline window. To select the whole tab set, either click the border of the Tab Set component on the page or select the tab set's node in the Outline window. Alternatively, you can select a Tab component and either press Escape or right-click and choose Select Parent to select its parent component.
* Note: If you select a tab on a page in the Visual Designer, a side effect is that it becomes the selected tab. If this effect is not what you want, select the tab in the Outline window so you can set its properties.
You can drag tabs in the Outline window to change their location and level in the tab set.
Some typical uses of tabs:
* You can drop components on the Layout Panel component below a tab to enable a set of components to be displayed below each tab. When the user selects a tab, they see only the components that are associated with the tab, without having to change pages.
* You can use a tab set to navigate among a set of pages. Each tab component links to a page in your web application. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. If you want to use the tab set for page navigation, be sure to delete each tab component's Layout Panel.
You can also right-click the Tab component and choose one of the following options:
* Edit action Event Handler. Code the action event handler, the method that is called when the user clicks the tab. This method determines which page or resource to open based on specified conditions. The action method typically processes mouse clicks and returns a string indicating the name of a page navigation case (the page in your application to display next). The default name for the method is tab-id_action, where tab-id is the value of the tab's id property.
* Bind to Data. Dynamically set the text that appears on the tab. You can bind the component's text property to an object or a data provider, as described in the topic Bind to Data Dialog Box.
* Property Bindings. Opens a dialog box that enables you to bind properties of the component in addition to the text property to other objects or bean properties that update this component's properties automatically.
[b] Please join in and share your comments, experiences, additional information, questions, feedback, etc. on these components. <br><br>
Thank you for your participation

The following blog has a mini tutorial on using a tab set in a page fragment for page navigation:
http://blogs.sun.com/divas/entry/tabbing_thru_the_tulips
A reader commented that the mini tutorial needed to be improved upon to show how to keep the tab state and navigation state in synch.
How would you do it? If you have a good example, maybe post it to this thread.
Also, there is no tab tutorial but it is on the priority list. What would you like a tab tutorial to show how to do?

Similar Messages

  • Blank Sheet at beginning and between every printed page; Separator Page dialog box is blank.

    I followed directions of another blog and when I got to the Separator Page dialog box, it said to "delete all templates listed in the Separator Page box", but mine was blank.  If I click on the browse button, I do find pcl,sep; pscript.sep; sysprint.sep; and sysprtj.sep files.  Do I delete these sep files?  I have a HP Photosmart C7280 All-in-One Printer and am using Windows 7 (had same problem with VISTA).

    I had this issue using FF 5.0, I fixed it by doing the following :
    # Go to firefox button, select options, options.
    # Find all the applications that are listed as Adobe
    # Change the action from 'Use Adobe Reader (in FireFox)' to 'Use Adobe Reader'
    Fixed :)

  • Parent Tab Set Problem with 1.6

    Hi,
    I came across a small issue when trying to add tabs (2 sets) to a non tab enabled application. Here are the steps to reproduce it:
    1. Switch page default theme to 2 tab sets (edit theme)
    2. Click on tabs link in page editor, takes you to tab manager with 2 add buttons, one on parent and one on tab set.
    3. Click add parent (opens create parent tab wizard)
    4. Enter Parent Tab Label then click next
    5. Error: Tab set or new tab set must be specified.
    It seems that the only way to create a parent tab set is through the new application wizard (defaults to main) or through the standard tab set wizard (Tab Parent). Do you think this should also be available through the create parent wizard?
    I also had some problems with the automatic naming of the tabs. The wizards seem to be a little inconsistent, sometimes asking for a label (and deriving the name) and other times asking for the name. It gets very confusing when you have tabs and parent tabs named the same, especially with the addition of parent tab set and tab sets. Would it be possible to use a different prefix for the different tab types, e.g.
    PTS_XXX (parent tab set)
    PT_XXX (parent tab)
    TS_XXX (tab set)
    T_XXX (tab)
    I'm really impressed with this product, but I think the tabs section tripped me up the most (page templates, page attributes, parent tab sets, parent tabs, tab sets, tabs, etc.) and the manual kind of glossed over a lot of it.
    Thanks.
    James Thorby
    HTMLDB 1.6
    Oracle 10G

    Hello,
    Ahg 1.6?
    You really need to upgrade. If your not the one in charge of that start complaining to whoever is, there are so many enhancements and new features it would be hard to list them.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Tab set font color

    I just downloaded the fix pack and have noticed that I am still unable to change the tab set tab font color.  Am I doing anything wrong?'
    Thanks,
    DD

    I believe what Purnima was speaking of was the Tab Background color properties.
    However, I believe there is an issue with the Label Over Color and Label Selected Color mapping properties of the Tab Set.
    Thanks.

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

  • Dynamically set Tab current pages

    Here’s a quick summary of the situation I’ve got.
    Let’s say I have an application with 4 report pages. Three display some data about rows in my database. All 3 contain the column ‘Control #’ which is linked to the 4th report which displays more detailed information about that Control # object.
    When I click on the Control # link and go to the 4th report, I would like the Tabs current for the 4th report to match the Tabs current of the page I came from. In other words, if I clicked on the Control # link on page 1, I would like the 4th pages current tabs to match page 1’s current tabs. The same goes for pages 2 and 3.
    I’ve tried &(some global variable). and :(some global variable) and v(‘some global variable’) in the Tabs current pages fields but that doesn’t work.
    Is it possible to do what I’m trying to do?

    Reports 1, 2 & 3 all exist in individual two tab pages. Pages 1 & 2 would have the same parent tab and their own sub tab. Page 3 would have its own parent tab. When in those pages the appropriate tabs are 'current'. When I click on Control # on any page and go to page 4, I would like the source pages tabs to stay 'current' when displaying page 4.
    By the way, my actual application has in the neighborhood of a dozen pages which are like reports 1,2,& 3 as I described above. Rather than build a dozen identical (with the exception of current tabs) page 4's, I would rather build one page 4 and dynamically set page 4's current tab to the source page's current tab.
    It's a visual reminder to the user as to which page they were on when they clicked the Control # field.
    I also have 8 - 10 SVG charts which I have linked to reports. About 6 of them display the same report using different parameters. Again, I would like THAT report to have the same current tab as the source chart (chart clicked on to invoke the report).

  • Even though set to open to home page, Firefox always opens in a new tab and to the previous tabs. All settings seem correct. I just want it to open in a new window to my home page

    I cannot open Firefox in a clean new window to the home page. Options are set to open to home page and open new window in new tab is deselected. I do not want my history coming up every time I open. All new pages come up in a new tab with the existing one staying put.

    This happens when I have multiple windows open. I have one window minimized on the task bar. I then launch a new firefox window and start surfing, opening multiple tabs in that window. Then I close that window. (My original window is still minimized in the taskbar). Now, I launch a new firefox window and the tabs that I had opened in the window I had just closed are all back.
    If I close all windows and then launch firefox, it goes to my home page.
    FYI, I'm running Windows 7 64-bit.

  • In FF 3.6, adjoining the back forward button, there was a dropdown which allowed me to jump to any page in the history list of the tab. This feature is missing in FF4. Is there any setting to enable it?

    In FF 3.6, adjoining the back forward button (on the left of address bar), there was a dropdown which allowed me to jump back/forward to any page in the history list of the tab. This feature is missing in FF4. Is there any setting to enable it?

    For me, I have the same question, this is a poorly done upgrade and I want to go back to 3.6

  • Acrobat 9.5 Pro now FAILS to detect page size differences if the Trim Box is set

    Previous versions of Acrobat and even of Acrobat 9.x would flag pages whose "size or orientation is different" if the actual media box size was different from page to page. However, it seems that 9.5 now will not flag a document that has pages without a trim box whose media box matches pages with a trim box that are larger.
    This is completely counter-intuitive, as these pages would print at different sizes. Not all devices use the trim box setting in a PDF.
    Can someone explain what changed in Acrobat between then and now and if there is a way to change it back?
    Thank you.

    1) Opened PDF where most of the pages have all page boxes set to zero, with media box (true page size) set to 6" x 9". One subset of pages has a media box of 6.25" x 9.25", but the trim box is set to 0.125" on all sides.
    2) Ran a preflight profile with the option "Page size or orientation differs from page to page" set to "Error", as it has been on all previous versions of Acrobat.
    3) "Page size or orientation differs from page to page" error does not get triggered.
    4) Tried same preflight profile settings on same PDF in Acrobat 7. Error does get triggered.
    5) Tried same preflight profile settings on same PDF on a copy of Acrobat 9 not fully updated to 9.5. Error does get triggered.
    6) Tried on various machines with 9.5 update. Error does not get triggered on any.
    I can only conclude that something has changed in the latest update.

  • How to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot controlled with mouse, returns auto to top of scroll slide, never remaining at bottom

    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.

    cjuan1morb4ulv wrote:
    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.
    The first two problems (box cycling from element to element on page, scroll bar returning to top) can be caused by a stuck (or defective) Tab key on the keyboard. Such damage can be caused by a liquid spill; just one tiny droplet is enough to short a wafer switch under one key.
    The last issue (black box, white text - sounds sorta like a debugger window) I haven't seen, but could be caused by something similar.
    To check for that, try using a different keyboard. If you're using a wireless keyboard, turn it off and see if the oddities stop.

  • Problem: Two Tab Sets for one page

    Hello everyone. I have two tab sets and each tab set has one common tab, for example an "About" tab that redirects the user to page 25 when clicked. The tab set works perfectly for the first tab set but when I'm in the second tab set and I click "About" the other tabs change to the first tab set.
    Does anyone know how to solve this problem without having to create multiple "About" pages?

    Hi Nithya,
    My requirement is to have two main windows in the same page. For each line item it is triggering a new page. In the first page both the windows are displayed as expected but in the second page only the first main window (MAIN00) is getting triggered and the second main window (MAIN01) is not triggered.
    Output got :
    page1:
    MAIN00
    a
    MAIN01
    a
    page2:
    MAIN00
    b
    MAIN01
    (blank)
    Expected output:
    page1:
    MAIN00
    a
    MAIN01
    a
    page2:
    MAIN00
    b
    MAIN01
    b

  • Tools Options changed from drop-down box to new tab full page. Why?

    Hello,
    Have Windows 7, Firefox Nightly 32.0a1 (2014-05-18) the latest update was a couple of hours ago. Since then, when I go to Tools>Options, instead of the Options menu opening in a drop-down window with General, Tabs, Content, Applications, Privacy, Security, Sync and Advanced at the top, it now opens as a new tab (full page) and of the eight functions, the "Tabs" is missing, the others are down the left side of the page.
    Also since this update, I am having problems with two forums, (both hosted by ProBoards) - the icons for links, video. image etc are missing, the "Like" button doesn't work, I cannot preview my posts, the clickable button/box to return to forum is missing. Others on the forum who use Firefox aren't having problems. I'm thinking it is the update causing these problems because they weren't appearing before.
    Thank you.

    That is the new "Options" display, added in today's Nightly when you go to open Options. '''"Tabs"''' preferences are on the "General" panel.

  • Associate 2 Standard Tab Sets to the same application page

    Can you associated 2 Standard Tab Sets to the same application page and only have one of the Standard Tab Sets display based on an item value on that application page?
    Thanks,
    Dan

    Hi Dan,
    to my knowledge you can't do that, because you can only assign one tab set with the page property "Standard Tab Set".
    But how about just creating one tab set where you conditionally display the tabs which are matching?
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Unique prob - often when I R-click a link in a page, FF goes "Not Resp" for up to 2 min - S/times crashes, or Re Starts with stalled tab set last on task bar.

    Unique prob - often when I Right-click a link in a page, FF goes "Not Resp" for up to 2 mins, then most often Re Starts with the stalled tab set (of the window that I clicked in) moving to last place on the browser task bar. Roughly 1 in 5 times when it happens, FF crashes. Done copious searching here & elsewhere & it would appear this is unique, as I can't see this exact problem mentioned. I have the latest FF version & assume all add ons update at that time or auto do so, (all set to default). Have also updated to latest "flash / shock wave".

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • How do i set tab control page size programmatically?

    Hi,
    I have a tab control in my program and each page has different amounts of controls on it. I would like to know how I can make the tab control pages resize automatically, only to fit the controls on the page and not have extra space underneath that other pages require.

    romulus wrote in message news:<[email protected]>...
    > Hi,
    >
    > I have a tab control in my program and each page has different amounts
    > of controls on it. I would like to know how I can make the tab control
    > pages resize automatically, only to fit the controls on the page and
    > not have extra space underneath that other pages require.
    You can use the tab control property 'PaneDimension' to
    programatically change the size of the tab control. To
    programatically find the areas occupied by the controls on each page:
    Use the 'Pages' property of the tab control to get a reference to the
    desired page; wire that to a property node and select the
    'ControlsOnPage[]' property; iterate through all the control
    refere
    nces, getting the position and bounds of each control, using
    'Max & Min' and shift registers to find the extent occupied by the
    controls.
    Paul Cardinale

Maybe you are looking for

  • How to find the path of Files (e.g. *.PDF,DOC,XLS) seen on PLMCfolders web?

    Hi, I am working on a requirment "Passing Cfolders documents/attachments to a third party document managemnt system. Question : Is it possible to see all the files which are uploaded in Cfolders like the ones seen in R/3 transaction AL11 at Unix leve

  • User can't receive mail; sending ok

    Hi, have read almost all mail topics, tried a lot of information, but nothing changed. user has enabled mail in workgroup manager (both pop and imap) and in server admin(settings/access/services/mail) and server preferences/users/services don't know

  • E71 how to remove setup email link from main page

    Recently got a E71 - very pleased with it.    Have installed nokia email and exchange mail - all working fine.   I ended up with 2 "setup email" links on the main page.  One i could select and hide,  the other I cannot.   When ever i boot the phone i

  • How to select a value of a max value of another column in the same row?

    pversion pdate pcount 1     11/6/2011     1 0     11/6/2011     25 1     11/6/2011     24 How to select pversion for a maximum pcount, in this case max count is 25 and version will be 0?

  • How to create a region using JDeveloper11g

    Guys, Requesting you to help in creating a region. Provide me any document you have or suggest me the guidelines to proceed with. Thanks, KK