Formatting af:table cells (centering etc)

Hello. I need to center content of column in af:table component.
But if I trying to use inlineStyle properties of components
inside table, they either not rendered into HTML or just ignored
(values I set make no sense to LAF of the page).
Please, is there any way to correctly format contents of columns
in table? Any help would be highly appreciated!
Also, is there any way to set size of a dialog window? When
I specify width & height via launchEvent.getWindowProperties(),
the values I specify ARE rendered into HTML, but dialog window
resizes itself automatically :( Why?
Thanks.

Good question, user546417.
Using inlineStyle on af:column ...
       <af:table> <!-- removed some irrelevant af:table properties -->
            <af:column sortProperty="CountryCode" sortable="true"
                       headerText="#{bindings.CountryList.labels.CountryCode}"
                       inlineStyle="text-align:center;">
              <af:outputText value="#{row.CountryCode}"/>
            </af:column>
            <!-- ... -->
          </af:table>results in ...
              <table class="x2f" cellpadding="1" cellspacing="0" border="0" width="100%">
                <!-- ... -->
                  <td class="x2n x62"><!-- Start: oracle.adf.Output["_id7"] -->UK</td>
                <!-- ... -->
              </table>where x2n and x62 are defined like ...
.af_column_cell-text,.x2n,.portlet-section-selected,.x76,.portlet-table-selected,.x7d {font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000;vertical-align:baseline;background-color:#f7f7e7;border-color:#d2d8b0}
.OraTableBorder1111,.x62 {border-style:solid;border-width:1px}so, no "text-align:center;" (and the column value is not centered in the column)
However, an inlineStyle property on af:outputText ...
       <af:table> <!-- removed some irrelevant af:table properties -->
            <af:column sortProperty="CountryCode" sortable="true"
                       headerText="#{bindings.CountryList.labels.CountryCode}">
              <af:outputText value="#{row.CountryCode}"
                             inlineStyle="text-align:center;"/>
            </af:column>
            <!-- ... -->
          </af:table>does get picked up ...
              <table class="x2f" cellpadding="1" cellspacing="0" border="0" width="100%">
                <!-- ... -->
                  <td class="x2n x62"><!-- Start: oracle.adf.Output["_id7"] --><span style="text-align:center;">UK</span></td>
                <!-- ... -->
              </table>But, this can not be used to center a value in a column.
This Re: JSF af:table - How to change color of the current row? seems to refer to an "inlineStyle's bug on af:table", but I don't know if that "bug" already has a bugnumber:
JSF af:table - How to change color of the current row?
Looking forward to other replies on this topic.
regards
Jan Vervecken

Similar Messages

  • Text Formatting within table cells

    This is probably a very beginner-type question.
    I am using tables to create a page structure, with an 800x600
    table encompassing 3 columns (two outermost two the nav bar and a
    column with pictures in it.) The inner cell will be where I place
    the majority of the text on my page. However, when I try to type in
    the cell it always starts in the middle of the cell, and will never
    start at the top of the cell. How do I fix this?

    Set the vertical alignment of the cell to "top" using the
    "valign" field on
    the Property inspector when you click in the cell. And get a
    good HTML
    book. 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Darth Gordolf" <[email protected]> wrote in
    message
    news:evm5ef$2u5$[email protected]..
    > This is probably a very beginner-type question.
    > I am using tables to create a page structure, with an
    800x600 table
    > encompassing 3 columns (two outermost two the nav bar
    and a column with
    > pictures in it.) The inner cell will be where I place
    the majority of the
    > text
    > on my page. However, when I try to type in the cell it
    always starts in
    > the
    > middle of the cell, and will never start at the top of
    the cell. How do I
    > fix
    > this?
    >

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    That is not the issue.
    Pages/OSX does not save files with crop marks and bleeds.
    It also by default saves transparency, which is involved in a lot of Pages' better features, at a rubbishy 72 dpi resolution.
    It also makes it extremely difficult to maintain mono-color like black only text, has no spot color and makes color management opaque.
    It really is only meant for amateur publishing and printing to your desktop printer.
    A commercial printer who is willing to use and print from Pages may have better results but at the cost of considerable micro-management which defeats the point of this "cheap" solution.
    Peter

  • Mail.app: text in table cells in incoming formatted mail - problems replying

    MacOS 10.9.2
    mail.app  7.2, threading enabled
    Sometimes I receive a formatted email that is really difficult to reply to, when I want to intersperse my reply text among the incoming paragraphs.
    The trouble occurs when multiple incoming paragraphs are grouped. I can’t open up vertical space for my reply  text inside the groups. 
    If I click anywhere in the group, mail.app marks the group with a surrounding rounded-corner grey rectangle, with a X-in-a-circle “close icon” at the upper left corner. 
    When I look at the raw source of the incoming message, I see that the groups correspond to table cells, that is, the sending mail client enclosed the paragraphs within a <td> … </td> pair.
    The sending email client is sending me a table, for no clear reason — the group doesn’t correspond to anything obvious in the message thread.
    I’m guessing we won’t ever know why some email clients group paragraphs like this, but I’d like to do my best to adapt, so I can keep up with my incoming email. 
    Yeah, I can ask my correspondents to use a different email client, or perhaps different settings in the same client, but except for the few tekkies among my correspondents, this isn’t really practical.  I can also ask my clients to use unformatted messages, but THAT is a whole different issue, and frequently isn’t practical, either.
    My questions:
    Q1:  What’s the point of the grey rectangle and the  “close icon”?    (Is this mail.app’s way of saying, “I received this crazy formatting, almost impossible to process, so I’m making it easy for you to just delete the whole mess”?  Or what?)
    Q2:  Is there any SIMPLE way to untangle (modify or remove) these groupings within mail.app?  (I guess I can access the raw html, copy-and-paste it into another app, modify it, and paste the results back into my reply.  Yuck!)
    Q3: Am I missing a really obvious work-around or fix?
    TIA

    In your question, you indicated that you are running Firefox 8. Is that correct? It might be difficult to diagnose issues with that version because most people have moved on to Firefox 12 (plus or minus 1 version). Can you upgrade?
    It's hard to think of a reason that ordinary text or links in ordinary text would not display. For embedded images or videos, one possibility is a difference in the protocol, i.e., HTTP (not secure) versus HTTPS (secure).
    Hopefully someone else will have a better guess (or actual knowledge!).
    Regarding the blue lines in a message, that usually indicates the earlier message was forwarded a few times. I don't know whether Gmail will let you reformat that area or whether you have to clean it in another application (e.g., for plain text, in Notepad) and paste it back in.

  • How do I format a table in Pages so that I don't have to keep reformatting every time I go to a new cell?

    how do I format a table in Pages so that I don't have to keep reformatting every time I go to a new cell?

    Hello Fruhulda
    Clicking a Pages table don't give the same result than clicking somewhere in the table then pressing cmd + a.
    The first scheme selects the table (height square handles displayed)
    The second one select every cells (no handle displayed).
    If we try to fill cells with a color in case 1, only standard cells are filled.
    If we try to do the same in case 2, every cells (headers included) will receive the color.
    Yvan KOENIG (VALLAURIS, France) dimanche 12 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • "Referenced" Table Cells not copying formatting of the source table

    Hi-
    I have one sheet that has a rental inventory table that is quite large.  On another page, I have a "printable" version that has filtering applied to hide certain columns.
    What I did orginally was duplicate the table on the inventory page, cut it, then go to my printable sheet, and paste it.  I now have a duplicate version of the original.  Then I go and select all cells, hit delete and all the contents disappear leaving me with the correct formating.
    At this point I can type in cells and see that the formating is intact (certain cells are in Bold for example).
    I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table.  Once I've done that, all of the contents of the source table now appear in the "printable" table. 
    The problem is, that once I reference the source table, the formatting goes away.  The data shows up correctly:  ie, =Equip List :: B2, but the specific cell formating is gone.
    What am i doing wrong here?
    Thanks
    Matt

    "I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table."
    If you do this by selecting and Copying the first cell containing the formula, that "copy" includes the formatting of the copied cell. If you then Paste, the Paste includes that format setting. You could try Edit > Paste and Match format.
    If that doesn't work, you could try this:
    Enter, then fill the formula as you've done, then set the format of each cell or group of cells to include the attributes you want at that location.
    Regards,
    Barry

  • Applescript InDesign to Merge and Format Table Cells

    The subject line says it all:
    I have a document with a table that covers about 100 pages. The table has five or six columns, 25 to 35 rows. I want to be put my curser in a cell on a row, merge the cells in the row, then apply a paragraph format and a cell format.
    And I have no idea how to do that.
    Is anyone willing to give me a hand?
    Thanks!
    Jon.

    @Jon – See the following blog post:
    Marc Autret
    Improve the Way you Merge Cells in InDesign
    http://www.indiscripts.com/post/2012/04/improve-the-way-you-merge-cells-in-indesign
    Uwe

  • How to apply a number format to a cell within a table in Word 2011??

    I am creating a fillable PDF form and I need to be able to apply a phone number format to a cell in Word 2011 similar to how it is done in Excel...Can someone please HELP me? Thank You!

    846640 wrote:
    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchterI am wonder how to apply format mask in excel for the character cell.
    but in may table that field is a number, so how can remove the format mask from the excelsheet?So, while reading from excel how the values is coming in the variable i assume its coming with comma(,) than what happens if you try like below?
    variable_name:=TO_NUMBER(REPLACE(variable_name,',',''));
    -Ammad

  • Table cell formatting : please allow 'Horizontal autosizing' with 'at least' option like the vertical. Or is it in the pipeline already ?

    I suspect it has been asked by others, but can't find it in the archives. I need it for table cells with diagonals, and they need to fit like a glove.

    Hi,
    if the content is in a table cell (<td>), simply use valign="top" in the Region HTML table cell attributes.
    "Vertical align" is not intended to align text in a block, but an in-line component in another in-line component (for example a picture next to text).
    Maybe you have to play with margins.
    PS : more information here for example : http://evolt.org/article/rdf/17/60369/
    Yann.

  • How to insert  jRadioButton/jCheckBox/jButton etc into table cell?

    Please! Please! Please!

    Inserting UI elements into database columns? (That's what "table cell" means, right?) No, bad idea. Don't do that.

  • Formatting table cells

    I would like to how to know how to set eg. the background of a cell in table or to set the cell non-editting. I tried to solve this problem like this:
    for (int i = 0;
    i < zinsstrukturVec.size();
    i++)
    ((JTextField)((DefaultCellEditor) jTableZinsstruktur.getCellEditor(i,4)).getComponent()).
    setHorizontalAlignment(SwingConstants.RIGHT);
    but it do not work.
    thank you!
    Tri D.

    Look at the tutorials for Table Cell Renderers

  • ADF Table cell color based on the value in that field

    Dear All,
    I want to create a table for our new application which contains a table used to represent the data in a chart format or matrix format,
    and each cell of the table should be filled with a colour out of three colors, based on the value belongs to which range eg:(1-8 ->green, 9-20 - yellow etc),
    I dont know how to implement this. Please help...
    Ranjith

    Check this out.
    How to highlight ADF table row based on column value?
    -Arun

  • Multiple tabs in table cell (FM 7)

    Hey gang,
    I've got a table that requires multiple tab stops in one table cell.  They're easy enough to place--I use the Tab Stops segment in Paragraph Designer--but I cannot move back and forth between the tabs. Each tab stop must be numbered.  For example, I inserted seven tab stops in the cell.  Is there a way to step through the tab stops without leaving the cell? 
    Thanks in advance!
    -terry-

    I need to add that the above may not work, depending on your platform and FM release.
    On FM7.1/Unix, Find randomly fails to find things in tables, and tabs are no exception. The hack above did not work.
    On FM9/Win7, Find of \t did navigate between tabs in a table.
    The real parent problem here may be: who gets to see the keycode from the [Tab] key? It appears that the OS GUI gets first crack at it, and what's passed to the app may not be an 09h character but some window nav event (that has to be converted back to an \x09 when the intent is to type a tab into the text, but when the focus is in an FM table, FM thinks you want nav).
    An FM-specific sub-problem is that FM doesn't support tables within tables (actually, it does, but you have to create a new text frame inside an anchored frame inside the table cell). Tables within tables would eliminate the temptation to tab.
    Tabs, of course, have been a CS problem forever, as there was never an agreed industry standard for what they meant (move 8 spaces, or move to next multiple of 8 space from left, or move to next tab stop, and what if none are defined, etc.). In FM, users who use tabs are generally doing so from habit from other word processors, and are grabbing the margin tab tool, rather than defining stops in Paragraph Designer. A later author updates the para format, resetting all overrides, and bye bye tabs.
    I usually use borderless tables these days for body text layouts that might historically have been done as tabs.
    If I need column-control inside table cells, I'll often use as many columns as needed, and straddle them in the cells that don't use the extra columns).

  • Vertical alignment in table cells not working in generated output

    Using RH9 WebHelp. I have created a simple table style. Because I could not find out how to make cell vertical alignment (top, center, bottom)  part of the style definition, I have been applying it manually to individual whole tables using the cell alignment properties.
    This worked fine for a while, but at some point I noticed that even though the tables look right in Design view, with top-aligned cells contents, it gets hosed in generating output and all tables now come with vertically centred cell contents even through the in-line formatting for top alignment is still there in the code.
    Any ideas?

    Hi Mike,
    I'm confused to where you applied the vertical alignment. Normally, I would set this for the table cells and not the table.
    CSS has indeed an order in rendering: There is a point system for determining the CSS to apply. See http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css-specific ity/ for a short introduction.
    And as an extra to the point system, the place where the styling is present, also determines the styling. Browsers use the following hierarchy (in descending order)
    User style sheet defined in the browser.
    Inline styling.
    Style block in page.
    External style sheet
    You can overwrite styling from a lower order using the !important declaration. You can use this to make sure that inline styling will not be able to overwrite styles from your style sheet. (Unless the inline styles use !important themselves.) Example:
    table.mytable td {
         vertical-align: middle !important;
    This will make all the content of table cells in the table with the class mytable to be vertically centered.
    Greet,
    Willam

Maybe you are looking for