Center the box

Hi,
I wanna center the panelBox within the page. Any advice?
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" binding="#{backingBeanScope.backing_my.d1}">
<af:form id="f1" binding="#{backingBeanScope.backing_my.f1}">
<af:spacer width="100" height="10" id="s4"/>
<af:panelStretchLayout id="psl1"
binding="#{backingBeanScope.backing_my.psl1}"
startWidth="150px" endWidth="150px"
topHeight="300px" bottomHeight="150px">
<f:facet name="top"></f:facet>
<f:facet name="center">
<af:panelBox text="Login"
binding="#{backingBeanScope.backing_my.pb1}"
id="pb1" inlineStyle="background-color:#649374;"
showHeader="always">
</af:panelBox>
<!-- id="af_one_column_stretched" -->
</f:facet>
<f:facet name="start">
<af:inlineFrame id="if7"/>
</f:facet>
<f:facet name="end">
<af:inlineFrame id="if6"/>
</f:facet>
<f:facet name="bottom">
<af:inlineFrame id="if3"/>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_my-->
</jsp:root>

Hi,
To which component dou you want to set background image check following samples
1)back ground image <af:panelStretchLayout
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1" >
      <af:form id="f1" >
        <af:panelStretchLayout id="psl1"
                               inlineStyle="background-image: url(images/sky_c.jpg)"
                               startWidth="404px" endWidth="510px"
                               topHeight="301px" bottomHeight="287px">
          <f:facet name="top">
            <af:inlineFrame id="if1"/>
          </f:facet>
          <f:facet name="center">
            <af:panelBox text="Login"
                         inlineStyle="background-color:#649374;"
                         showHeader="always">...</af:panelBox>
            <!-- id="af_one_column_stretched" -->
          </f:facet>
          <f:facet name="start">
            <af:inlineFrame id="if7"/>
          </f:facet>
          <f:facet name="end">
            <af:inlineFrame id="if6"/>
          </f:facet>
          <f:facet name="bottom">
            <af:inlineFrame id="if3"/>
          </f:facet>
        </af:panelStretchLayout>
      </af:form>
    </af:document>
  </f:view>
  <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_my-->
</jsp:root>2)back ground image for panel box
Note:To appear back ground image set disclosed="false" for PanelBox
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1" >
      <af:form id="f1" >
        <af:panelStretchLayout id="psl1"
                               startWidth="404px" endWidth="510px"
                               topHeight="301px" bottomHeight="287px">
          <f:facet name="top">
            <af:inlineFrame id="if1"/>
          </f:facet>
          <f:facet name="center">
            <af:panelBox text="Login" disclosed="false"
                         inlineStyle="background-color:#649374;background-image: url(images/sky_c.jpg)"
                         showHeader="always">...</af:panelBox>
            <!-- id="af_one_column_stretched" -->
          </f:facet>
          <f:facet name="start">
            <af:inlineFrame id="if7"/>
          </f:facet>
          <f:facet name="end">
            <af:inlineFrame id="if6"/>
          </f:facet>
          <f:facet name="bottom">
            <af:inlineFrame id="if3"/>
          </f:facet>
        </af:panelStretchLayout>
      </af:form>
    </af:document>
  </f:view>
  <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_my-->
</jsp:root>-Suresh

Similar Messages

  • Center the Dialog box

    Hello friends,
    i tried this code to center the JDialog but i didnt get.
    Dimension dialogSize = this.getPreferredSize();
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setLocation(screenSize.width/2 - dialogSize.width/2,screenSize.height/2 - dialogSize.height/2);
    plz help me guys........

    Here is an class that does what you wanna do, just call it with JDialog as an argument. Also added one constructor for JFrame.
    import java.awt.Toolkit;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    public class setLocationCenter {
         public setLocationCenter(JFrame frame) {
              Toolkit verktyg = Toolkit.getDefaultToolkit();
              int xHorn = ((verktyg.getScreenSize().width - frame.getSize().width) /2);
              int yHorn = ((verktyg.getScreenSize().height - frame.getSize().height) /2);
              frame.setLocation(xHorn, yHorn);
         public setLocationCenter(JDialog dialog) {
              Toolkit verktyg = Toolkit.getDefaultToolkit();
              int xHorn = ((verktyg.getScreenSize().width - dialog.getSize().width) /2);
              int yHorn = ((verktyg.getScreenSize().height - dialog.getSize().height) /2);
              dialog.setLocation(xHorn, yHorn);
    }

  • When trying to open an email attachment the box that asks what firefox should do is off the left hand side of the page and i cannot click on it .how do i move this to the center of the page?ive tried everything mac support said to contact you

    the only part of the box showing is the red/yellow dots that are lit-green dot is not lit

    Some pages add their own margin to the minimum margin set in Page Setup. First you might reduce the margin here:
    Alt+f (displays the classic File menu) > Page Setup > Margins & Header/Footer tab
    Second, you could try using Shrink to Fit. However, if the image is a background image rather than part of the content of the page, that might not have any effect.

  • G580 can't backup right out of the box. Not enough space

    I recently aquired a G580 with the i5 processer, 500gb hard drive and  Win8. I see the lenovo center is telling me to do a backup and since I just set it all up the way I wanted I figured it's a good idea anyway. I follow the instructions and it automatically makes a path to the D drive. I click backup and it say's there isn't enough space?
    Seems my hard drive was partitioned from the factory with only a 25gb (24.9 to be exact) D drive. Now the only thing on the D drive is an applications folder with nortons and a driver folder with what looks to be backups of the OEM drivers. All this takes up 2gb of space. The backup is saying it needs 25.2 gb. So even without those files on the D drive I still wouldn't be able to make a backup.
    I am reading the partitioning thread but I'm lost really. Plus I don't really want to be messing with partitions on a brand new machine out of the box. It seems I might have too though. Any input is appreciated. Thanks.

    Hi,
    Let me suggest a few things. I guess that will clarify few of the doubts.
    1. The factory default image is saved on the OEM partition (hidden). This can be used through One Key recovery for loading factory defaults.
    2. Refer to this link on creating a back up of factory default image. This can be used to get Windows back in case of hard drive failure or replacement. Applies to Ideapads also. Link
    3. The option of creating Backup using the One Key Recovery software is for the current system image and not the factory default image. Hence the size will vary from user to user and I guess the D drive will not be sufficient for this. Anyhow, as you mentioned, creating the backup on external drive makes more sense.
    Hope I was able to clarify few things.
    Did someone help you today? Press the star on the left to thank them with a Kudo! If you find a post helpful and it answers your question, please mark it as an Accepted Solution

  • Center the component without resize in JPanel

    Hi, I have a JPanel in a JFrame. I put in this JPanel objects that extends from a JPanel. It works all ok, but I want to center the components that I include. I use the BorderLayout.CENTER , but the components automaticly have resize it and this is verry bad.
    How can I make the center position of the components witchout to resize it?
    Thanks verry much!
    Nikolay

    BoxLayout is good. We use that almost exclusively for our GUI layouts.
    To centre both horizontally and vertically you can do this:panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS);
    panel.add(Box.createGlue());
    panel.add(component);
    panel.add(Box.createGlue());Regards,
    Tim

  • Return Sony without the Box?

    Hello,
    I bought a Sony hdr-as100v.
    It works as it should.
    Yet truthfully, I want to exchange it for the Go Pro Hero3 Black.
    Can I return this Sony cam without the original box?
    I have all the accessories, documentation, original recipt, with me.
    Yet I do not have the box the camera came in with.
    Any idea what I can do?

    Hey sonyCamUser,
    Good question! You can absolutely return products without the original packaging as long as you're still within the 15-day return period. Just be aware that a small deduction may apply for any missing documentation or accessories when processing the return. The return period is also extended to 30 days for My Best Buy Elite members and to 45 days for Elite Plus members. Full details can be found here:
    BestBuy.com > Help Center > Return & Exchange Policy
    http://bbyurl.us/RTE
    I hope this helps.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Move document set [out of the box]

    is there a out of the box solution to move document set between libraries?
    I have created site collection using Document Center site template for SP2013 Enterprise. 
    I was really surprised that Doc Set has no functionality to move it from one library to another? 
    Option needs to be available to end user in like 3-4 steps from document set ...
    Any tips?  
     

    Hi
    TUlee ,
    For moving document set between libraries, you can use the Site Content and Structure in the site settings. Using the Site Content and Structure  function we can manage both the content and structure
    of your SharePoint site collection.  To access the Site Content and Structure page, you must have a minimum of Contribute permissions.
    For more information, you can refer to the article:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/07/29/how-to-use-the-site-content-and-structure-manager-in-sharepoint-2013.aspx
    http://office.microsoft.com/en-001/sharepoint-server-help/work-with-site-content-and-structure-HA010131723.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Spry horizontal menu, can't center the whole menu bar

    I have a horizontal menu set up more or less how I want it
    (after much time). But I can't seem to figure out how to center the
    entire menu. Adding padding or margins pushes it out beyond the
    700px box even if I resize the menu itself to be smaller than
    700px. The page is here:
    http://peacefuldriver.net/mnguitar/index_dropdown.htm#.
    And the CSS:
    http://peacefuldriver.net/mnguitar/SpryAssets/SpryMenuBarHorizontal.css.
    Thanks for your help.

    another_nickname wrote:
    > I have a horizontal menu set up more or less how I want
    it (after much time).
    > But I can't seem to figure out how to center the entire
    menu. Adding padding or
    > margins pushes it out beyond the 700px box even if I
    resize the menu itself to
    > be smaller than 700px. The page is here:
    >
    http://peacefuldriver.net/mnguitar/index_dropdown.htm#.
    >
    > And the CSS:
    >
    http://peacefuldriver.net/mnguitar/SpryAssets/SpryMenuBarHorizontal.css.
    >
    > Thanks for your help.
    >
    I'm not familiar with the spry menus - but if you were to
    play with the
    padding on this rule (1.85em might just do it) I think you
    can achieve a
    pretty good result......
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    background-color: #EEEEEE;
    padding: 0 1.5em;
    color: #0000CC;
    text-decoration: none;
    /*background-image: url(../images/line.gif);
    background-repeat: no-repeat;
    background-position: right;*/
    HTH
    chin chin
    Sinclair

  • New ipad out of the box will not boot up?

    I have a new iPad2 new out of the box and will not boot up.  It is fully charged and when I touch the sleep/wake botton a usb cable appears with an itunes icon in the center.  Nothing happens when I touch the screen.  Any thoughts?

    Connect it to a computer with iTunes installed.

  • Brand New 30g Video Ipod...dead right out of the box

    So I take my new ipod out of the box and it wont turn on. I plug it up to the outlet charger and the screen lights up but says nothing and does nothing. It makes a little humming noise and gets very very hot also. Plugging it up to computer hasn't helped, it doesn't even light up with it. Anyone have any ideas?

    Welcome to Discussions!
    Have you tried resetting the iPod by holding the Menu and Center buttons?
    If that doesn't change anything, it sounds like you received a defective iPod.
    You can 1) return it to the store or 2)fill out a service request here: http://depot.info.apple.com/ipod
    ~Lyssa

  • S430 - touchpad not working at all out of the box

    Hi all
    I know there's a few people who have problems with the touchpad on their thinkpads, I've got another, different problem!  
    I got mine out of the box yesterday and neither the touchpad nor the red joystick controller in the keyboard work.  The buttons on the touchpad also don't work.
    Luckily I had a USB mouse at home and I've been able to the laptop up and running, but no luck trying to get the touchpad working.  I've gone through the user guide, the help guide, the lenovo website etc, but not finding anything.
    When I go into the "control panel", then "hardware and sound" and select "device manager",  the only "mice and other pointing devices" that I have is my HID-compliant mouse which seems to be the USB mouse.  The touchpad doesn't feature at all.
    If I go into "control panel" and select "mouse"  I don't actually have a tab for "UltraNav".  Since all the help out there tells me to go to that tab, I don't really know what to do!
    If I go through the Lenovo Solution Center, it tells me that the "ThinkPad UltraNav Pointing Device" is disabled and to fix it I need to go to the Device Manager.
    But, as already said, in the device manager there's nothing I can do!
    Any help would be much appreciated.
    cheers
    Harry

    Hi
    This notebook seems to belong to the PSAF5E series.
    I wonder where you have found the drivers for this series ?:|
    However, I have checked the Toshiba European page and didnt find the Vista touchpad driver especially for this series.
    BUT the page provides some touchpad drivers (two drivers) for the Equium A200 PSAEE.
    I would recommend installing the Alps Electric Touch Pad driver v7.0.301.4 and the Synaptics Touch Pad driver v. 9.1.14.0.
    By the way; its always recommended to reinstall the OS with the Toshiba recovery CD. If you dont have such CD you could order it from the ASP which is responsible for you country.

  • When floating DIV tags, I am unable to center the tags? help..

    I am relatively new to dreamweaver, and have only used CS4 prior to CS5.5.
    I am creating a website that has three columns, the header and the links bar to all other pages centers fine. But when i try and align the DIV tags it acts as if it is glued to the left or right hand side of the screen.
    I am just wondering if there is a way to align the most left of the tags to directly underneath the most left of the header and the same for the right hand side?
    If anybody could help it wouyld be much appreciated.
    Thanks.

    First, the way you have to handle multiple columns is to wrap them in a larger div.
    So you'll have a container with three divs, name them left, center, right.
    So here are your styles in CSS:
    #container {
              width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
              background: #FFFFFF;
              margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
              border: 1px solid #000000;
              text-align: left; /* this overrides the text-align: center on the body element. */
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
              clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #left {
              float: left; /* since this element is floated, a width must be given */
              width: 180px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
              background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
              padding: 5px; /* padding keeps the content of the div away from the edges */
              margin-top:15px;
    #right {
              float: right; /* since this element is floated, a width must be given */
              width: 280px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
              background: #FFFFFF; /* the background color will be displayed for the length of the content in the column, but no further */
              padding: 5px 5px 5px 5px; /* padding keeps the content of the div away from the edges */
    #center {
              margin: 0 290px 0 190px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
              padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    Now, when you put together your HTML, you'll do this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Page Title goes here</title>
    <link href="path/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <div id="header">
        header goes here
        </div>
      <!-- end #header --></div>
    <div id="left">
    Left Content Here
    </div>
    <div id="right">
    Rightmost Content goes here. Please note the middle section comes after the right section.
    </div>
    <div id="center">
    This is the center stuff and you will note that it has margins that keep it to the center.
    </div>
    <!-- This clearing element should immediately follow the #center div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <div id="footer">
    Footer stuff goes here and is as wide as the main container
    </div>
    </div>
    </body>
    </html>

  • Sending my iphone 5 in for a repair and have done all of the instructions including the "erase all content and settings". The phone took me back to the basic set up menu, and now won't turn off. Does it need to be off before going in the box?

    The repair it's going in for is the sleep/awake button not working. So im not sure if it's a matter of the button not working or the fact that the phone normally doesn't shut down when you're in the start up menu/setting up all your options (ex. language, country, etc..) Should i just put it in the box to send back with it turned on?

    Hi, kaboomer.
    Thank you for the question.  You can send in your iPhone to our repair depot powered on.  We will proceed with evaluating your device once the unit is received. 
    Service Answer Center - iPhone
    Cheers,
    Jason H. 

  • I want to use Native System Center Software Center Notification box or Windows Update dialogue box to force a reboot.

    I'm installing software that will require a reboot. I would like to use the Windows Update dialogue box to prompt users to reboot.
    Or a reboot dialogue box that mimics System Center Software Center Notification box
    Does anyone know of a way to use the System Center Client notification or the Windows update box to force a reboot. This is familiar to my users and will not freak them out 

    The Coretech Shutdown Tool is free, excellent and would satisfy your requirement.
    http://blog.coretech.dk/kea/new-version-of-the-coretech-shutdown-tool/
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

Maybe you are looking for