How to align the components in panelGrid right?

I have a panelGrid with two column, the left column is a image and the right colum is commandLink.
<h:panelGrid border="0" columns="2" width="100%" columnClasses="headerColumn1, headerColumn2">
.headerColumn1 {
vertical-align: top;
width: 50;
.headerColumn2 {
vertical-align: top;
width: 100%;
text-align: right;
But the output is both column width are equal and the text in right column is align left. Can anyone points out what is the problem here?

Check if the generated HTML and CSS outputs are correct.

Similar Messages

  • How to align the components in a jsf page?

    Hi all,
    In my use case I need to use three UI components like push down menu
    a textbox and a button. when I dragged all the things on to my jsf page
    I am getting one by one.( I mean to say that I am getting button beneath pushdown
    and pushdown beneath the text box)
    I want all these components adjacent to each other.Kindly come up with the suggestions.
    Thanks,
    Phani.

    These three components surround with af:panelGroupLayout and set af:panelGroupLayout layout property to horizontal (you can find layout property in common section of Property Inspector).

  • How to align the spry menu pannel in dreamweaver cs4

    Can someone tell me how to align the spry menu pannel either left, center, are right in a div tag? I'm talking the whole pannel I have within a div tag.
    Thanks

    Defaults to left align
    To center ul.MenuBarHorizontal{margin: 0 auto; width: 32em;} addjusting the width to suit.
    To align right ul.MenuBarHorizontal {float: right; width: 32em;} addjusting the width to suit.

  • How to change the components in a visible JPanel?

    How to change the components in a visible JPanel?
    Is there any way to change the components in a JPanel while it is already visible in a JFrame? I tried the na�ve approach of removing the components and adding new ones, but the effect is not the expected.
    For now I'm opening new frames with newly created panels.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

  • How to align the text in justify format with SQL Server Reporting Services?

            How to align the text in justify format In SQL server Reporting Services? Is there any code to do so?

    Hi,
    I'm afraid that if you want to have this kind of functionality, you will need to write a custom control. Here is an example: http://msdn2.microsoft.com/en-us/library/ms345265.aspx. The issue with custom controls is that it needs to be known by all the reportservers that will render your report.
    Greetz,
    Geert
    Geert Verhoeven
    Consultant @ Ausy Belgium
    My Personal Blog

  • How to align the 2 rows into 1 row?

    Here is the SQL below:
    SELECT distinct QP.QIP_id,
            Max(decode( Upper(QP.Status_CD), Upper('Approved') , Effective_date, null ))  as Approved_date,
            Max( decode( Upper(QP.Status_CD), Upper('Submitted') , Effective_date, null ) ) as Submitted_date
             FROM  Llp_Sys.Project_Status QP
             WHERE Upper(Qp.Status_cd) in (Upper('Approved'),Upper('Submitted'))
                AND qp.qip_id = 79440
            GROUP by QP.QIP_ID,Qp.Status_CDThe output data is displayed as below:
    79440  NULL     01-FEB-10
    79440 04-FEB-10     NULLHow can I display only 1 row in the output instead of 2 rows.? I mean How to align the rows ?

    Hi,
    When you say
    GROUP by QP.QIP_ID,Qp.Status_CDthe output will contain one row for each distinct combination of values found for qid_id and status_cd. If you want one row for each distinct value of qui_id, including all status_cds, then say
    GROUP by QP.QIP_IDwithout mentioning qip_id, as Bigc suggested. There is nothing in the query that you posted that would cause an error if you did this. If you tried it and got an error message, then post the complete query that causes the error, and the complete error message, including the line number.
    (If all the columns in the GROUP BY clause are also in the SELECT clause, then you don't have to say SELECT DISTINCT , since the output has separate rows only for distinct values of the GROUP BY columns.)
    Whenever you have any problem, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. You'll get better answers faster.

  • How to align the number to the right

    Hi,
    Can anybody tell me ,
    1. if the field is related to number, align the value to the right and complete it to the left with 0.
    2. if the field is related to description, align the value to the left and complete it with "spaces".
    Please reply ASAP.
    Thanks,
    Madhu

    Hello Madhu
    If a field has a numeric type its contents is, by default, right-aligned.
    If a field has a alphanumeric type its contents is, by default, left-aligned.
    In order to remove leading spaces (2) you can use the CONDENSE statement.
    In order to add leading zero (1) you can use the OVERLAY statement.
    For details please refer to: [Processing Character Strings|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3357358411d1829f0000e829fbfe/content.htm]
    Regards
      Uwe

  • JTable How to align the Text in a Cell to Centre

    Hi Plese Help regarding JTable.
    I want to align the Text in the Table Cell to Centre how to align it. Im using Abstract Data Model TAble an what is the meaning of renderer and its use.. Help me out

    Here are a couple of links you should read for information on tables and renderers:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender
    http://www-106.ibm.com/developerworks/java/library/j-jtable/index.html?dwzone=java
    Here is an example of a simple renderer that will:
    a) center the text
    b) highlight the background when the cell gets focus
    This renderer is only used in two of the columns of the table.
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableRenderer extends JFrame
         public TableRenderer()
              String[] columnNames = {"Date", "String", "Integer1", "Integer2", "Boolean"};
              Object[][] data =
                   {new Date(), "A", new Integer(1), new Integer(5), new Boolean(true)},
                   {new Date(), "B", new Integer(2), new Integer(6), new Boolean(false)},
                   {new Date(), "C", new Integer(3), new Integer(7), new Boolean(true)},
                   {new Date(), "D", new Integer(4), new Integer(8), new Boolean(false)}
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              JTable table = new JTable( model )
                   //  Returning the Class of each column will allow different
                   //  renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
              //  Create cell renderer
              TableCellRenderer centerRenderer = new CenterRenderer();
              //  Use renderer on a specific column
              TableColumn column = table.getColumnModel().getColumn(3);
              column.setCellRenderer( centerRenderer );
              //  Use renderer on a specific Class
              table.setDefaultRenderer(String.class, centerRenderer);
         public static void main(String[] args)
              TableRenderer frame = new TableRenderer();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
         **  Center the text and highlight the focused cell
         class CenterRenderer extends DefaultTableCellRenderer
              public CenterRenderer()
                   setHorizontalAlignment( CENTER );
              public Component getTableCellRendererComponent(
                   JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                   super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                   if (hasFocus)
                        setBackground( Color.cyan );
                   else if (isSelected)
                        setBackground( table.getSelectionBackground() );
                   else
                        setBackground( table.getBackground() );
                   return this;

  • How to print the components in scrollpane

    hi there,
    can anyone tell me how to print the scrollpane components, i mean the headers & the main view of the component. i've a scrollpane with the following code and i want to print the components:
    JScrollPane pane = new JScrollPane(aTextPane);
    pane.setRowHeaderView(aLineNumberComponent);my requirement is i've a editor & lineno component as textpanes and added to scrollpane & when asked to print it should print the lineno component which resides in scrollpane's row header & the editor textpane which is the main view in the scrollpane. how can i achieve this?
    i'd would appreciate any suggestions & codes given.
    thanx in advance.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

  • How to disable the Super User menu - (Right click windows icon menu) - Server 2012 R2 - RDS

    Greetings all,
    Can anyone please advise how to remove the Administrator / Super User menu that appears when you right click the Windows Icon (old start button) in Server 2012 R2 - for RDS users. I have searched and been able to disable access to each of these menu items (Control
    Panel, Event Viewer, Run, etc). But I am searching for a way to completely remove the menu. This menu also appears when you use Win-X shortcut.
    Hope someone can help.
    Terry

    Hi Terry,
    You can try following points, might helpful in your case. Go to 
    C:\Users\Default\AppData\Local\Microsoft\Windows 
    there you will see file called WinX 
    Right click this file and copy then go to
    C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\Windows 
    then paste the file into the folder.
    NOTE: replace YOUR_USERNAME with your actual username. 
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to change the components of the planned order? (FM or BAPI)

    I need to change the storage(LGORT) in the components.
    I found only MD_PLDORD_CHANGE_COMP_ITEMS, but could not get the correct result.
    Has anyone used this FM to change the components of the planned order?
    Can you please tell how to use it. Or advise an alternative solution.

    Hi Anton,
    There's a BAPI to change planned orders - BAPI_PLANNEDORDER_CHANGE, but it allows to change only header data.
    Therefore you'll have to go a bit longer, and use a couple of other BAPIs:
    First read the order that you want to change - BAPI_PLANNEDORDER_GET_DETAIL
    Second, create a new planned order with the changed data, based on the read planned order - BAPI_PLANNEDORDER_CREATE.
    Third, delete the old planned order - BAPI_PLANNEDORDER_DELETE.
    Regards,
    Mario

  • How to resize the components in a JFrame when the JFrame Resizes?

    Hi all,
    i have some problems with my app. I have set the JFrame resizable and that works fine for the JFrame but not for the components in the JFrame.
    So my question is how can i set the components in a JFrame to resize automatically when the JFrame resizes?
    Here are the important things from my code,...if you need more, just let me know, its my first post in a forum .
    Its a JFrame with a JTabbedPane and on the Tabs are Panels with buttons and Tables.
    Thank you in advance!
    public class MainMonitor extends JFrame {
    public MainMonitor() {
              super();
              initialize();
              setVisible(true);
         private void initialize() {
              this.setSize(1145, 785);
              this.setIconImage(Toolkit.getDefaultToolkit().getImage("Images/c.gif"));
              this.setContentPane(getJContentPane());
              this.setTitle("Company Manager");
              this.setResizable(true);
              this.setLocationRelativeTo(null);
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.setOpaque(true);
                   jContentPane.add(getJTabbedPane(), null);
                   jContentPane.add(getJPanel11(), null);
              return jContentPane;
         private JTabbedPane getJTabbedPane() {
              if (jTabbedPane == null) {
                   jTabbedPane = new JTabbedPane();
                   jTabbedPane.setLocation(new Point(6, 69));
                   jTabbedPane.setSize(new Dimension(1120, 684));
                   jTabbedPane.addTab("P", null, getJPanel(), null);
                   jTabbedPane.addTab("K", null, getJPanel1(), null);
                   jTabbedPane.addTab("B", null, getJPanel2(), null);
              return jTabbedPane;
         

    Giasaste wrote:
    Thanks a lot, i didnt knew that the Layout Manager is a must.It's not a must, but it is the way to allow your app to be resized nicely and makes it much easier to maintain and enhance your program. Imagine creating a complex gui then later decide that you want another radiobutton and to remove a jlabel / jtextfield pair. with layout managers a chore becomes easy.

  • How to align the JLabel to the center

    Hi,
    I made a JFrame and a JLabel, I want to put the JLabel to the center of the North position. But it doesn't work, it's just placed in the upper left corner. I tried to use html code, such as:
    JLabel l = new JLabel("<html><h1><center>Hello</h1></html>");
    And then put it in the JFrame's north position, but it doesn't work either. What should I do?
    Thx
    Adrian

    Oh, sorry,
    I just found out the function on how to align it to the center, it's
    JLable.setHorizontalAlignment(JLabel.CENTER);
    Please forget about this question.

  • How are all the Components available in CCMS

    All,
    I am new to MI, I have one question: Once we register all the components in MCD, Are all these components required to be enabled/made available in CCMS? If so how will that be done?
    Regards
    Sudh

    Hi
    It is not necessary to make an entry of your components in CCMS. It is an optional configuration unless you want to be alerted on some updates. These steps will be defined clearly in your configuration docs.
    regards
    Arun

  • Subcontracting - How to plan the components in MRP

    Hi Experts,
    We have the following  requirement to map the subcontracting scenario in SAP MM.
    1) Subcontracting PR has to be generated during MRP run for all the FERT materials ( Done )
    2) Auto convertion of PR into PO by scheduling the batch job ( Done )
    3) Goods issue with subcon delivery ( done )
    4) Pick list from subcon delivery ( possible)
    My question here is How to create the delivery schedule lines for components thru MRP and made available to the subcontractor in the required date.Client does not want to maintain the inventory for even 1 week.
    Example :
    FG required date 7.01.2009
    PO release date 30.12.2008
    Component level A Requirement date 29.12.2008 ( How we can control in MRP)
    Component Level B Requirment date 03.01.2009 ( How we can control in MRP)
    Appreciate your reply.
    Thanks / Karthik

    Hi
    Thanks for your reply.
    Let me brief about the process.
    Client wants to consign the components at subcontractor's place and will be considered as a separate plant.So the subcontractor will manage the component stock which is supplied by third party vendor directly to the subcontractors place. so there will not be any frieght cost issue.
    But the client requirement is not to spend more money on  component inventory so when the level 1 components are required the system should generate the delivery scedule with required dates.
    1) Component A is reqd to manufacture the HALB assemply at level 1
    2) Component B & HALB to manufacture the Finished Goods at level 2
    My requirement during MRP run
    1) PR for FG
    2) Delivery Scedule for Component A with reqd date
    3) Delivery scedule for component B with reqd date
    Can I make HALB as phantom BOM???
    or Suggest me how I can do other way round..
    Thanks / karthik

Maybe you are looking for

  • Thinkpad Yoga - disk replace SSD SATA vs M.2

    I'm wondering about buying a yoga thinkpad with 500gb SATA disk 7mm + 16gb SSD M.2 1. change 500gb  7mmSATA to 128GB Vertex 450 7mmSATA 3 2.5 "SSD Sata 128 SSD system partition + 16gb M.2 for cache or 2. change 16GB SSD M.2 to 128GB MyDigitalSSD M.2

  • Stop Mac from Sleeping when iTunes/Front Row is playing

    Just like the title says .. When I play music through front row/iTunes, the computer still sleeps. This is not the case when playing videos. I've looked everywhere for setting to change this, but can't seem to find it. Any thoughts? Thanks, Blue

  • Upgrade Presenter 8 to Presenter 10

    I want to upgrade Presenter 8 to Presenter 10. What is the cost and why do I have to have Presenter 9 if I want to upgrade to Presenter 10, according to all of the online upgrade options? Trying to ask a question is very frustrating. There is no phon

  • Showing Zero Unit Price/Row Total

    Hi, We currently allow posting rows for item sales with zero unit price. I am having trouble showing the unit price and row total as "$0.00" instead of a blank field with PLD. Both of these fields are system variables (80 and 84), neither field is li

  • FC Valuation at Year End- Balance sheet items

    ECC-6.00 (FI-CO) We are maintaing the FC exchange rate on monthly basis. We follow a calender year for our group reporting. Is there a way to carry forward all the open items as at 31st December 2007 to new year at the closing rate of December.