JSF table style question

Hello all,
Suppose I have two separate datatables in one page. How can I make it so that both tables are aligned (i.e, one on the left and one on the right). I tried doing this with
<hx:panelLayout>
     <f:facet name="left">
          // Code for Table 1
        </facet>
         <f:facet name="right">
          // Code for Table 2
        </facet>
</hx:panelLayout>This achieved both datatables being in the same row, but Table 1 is larger than Table 2.
Therefore, Table 1 is vertically aligned on Top, but Table 2 is somehow aligned with the middle of Table1, not vertically aligned.
I am trying to vertically align Table1 and Table 2 but dont know how to do it. (Tried putting this in the dataTable style sheet). This didn't work.
.dataTable {
     vertical-align: top;
}Anybody have any clues?
Thanks.

I have the same problem and would like to know how you finally did it.
I tried the myfaces/tomahawk DIV implementation and div enclosed in verbatim -tags but it just won't work.
My example is a bit more complicated as I am using tiles. Is that a known problem?
.alignTop{
vertical-align: top;
<t:panelGrid id="leftMenuAndContentGrid" columns="2" cellpadding="5">
    <t:div styleClass="alignTop">
            <t:panelGroup id="leftMenuGrid" >
                    <tiles:insert definition="page.leftMenu" flush="false">
                     <tiles:put name="itemType" value="/jsp/itemType.jsp" type="page"/>
                     <tiles:put name="genres" value="/jsp/genres.jsp" type="page"/>
                </tiles:insert>   
         </t:panelGroup>
     </t:div>
       <t:div styleClass="alignTop">
            <t:panelGroup id="contentGrid" >
                 <tiles:insert name="content" value="/jsp/content.jsp" type="page"/>
            </t:panelGroup>
       </t:div>
   </t:panelGrid>The content page has a dataTable as well as the genre page. Depending on the size either one of the panelgroups is top-aligned the other one is aligned with the middle.
To get a certain layout I use more dataGrids in those 3 pages like this:
<h:panelGrid styleClass="header"> 
     <h:outputText .../>
</h:panelGrid>
<h:panelGrid styleClass="body"> 
     <h:dataTable.../>
</h:panelGrid>I don't think they have to be vertical-aligned which I already tried out.
Any ideas???
Message was edited by:
anakin

Similar Messages

  • Create a new table style based on an existing table in a document

    Hi,
    In a document I'm working on, there is a specific table. It is made in the past by a colleague, and it has a very suitable format.
    Therefore I would like to use the layout of this table on all future tables in my document (or even in others).
    Is there an option to select my table, and create a new table style with it, so that I can use it over and over again? That would be very helpful.
    I'm working in MS Word, MS Office Professional Plus 2010, on a Windows 7 64-bit OS.
    Best regards, Sietske
    Ps.: I know
    a question like this was already asked, but the answer was quite dissatisfying (because it was not answering the question)
    Pps: Note that I'm now creating a new table style from scratch, so an answer to the above question is not that urgent, but it would still be nice to know for future use.

    you can  use format painter
    i hope that you already know about it.
    Nope, not the right answer. With Format Painter, you can copy the format of the table, but you can't create a new Table Style with it. I am looking for a solution as well.

  • InDesign CS3 crashing adding table style...HELP!!

    This issue started on Friday.  I just starting working on a large document that will have many tables throughout, so I must use the table styles.  Here is the order in which I do things to get the crash.
    Place document from Word in to InDesign document
    Highlight table to be changed
    Convert text using paragraph styles
    Alter column widths to fit page
    Highlight entire table to select table style
    Click desired table style
    CRASH!!!!
    I have tried the following things with NO LUCK:
    Deleted adobefntX file multiple times (actually worked for a couple of hours first time I did it)
    Deleted InDesign preferences (did nothing)
    Re-created all "Styles" in InDesign (Character, Paragraph, Cell, & Table) (Did nothing)
    Changed the order in which I altered the tables text and formatting (thinking it was just a silly order problem)
    Unistalled and Re-installed CS3 (worked for 5 tables and then CRASH)
    Updated ALL software (Adobe and Mac)
    Started up in Safe mode and CRASH!!!
    I realize from seraching for this problem on the web that I am probably the ONLY person having this issue, but I thought it was a font problem until I started in Safe Mode and still crashed.  I am totally confused as to what I should do next.  I am running on a
    Model Name:    MacBook Pro
    Model Identifier:    MacBookPro4,1
    Processor Name:    Intel Core 2 Duo
    Processor Speed:    2.4 GHz
    Number Of Processors:    1
    Total Number Of Cores:    2
    L2 Cache:    3 MB
    Memory:    4 GB
    Bus Speed:    800 MHz
    Boot ROM Version:    MBP41.00C1.B03
    SMC Version (system):    1.27f1
    Any help would be GREATLY appreciated.

    I am not familiar with InDesign Interchange, do you think this will help?
    That's why I suggested it. But you didn't answer my question: Is this happening with only one file? The reason I ask is because if one file is corrupted, saving to INX and back to INDD often clears out minor corruptions. If you're seeing this in many files it's unlikely they're all corrupt.
    1. Convert text using paragraph styles - I meant modified "placed" text using character styles
    Now I'm really confused. Your steps are:
    Place document from Word in to InDesign document
    Highlight table to be changed
    Modify placed text using character styles
    Are you really highlighting an entire table and applying a character style? While this will work to modify certain formatting aspects, it's not really the best approach. Character styles are for characters *within* a paragraph. Paragraph styles are for *entire* paragraphs. Each table cell contains at least one full paragraph, even if it's just a single number, a space, even if there's nothing there at all. If you want to format the contents of an entire cell or range of cells with the same formatting, use a paragraph style, not a character style. If you want to italicize one or two words in some text in a cell (the way I just did), then use a character style.
    I really feel that the issue either stems from fonts or from placing the document from Word.
    Could be. Cheap fonts are the cause of many problems in Indesign. Indesign is really picky about fonts. But let's try the easy fix first (INX). If you don't trust it, save the .inx to a new .indd filename (keep your old .indd file as a backup).
    Ken

  • Updateable (CRUD) JSF Table - Button Enabling in ADF BC

    Hellow everyone,
    The scene:
    An updateable (CRUD) JSF table with "Create", "Commit", "Rollback" buttons.
    By default, this buttons have the "Disabled" property binded to something like #{!bindings.Commit.enabled}
    When page is rendered for the first time, the create button is enabled and the Commit and Rollback are disabled.
    This two buttons get enabled if I insert a row in the table but not if I change data in a row.
    So, I tried to do force the enablement of the buttons by:
    1. Setting autosubmit = true for the inputText components in the table columns. (Tried it, no change)
    2. Created a ChangeListener method in the pages backing bean and asigned it to the ValueChangeListener property of the inputText components. The method is:
    public void valueChanged(ValueChangeEvent event) {
    this.getSaveBtn().setDisabled(false); // saveBtn == Commit
    As I expected, it didn't work. The buttons state must be saved in a some kind of persistence. In other products you use to save this kind of states in a session or request bean. But looking at the standard binding used by JDeveloper (#{!bindings.Commit.enabled} I deduce that this kind of persistence is used in a different way.
    Unfortunatelly I didn't find information about the subject in JDevs documentation nor this forum.
    The question:
    Does anyone knows how can I learn to use this "bindigs" object used by JDev or how to use this kind of temporary peristence in JDev? I presume I can just forget all about it and use a session bean to manage all temporary persistence of this kind but I'd like to do it in JDevs way.
    Thanks a lot for any help.
    AG

    If you don't care about the buttons themselves providing a visual cue that data has changed, then the easiest thing is to just remove the disabled property - then it will default to false and the button will always be enabled.
    i.e., change this:
    <af:commandButton actionListener="#{bindings.Commit.execute}" text="Commit"
      disabled="#{!bindings.Commit.enabled}"/>to this:
    <af:commandButton actionListener="#{bindings.Commit.execute}" text="Commit"/>If you do need the buttons to be visual cues I would suggest setting the partial triggers property on the button to point to the table. (Although I haven't tried it in this case - I've never worked with an editable adf table before...)

  • Separate table title autonumbering for two named table styles?

    I believe this very same question whizzed by a few weeks ago but I'm having no luck searching for it.
    I have two named table styles.  I want the autonumbering for the table titles to be separate.  More specifically, one will autonumber as "Table t", while the other will autonumber as "Example e".
    I have redefined the autonumbering counter for the second of the two TableTitle para style, and if I apply that style while in that table's title, I get the new autonumbering.  But I can't transmit (a) selectively update the Table Title style to this format to other tables in the chapter.  By extension, I can't copy the  wonderful new table format to other chapters in the book.
    I next tried creating a new para style "ExampleTitle", then in the Table Designer trying Update All.  Nope, other tables of type example do not receive the new title style.
    This is fully-patched FM8.  The document is structured but I don't (want to) care about that -- I simply need to get the two different named table styles
    to autonumber sequentially.
    This is probably pretty easy once I learn the "trick"...(?)
    Cheers & thanks,
    Riley

    Arnis:
    Thanks.  For some reason I couldn't get my table to update, so I went through and manually create a second table title paragraph style, then manually applied that.  (I also created a second x-ref format so that I could x-ref to "Example n:" without including the colon in the x-ref, but that's another story...)
    So for now I've worked around the problem.  After I get this document out I'll revisit the issue.  (Why do I have a vague recollection that there's a known idiosyncracy where FM6+ table styles don't update properly...?)
    Cheers & thanks 'gain,
    Riley

  • Fixing the Table Header in the default JSF Table

    I am using the default JSF Table in Sun JS Creator (Version JSC 2 EA 2) with a
    Scroll Bar Option (instead of Pagination Control). However I have not
    been able to fix the table header and scroll only the data rows in the
    table.
    I have tried to use CSS style for table header, but it has not worked
    either. Where do I set the CSS style - in JSCreator JSF Datatable or
    JSCreator Table component, neither seems to work for me?
    Is there any other way to fix the table header default JSF Table in Sun
    JS Creator?
    Using the scroll bar is critical user requirement for me and fixing the
    table header will ensure that I can use the default JSF Table in Sun JS
    Creator, alternatively we will have to use some other JSF table e.g.
    from myFaces or an HTML Table and lose on the productivity benefit of
    JSCreator.

    Hi,
    There please just replace the If with IIF mentioned in Visakh Post. There is spell mistake
    It should be
    =IIF(CountRows("Dataset") > 0, True,False)
    Regards, PS

  • Saved table style

    I saved a table style  in a worksheet I was working on as I would need to use the style frequently in the future.  Unfortunately, the style is not showing up in the Tables pan when I create a new file.  I wonder why, or do I need to use Save as Template instead?

    Hi stressymum,
    How did you save the table style? I must admit I have never done that until your question intrigued me. Then through the Help menu I found this:
    http://help.apple.com/numbers/mac/3.2/#/tan6698de8db
    Does that help?
    Regards,
    Ian.

  • Pagination - hibernate with JSF table using ObjectListDataProvider

    Hello All,
    How we can use the JSF table component & pagination option avilable in JSC for records pagination using ObjectListDataProvider? Let say I have 100 recorsd and I want to do pagination of them of Page Size = 5 (total pages 20), then how to proceed?
    We have the hibernate working with JSC, and now I am looking for this advanced implementation using JSC & Hibernate.
    Surya
    --Thoughts can bring change                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have a problem with pagination and hibernate and I want to take a ride on your question: when the page is loaded I load all data from database. Then I have a filter I made that retrieves some of the data and reloads the table, and that works fine. But when I hit the next page button, the table goes to second page, but without the filter, i.e, with all data again.
    I think it has someting to do with the place where I do the initial load, with full data. I've put this code in _init:
        private void _init() throws Exception {
            try {
                Integer empresaId = new Integer(this.getSessionBean1().getCodEmpresaLog());
                    getSessionBean1().getTituloReceberDataProvider().atualizaListaTitulos(empresaId);
            } catch(Exception ex) {  
                log("Erro para pegar empresas : ", ex);
                error("Erro para pegar empresas : " + ex.getMessage());
        }And to filter, I use this method, called by a button:
    getSessionBean1().getTituloReceberDataProvider().filtraListaTitulos(empresaId, sCodCliente, sSituacao, dataDe, dataA);This method repopulates the dataset and it works, but when I change pages it loads full data again. Someone has some light to shed on this?
    Thanks in advance!

  • Table style & IDML

    I am not sure which is the right forum for IDML question. Anyway, I have a number of tables with the same table style applied. Then I select one of these tables and change status of Table/Table options/Headers and footers/Skip first header. Now, when I select Table Styles/Redefine Style the "Skip first header" status change I made will affect all tables with this style applied. However I have not found the way to set this "Skip first header" status in IDML table style attributes. Should there be a way?

    I really do not know what has caused this but in your situation I would be looking at the CSS for the table now and when it worked.
    After that I would probably create a new project and create the same setup afresh. That can often identify the cause of problems like this.
    Sorry I don't have anything more constructive.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to populate a jsf table with an array?

    I have a JSF project where I'm using a table and I would like to populate that table with some custom information without using a database. I'm trying to write my own data provider. I was wondering if anyone knows how to populate a jsf table using an array. Any help would be appreciated. Thanks.

    Hey thanks for replying. I'm not quite sure what you mean, but I am using a woodstock table in Netbeans. I would love to skip writing the data provider since I've never done that before, but I'm not sure how I would go about populating the table with a regular List or Model. I have populated a JTable with my own model, but never a woodstock table. They don't seem to work the same way. Thanks for the help. I've spent hours trying to figure this out.

  • How do you have the bottom stroke of a table show up using Table Styles and Cell Styles only?

    I am using InDesign CS6, and I want to create a Table Style that has the bottom stroke show up, but does not have a table border, such as:
    However, whenever I try to change the Table or Cell strokes so that the last stroke shows up, I get the entire table border, or some strange combination of borders:
    Does anyone have any insight on how I can get the bottom stroke to show up while preserving my other stroke properties? Since I work with long documents, it's necessary to be able to control all of my tables through Table Styles and Cell Styles, and not by manually changing each and every table with the Stroke palette.
    For reference, here are the my current Table Style properties and the resulting table:

    Michael Murphy is the InDesign style-meister. He wrote "Adobe InDesign Styles" for Adobe Press, and did a great Lynda.com title on InDesign styling. Here's what he says in the book:
    "As mentioned at the beginning of this chapter, with all the power of table and cell styles, it is important to understand not only how they work and what they can do for you, but also to understand their limitations.
    "Two formatting features missing in table and cell styles have already been discussed: You will always have to set the column width and row height of cells when applying a table style for the first time, and you will always have to convert body rows to header and/or footer rows every time you apply a table style for first time or update the table's data....
    "But there's another kind of limitation that's important to keep in mind as you are designing tables: It is very easy to design a table that cannot be completely defined by a table style. In many cases, you'll need to define an extra cell style or two that lets you complete for formatting. [my emphasis]."
    So I think that's what you have to do: Apply another cell style on top of the cells at the bottom of the table after applying the table style.

  • Problem with footer in table style not applying paragraph style... or just me?

    I'm having a niggling problem making a table style with cell/paragraph styles for the header, body, and footer respectively. I want to make it as simple as possible for other users but one thing keeps tripping me up. I'll try and describe with screenshots. I'm using InDesign CS5 on Windows 7.
    I have a table style set up with cell styles for the header, body, and footer, and paragraph styles for each as well. Say I'm converting a list of generic text to this table:
    i convert it to my table style. The body style is a numbered list:
    I convert the header to an, err, Header. The cell applies the header paragraph style as I should expect:
    I convert the footer likewise, but it maintains the Body text paragraph style as an override!
    So naturally I clear the override and it works fine. But of course, I'd rather it acted like the header row. I can't work out where the override on the footer comes from and why it operates differently in this respect to the header row. There is nothing different about how the styles are constructed. Have I made a mistake somewhere, or is this correct behaviour I'm misinterpreting, or something...?
    edit: Here is the file, if that will help:
    https://www.dropbox.com/s/4kzgui1itaskuvz/strip%20list%20test.indd

    Hi,
    I was able to reproduce the issue you are facing.
    I will be logging a bug for this and it would be investigated.
    Thanks a lot for reporting the problem!!
    Javed

  • How to update table styles in the new Pages?

    Anyone found out how to update table styles in the new Pages? I see it's done in some of the templates that Apple provided, but I can't find it. Also, the Copy table style command is gone, so I can't make my tables look in a uniform way, unless I use one of the built-in styles.
    Thanks.

    I'm having the same trouble. Looks like no way to create an overal 'table' style and I cannot access the table paragraph styles either.

  • Table styles in RH don't transfer to Word 2010

    In RH, I have defined a table style called top-row-shaded, and have mapped this style for delivery to Word, in word-template.dot file. All RH tables of style top-row-shaded shoud map to my Word template style top-row-shaded, but they don't.
    Does anyone kmow a fix?
    If not, does anyone have a word macro that can convert my tables to the  top-row-shaded style in the Word file?
    My RH file has another table style (called no-border) that I don't want to convert, so I can't simply apply the style to all tables in the Word file.
    Thanks, Joanne

    Without setting up a test, I'm not sure why the tables are not mapping. By all means see the Contact page on my site and send me a one topic project and the Word template. I will take a look but it will be at least a week or so before I can.
    Meantime there is a macro on my site that will need editing that will find each table and then allow you to apply changes or skip to the next table.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to reuse a table style in Numbers 3.0

    I can save a Numbers Table Style in one spreadsheet, but I've no idea how to open and use the saved style in another spreadsheet.
    When I save the style it shows up in the inspector for that document, but does't appear in the inspector when I open another document.
    Am I attempting something that can't be done?

    Guillame,
    You're right about not being able to add styles, and I have not figured out how to modify a predefined character style, other than to Rename or Delete a predefined style. I have added this to my list of things lost.
    Jerry

Maybe you are looking for