Aligning h dataTable on a page

I am trying to align a h:dataTable on a page horizontally. How can I align, the table left or right or center?
Thanks in advance

I am trying to align a h:dataTable on a page horizontally. How can I align, the table left or right or center?
Thanks in advance

Similar Messages

  • Hi, Over a week now, my Firefox browser has been aligning the info on the page to the right of the page. This makes it difficult to see the rest of the contents on the page. Can you help?

    Question
    Hi, Over a week now, my Firefox browser has been aligning the info on the page to the right of the page. This makes it difficult to see the rest of the contents on the page. Can you help?
    Regards
    Femworth65

    my money is on a hardware issue

  • JSF: how to add new record in datatable from same page

    Jdeveloper : 11.1.2.2.0
    using ADF i want to create a page that contains a datatable, input text field and a command button.
    when i press the command button i want the text in the input text field to be inserted as a new record in datatable.
    what is the best practice for that ? how to get the value of the input text field and insert it?
    thanks in advance :)

    thanks so much that really helped :)
    the solution is to do it programatically in a managed bean :)

  • How to align items in a form page with respect to regions

    I have 20 item fields in same form. i need to align them in sequential manner.
    For example
    x    y    z  
    a
    b
    c
    l   m 
    o
    p   q   r   s 
    xyzabclmopqrs    are the items to achieve this what i have to do....
    Regards,
    Rani

    Always give Apex version you are using,
    if question related region or page then also mention which theme u are use
    in your application
    generally in apex 4.2 drag n drop layout removed, so use grid layout property of page item.
    means changes in edit page item>>grid layout and manage start new row yes or no?
    if generaly you want to keep item on same line then start new row for item y,z,m,q,r,s set to no
    and don't change any other page item if page item are in given sequence.
    refer example for theme 25 is APEX Theme 25 - Responsive Grid Layout Question: responsive, css, apex, grid
    Pars.

  • How can I automatically align the bottoms of two-page spreads in a long novel in CS3?

    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?

    If you're the author, you might want to consider rewriting the annoying paragraphs. Perhaps changing a contraction to full words, or replacing full words with a contraction, for example. Yes, it's hard not to change meaning, so it's your call. If you have a good relationship with the author, you could consider suggesting the same thing.
    Other possibiliies that may not be acceptable options in your situation include experimenting with applying the single-line paragraph composer instead of the default multi-line composer, adjusting type and leading heights, and/or text frame size, uniformly all across the book, to see if a tiny tweak resolves all or most of the annoyances.
    The Auto-Size text frame feature just introduced in InDesign CS6 might work by setting it to a maximum and minimum height that differ by one line, "grow down from the bottom."
    Here's the dialog box:
    Search Google for terms like "InDesign CS6 auto-size text frame feature" without quotes for more info.
    [EDIT] Ooops, I just learned from Anne-Marie Conception's excellent free sample Lynda.com video tutorial that came up in the Google search I suggested above, that Auto-Size can't set a maximum frame height. So it might be tricky or impossible to find the right combination of keep lines together and other settings for your purpose of compensating for only one line of difference.[/EDIT]
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    JWKewet wrote:
    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?
    Message was edited by: peter at knowhowpro

  • How do I get the alignment lines to display on Pages 5.0?

    Apple community,
    I recently updated Pages to version 5.0
    However some features have disappeared, and I fear have been lost due to Apple trying to have some kind of standardisation with less design-focused devices such as iPad, iPhone that also use Pages.
    Is there any way to restore the 'alignment' lines that used to appear in Pages when placing objects, text boxes, shapes, etc? This was a valuable feature compared with Microsoft word, but now Pages doesn't seem to have much of an advantage over the competition.
    - David

    Alignment guides do still exist in Pages 5 in preferences. You may want to click on the yellow-colored box to change the color. Also, there are less options.

  • Using a4j to load a rich:dataTable after the page loads

    I have a rich:dataTable that calls a session bean which executes an SQL query to generate the data to be displayed in the table. Something simple like:
    <rich:dataTable rowClasses="evenRow,oddRow"
    rows="30"
    value="#{Bean.items}"
    var="items">
    where Bean.getItems() performs an SQL query and returns List<Item>.
    The problem is that the query takes a long time to execute (~45 seconds) and I'd like the page to initially load while the query is being executed, displaying a spinner while it loads. Once the query is done, I'd like to update the initially empty table using ajax.
    I set up a spinner using a4j:status and it works fine after the page initially loads (using a rich:datascroller).
    However, the page will not initially load until the query completes, which is a problem because the query is so slow. What happens is the user clicks on the "List Items" tab from my site's homepage, sits there on the same page for 45 seconds with absolutely no visual indication that anything is happening, and then finally is taken to the list of items page.
    What is needed to make the dataTable load via AJAX the first time, as well as all subsequent times?
    Thanks!
    Edited by: rcrowell on Sep 8, 2008 5:42 PM

    rcrowell wrote:
    The issue isn't the PK of the table; the query is joining across many tables and aggregating data from one table in particular with millions of rows. The table has paging, but again that won't help the timinig issues due to the aggregation that must be performed on a large table.
    Surely there must be a way to get the dataTable to always load its data via ajax, and not only after the first time.Well JSF does not have AJAX built-in, so why would there be? Perhaps one of the AJAX-based frameworks has this. I imagine it wouldn't be hard to do with the existing AJAX frameworks even without a built-in component specifically for it. Trigger an AJAX action on load which rerenders a panel which will only contain the dataTable upon the rerendering.
    >
    I think I could do it by adding a 'dataTableRendered' variable to the bean and using a jsFunction to set this variable to True when the page loads, but I'm looking for a better way. (I'm also not 100% sure this would do what I want.)

  • Can I put two h:dataTable in one page?

    I find that if I put two dataTables in the same page, something goes wrong.
    Any solution to this?
    Thanks in advance.

    userManagement.jsp:
    <%@ page language="java" pageEncoding="GBK"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <title>My JSF 'userManagement.jsp' starting page</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <!--
         <link rel="stylesheet" type="text/css" href="styles.css">
         -->
    </head>
    <body>
         <f:view>
              <f:loadBundle basename="edu.fudan.glee.view.bundle.MessageBundle" var="bundle"/>
              <%@ include file="header.jsp" %>
              <%@ include file="demandHistory.jsp" %>
              <%@ include file="rootCatalogLink.jsp" %>     
                   <p>  </p>
                   <TABLE border="1" width="400px">
                        <TR>
                             <TD>
                                  <h:outputLink value="/Glee/userManagement_favorite.faces" rendered="true" id="favoriteLink">
                                       <h:outputText value="#{bundle.favoriteLink}"></h:outputText>
                                   </h:outputLink>
                             </TD>
                             <TD><h:outputLink value="/Glee/userManagement_personal.faces" rendered="true" id="personalLink">
                                       <h:outputText value="#{bundle.personalLink}"></h:outputText>
                                   </h:outputLink>
                             </TD>
                             <TD><h:outputLink value="/Glee/userManagement_comment.faces" rendered="true" id="commentLink">
                                       <h:outputText value="#{bundle.commentLink}"></h:outputText>
                                   </h:outputLink>
                             </TD>
                        </TR>
                   </TABLE>
                   <%@ include file="footer.jsp" %>
              </f:view>
    </body>
    </html>demandHistory.jsp:
    <%@ page language="java" pageEncoding="GBK"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
         <f:subview id="demandHistorySubView"> 
              <h:form id="demandHistoryForm" rendered="true">
                        <h:dataTable id="demandHistoryTable" var="video" value="#{UserBean.demandHistory}" border="1">
                         <h:column>
                              <f:facet name="header">Recent</f:facet>
                             <h:commandLink action="videoDetail">
                                            <h:outputText value="#{video.chineseName}"/>
                                            <f:param name="videoId" value="#{video.id}"/>
                             </h:commandLink>
                         </h:column>
                         </h:dataTable>
              </h:form>
         </f:subview>rootCatalogLink.jsp:
    <%@ page language="java" pageEncoding="GBK"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
         <f:subview id="rootCatalogLinkView">
              <h:form id="rootCatalogLinkForm">
                   <h:dataTable id="rootCatalogTable" var="videoType" value="#{VideoListBean.rootCatalog}" border="1">
                         <h:column>
                              <f:facet name="header">Video Catalog</f:facet>
                             <h:commandLink action="rootCatalog">
                                            <h:outputText value="#{videoType.name}"/>
                                            <f:param name="videoTypeId" value="#{videoType.id}"/>
                             </h:commandLink>
                         </h:column>
                   </h:dataTable>
              </h:form>
         </f:subview>The problem is dataTable in rootCatalogLink.jsp doesn't work.The commandLink in rootCatalogLink.jsp doesn't work. When I click the hyperLink, no action performed.
    If the change the include sequence to:
    <%@ include file="rootCatalogLink.jsp" %>
    <%@ include file="demandHistory.jsp" %>
    well, the commandLink in demandHistory.jsp doesn't.
    What's the problem?
    Thank you
    Message was edited by:
    zhlmmc
    Message was edited by:
    zhlmmc

  • Dynamic alignment of report column and page item value

    Hi friends,
    I have an interactive report which contains the columns like
    <li>empno
    <li>Name
    In the above i have "empno" with a column alignment of left and a "Name" with a column alignment of left.
    Whether it is possible to override the data alignment that we set in the report according to the value of the application item like
    If my application item value is US, then i need the column alignment of both the column"empno" and "Name" to be left and if my application item value is AR, then i need the column alignment of both the column "empno" and "Name" to be right. Whether is it possible to achieve the dynamic alignment to the report data of both the columns "empno" and "Name" according to the application page item value.
    And also in the case of page item i have a page item with a name P1_NAME in which it has a Element Horizontal/Vertical alignment to left.
    I need that element alignment of the page item to behave dynamically according to the application page item, like if the application page item is US then the element alignment of the page item has to be left and if the application page item is AR then the element alignment of the page item has to be right.
    Whether is it possible to achieve my above two scenario's friends. Kindly help me with this.
    Thanks in advance.
    Brgds,
    Mini

    Kees,
    Your approach is excellent and brilliant:-)
    I tried with your steps and i can achieve those alignment in both ways like you said(either on page load/through DA).
    But im going with the DA way. I have certain query regarding this kees.
    <li>Suppose if the report, is classic whether i can go with the same approach that i have achieved alignment with the IR report.
    <li>Currently through the DA way, i used the page item in the condition. Is it possible to use the application item instead of page item in DA. Because im going to use the application item FSP_LANGUAGE_PREFERENCE for getting the code either 'AR' or 'US'.
    <li>Finally i need this kind of restriction for the page item also, consider like i have a page item P1_X with an Element Vertical/Horizontal alignment as left. Now i need to change that alignment to right according to the application page item value, hence i can give application item condition for the page item like below
    PL-SQL EXPRESSION: :FSP_LANGUAGE_PREFERENCE = 'AR'
    i need the element alignment of the page item to behave dynamically suppose if the application item value is AR then the element alignment of that page item has to be right if the application item value is US then the element alignment of that page item has to be left, irrespective of the page item Element Vertical/Horizontal alignment that was set to it.
    Thanks for your kind help
    Brgds,
    Mini

  • JSF datatable pagination - showing page wise total.

    Hi All,
    i am ok with normal pagiation. but i have a requirement to show total count of a column page wise in the footer and also total count of th column at the datatable bottom.i can able to get total count but how can we show page wise total count in the footer of datatable. please help me in this
    Regards,
    A.

    So you want something likedouble subTotalPrice = 0.0d;
    for (int i = dataTable.getFirst(); i < dataTable.getFirst() + dataTable.getRows() && i < dataList.size(); i++) {
        DataItem dataItem = dataList.get(i);
        double dataItemPrice = dataItem.getPrice();
        subTotalPrice += dataItemPrice;
    return subTotalPrice;?

  • Two datatable in one page

    I have two t:datatable in one jsf page. Both the table are getting displayed but there is no data in the second table. Has anyone faced a similar problem? Any solution to this or am i missing something?

    I have two t:datatable in one jsf page. Both the table are getting displayed but there is no data in the second table. Has anyone faced a similar problem? Any solution to this or am i missing something?

  • Can I use InDesign to format several small multiple-page PDFs into one large multiple-page PDF?  I want to stack 6 identical 3"x4" PDFs (50 pages long) onto one 8.5"x11" PDF (50 pages long) without having to align each image on each page individually.

    This seems like a standard thing that professional printers would have to do to efficiently maximize paper usage.  Can it be done with InDesign?

    Okay, thanks!  However, just to make sure, can I place a multi-page PDF (or InDesign document) onto a larger InDesign document that will automatically align each page in the same place all the way down the InDesign document? I am not looking to place single PDF pages one at a time because that will be highly inefficient for my purposes (I am going to have over 400 different 50-page 3"x4" PDFs that I wish to stack up 6 times on to a 50-page 8.5"x11" InDesign document).  How do I acquire/use the scripts that automate placing multi-page PDFs? Thanks!

  • Creating a pdf file of datatable from Jsf page

    Hi ,
    I want to prepare a pdf file of a data table and store at some system loaction from a Jsf page. How can this be acheived? Any example would be a great help.
    Thanks,

    hi here this adress http://displaytag.homeip.net/displaytag-examples-1.1/example-export.jsp with display tag you can export import your datatable to excel or pdf format.

  • ALV Grid - Alignment Issues in TOP OF PAGE.

    Hi,
    We have a requirement to right align text in the report header.
    We are using REUSE ALV GRID DISPLAY, but using TOP-OF-PAGE event - the whole text is left aligned.
    I tried using Class CL_DD_DOCUMENT which solved the alignment issue, but I am not able to see the header while printing/downloading to excel.
    I want the header to be available while downloading/printing the list. Any suggestions?
    Thanks in advance,
    Harveen.

    Hi
    The ALV download only the grid into the file, so not the data you're writing in TOP_OF_PAGE event.
    If you need to do that, you should create an your own buttom to download the file.
    Max

  • Aligning lines between pages in InDesign CS5

    Hi all,
    After many  fruitless hours of Googling, I'm really, really hoping to find some help  here with a small InDesign CS5 issue I'm having. I'll try and keep this  brief.
    I'm currently designing a book in InDesign CS5  that has chapters that run one after the other. Whereas in most books a  new chapter will start on a new page, here they flow together. For each  chapter heading, I'm using a font called Orial, size 18. For the main  text, I'm using Adobe Garamond Pro, size 12. When I have two solid pages  of 12 point Adobe Garamond Pro, all is well. The alignment of lines on  both pages are level with one another. That's just what I want.
    However,  if I have a double page spread and one of the pages has an 18pt Orial  title on it (within all the 12pt Adobe Garamond Pro), this throws things  out of whack, as you can see in the image below:
    As you can see, the lines on page 79 are not level with those on page 78. Is there any way around this?
    Many, many thanks for any help you can offer. I'm rather tearing my hair out here!

    Hm, I'm afraid I'm still encountering problems here. I'll talk through what I've done so far using Josh's excellent guide:
    (I should note at the start that my text frames are all linked to one another, and I am using paragraph styles).
    Firstly, I checked 'Grids in Back' was switched off (thanks ghf232):
    Secondly, I turned on the following:
    View -> Screen Mode -> Normal
    View -> Extras -> Show Frame Edges
    View -> Grids -> Show Baseline Grid
    My document now looked like this:
    Then I highlighted all text with Ctrl+A:
    And next I hit the 'Align to baseline grid' button:
    This resulted in the following:
    Next, I went to Preferences -> Grids and changed 'Increment Every' option to 1.5:
    Alas, the lines remained uneven:
    I'm sure I'm missing something really obvious. If anybody couldhelp, I'd be hugely grateful. Thanks again all.

Maybe you are looking for

  • ARIS process import in BPM

    Hi All, I am trying to import ARIS process into BPM.I am using ARIS 7.2 wherein I converted EPC into BPMN.After that I tried to export the BPMN .But there could only export the file only in the XML format and not in BPMN format. But in BPM we are una

  • Is it possible to change the vendor in a saved Purchase order

    Is it possible to change the vendor in a saved Purchase order Regards Amit

  • HTML Formatting Auto Email messages

    We have a scenario, when we provide a status update to an SR. The activity description is sent out as an automatic email. Workflow is working fine issue is automatic email is in Text format instead of an HTML format. Reason why I need an HTML format

  • ADD DATAFILE in ASM

    Hello How can I add a datafile in a RAC database with ASM? The filename are create by ASM are like this '+DATA/csoprd1a/datafile/aalarge.615.594210853' where aalarge.615.594210853' is generated by ASM thanks

  • Missing print settings tab in lightroom

    Anyone know how to get the print settings tab in lightroom?  I have the page setup tab--but not the print settings tab.