JSF Data Table in Sequential Level

Hi All,
Assume i have a List and it contains 2 records. I need to display in Sequential Level in Frontend,
When i use the below code
<h:dataTable value="#{emp.detailList}" var="empVO" headerClass="tableheader" columnClasses="tablecell">
<h:column>
          <f:facet name="header">
          <h:outputText value="Emp No" />
          </f:facet>
          <h:outputText value="#{empVO.empNumber}" />
</h:column>
<h:column>
          <f:facet name="header">
          <h:outputText value="First Name" />
          </f:facet>
          <h:outputText value="#{empVO.firstName}" />
</h:column>
</h:dataTable>
The above is showing as Tabel Level
Tabel Level Mean
Emp No First Name Last Name Age
10 Rahul Jain 30
20 Sunil Shetty 32
In above all column are showing in Table Header and multiple row are displaing in Tabel Level.
Sequential Level Mean
Emp No 10 First Name Rahul
Last Name Jain Age 30
Emp No 20 First Name Sunil
Last Name Shetty Age 31
I want to display the above by using <h:dataTable>
Anybody can help me in this regards.
Thanks and Regards
Srikanth

Can you tell me sample code how to do that.
Assume I have 1 arraylist and arraylist contains the 2 Value Object (it mean 2 records)
1 Value object will have emp no, first name, last name and age
and 2 value object will also have emp no, first name, last name and age
both are different data.
Thanks and Regards
Srikanth

Similar Messages

  • Jsf data table component + print null cell

    I am using the jsf data table component and binding the column values to a backing bean.
    <h:dataTable binding="#{backing_showDifferences.dataTable2}"
    id="dataTable2">
    <h:column binding="#{backing_showDifferences.userColumn1}"/>
    <h:column binding="#{backing_showDifferences.userColumn2}"/>
    <h:column binding="#{backing_showDifferences.userColumn3}"/>
    </h:dataTable>
    - some code from my showDifferences.java
    HtmlOutputText column1Text = new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{users.uclass}");
    column1Text.setValueBinding("value", vb);
    usercolumn1.getChildren().add(column1Text);
    HtmlOutputText column2Text = new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{users.ue1}");
    column2Text.setValueBinding("value", vb);
    usercolumn2.getChildren().add(column2Text);
    HtmlOutputText column3Text = new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{users.ue2}");
    column3Text.setValueBinding("value", vb);
    usercolumn3.getChildren().add(column3Text);
    ResultSetDataModel dataModel = new ResultSetDataModel();
    dataModel.setWrappedData(rs);
    dataTable2.setValue(dataModel);
    The raw HTML:
    <table id="form1:dataTable2" class="iuptable" border="1">
    <thead>
    <tr>
    <th scope="col">Heading 1</th>
    <th scope="col">Heading 2</th>
    <th scope="col">Heading3</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>some data in this column</td>
    <td>X</td>
    <td></td>
    </tr>
    <tr>
    <td>Some more data in this row</td>
    <td>X</td>
    <td></td>
    </tr>
    </tbody>
    </table>
    My problem is this...in the raw HTML the <td></td> tag is not formatted nicely on my table output. I have lines around my entire table and each cell within it. When the <td></td> prints there are no lines. I am new to the JSF table data component, but if I were writing some JSP or servlet code I would check that if value was null I would append an &nbsp to the <td> tag (ex. <td>&nbsp</td>) and the table would be formatted properly. The backing bean that I am binding to is pulling the data from a database table...so my sql looks like this:
    SELECT uclass, ue1, ue2 from table1; my problem is when ue1 or ue2 is a null value.
    Any ideas would be greatly appreciated!

    Hi,
    the h:dataTable belongs to the JSF Reference Implementation from Sun, not to Oracle ADF Faces. The rendering is within this component set and I suggest to report your issue on one of the SUN forums (http://forum.java.sun.com/forum.jspa?forumID=427) as we have no handle to e.g. fix an issue if it exists in the component set.
    Frank

  • Custom Tag in JSF Data Table

    I would like to do the equivalent of a custom tag within a JSF data table. How is this done? Custom tags don't seem to work within a JSF data table.

    There's a decent tutorial here, Priyo:
    http://www.exadel.com/tutorial/jsf/HowToWriteYourOwnJSFComponents.pdf
    Hope it helps,
    Illu

  • JSF-Data Table displaying all data in a single row

    Hi Guys,
    Im new to JSF, im trying to display the details from a List in a data table, but all the details are getting displayed in a single cell instead of displaying as rows, can someone help me with this problem?

    You need post your code so that we can view it.
    This is an example of dataTable
    <h:dataTable border="1" id="qresults" cellpadding="4" styleClass="subjectQRTbl" cellspacing="4" value="#{wormingList.worming}" var="bbr" first="#{wormingList.firstRowIndex}" rows="#{wormingList.noOfRows}" rowClasses="evenRow,oddRow">
    <h:column>
    <f:facet name="header">
         <h:outputText escape="false" value="Vaccination Date" />
    </f:facet>
    <h:commandLink id="locnum" action="#{appAction.getWormingRecord}" title="Update Worming History Record">
    <h:outputText value="#{bbr.dateWormed}">
    <f:convertDateTime pattern="MM/dd/yyyy"/>
    </h:outputText>
    <f:param name = "recordId" value ="#{bbr.id}" />
    </h:commandLink>
    </h:column>
    <h:column>
    <f:facet name="header" >
    <h:outputText escape="false" value="Vaccination Type" />
    </f:facet>
    <h:outputText value="#{bbr.type}" styleClass="readOnly" />
    </h:column>
    <h:column>
    <f:facet name="header" >
    <h:outputText value="Vaccination Dosage" />
    </f:facet>
    <h:outputText value="#{bbr.dosage}"styleClass="readOnly"/>
    </h:column>
    </h:dataTable>
    Hope this helps

  • JSF Data Table extension using sun's RI

    How do i modify the iteration logic of datatable in JSF? I need for 3 iteration the data table has to insert one row. How do i create custom component for these type of business logic?
    It should iterate horizontally,

    lets say you have a mainCollection and displayCollection.
    Iterator mainIter  = mainCollection.iterator();
    MainObject mainObj = null;
    DisplayObject dispObject = new DisplayObject();
    int counter = 1;
    while(mainIter.hasNext()){
        mainObj = (MainObject)mainIter.next();
        dispObject.setSomething1(mainObject.getSomething1());
        dispObject.setSomething2(mainObject.getSomething2());
        dispObject.setSomething3(mainObject.getSomething3());
       if(counter%3==0){   // add the object to the list and create a new instance
           displayCollection.add(dispObject);
           dispObject = new DisplayObject();
    counter =counter +1;
    if(dispObject !=null && dispObject.getSomething1()!=null){
           displayCollection.add(dispObject);  // add if this object is not added as the size of the list was not divisible by 3
    }Map this displayCollection in your JSP for display. You can have a single data table which will iterate over this collection.

  • HTML Data Table with cell-level inline messages?

    Hi all.
    I'm not suprised by this, but I am wondering if anyone has figured out a slick/elegant way around the "problem"
    Basically, the problem I want to solve is:
    how to get corresponding validation error messages to show up in the data table cell that contains the (editiable) ui component representing the "offending" value?
    The naive first approach would be simply to place an inline message component just before or after the corresponding data table column's row value presentation component.
    But obviously, this won't work, primarily because the inline message component id will not be unique (does not pick up the currentRow to make it unique) asd well as due to the issue of binding the inlineMessage component's "for" attribute to the correct row (as well as column).
    So, the naive first approach results in a thrown exception:
    javax.servlet.ServletException: Duplicate component id: 'form1:personDataTable:firstNameValidationInlineMessage'
    Now, I know I could add "virtual" columns to my data table to hold validation errors so that they correspond to the correct row/columns and I know I can bind the rendered attribute, style etc, for corresponding presentation elements, but then I've basically side-stepped the whole faces message functionality built into the JSF framework.
    Also, if I have to use "virtual" columns, then I've complicated life for myself, since I ordinarily want to bind the data table to a list of bean instances (i.e. we are using hibernate persistence) or even a row set (difficulty setting a column value that is not updateable in data source, i.e. corresponds to no table/column and maybe involves dynamically adding "virtual" column to data cache?).
    Now, I know I can place a message list on the page instead (this is currently what I am doing), and I know I can change the application so that I provide a separate *single row" edit page, both of which provide a semi-adequate alternative.
    I like the first alternative (the one I'm using), because in-place editing of data table rows is so much more compact and elegant, both in terms of presentation and coding.
    Using this first alternative, I am currently adding to the validation error messages the currentRow attrubute so that users can see it an trace back to the corresponding row in the data table to correct the data entry.
    However, everyone, users, project drivers and developers (including myself), are grumbling a bit over such a "hackish" approach.
    Any thoughts? Am I missing something obvious?

    Well I'll be damned!
    What's done in the sample app is, of course, the intuitively obvious choice and is exactly what I started out trying to do the first time round.
    But as I mentioned before, when I first tried it (yes: I'm pretty sure I set the "for" attribute on the inlineMessage components), I got the non-unique component id exception for the inlineMessage component(s) after adding the second (but not the first) row to the page.
    Anyway, after dragging my inlineMessages to the exact same position as those in the AppModel example, now things work fine (except I think I'd like a line break before the message and to change the row/column styles so the values and messages line up properly...the look is rather ugly in the AppModel example when there are validation messages displayed).
    Not sure, but I'm thinking maybe there was an issue with where the inline message markup was placed, my first time through, relative to the data table value bound component and the column header facet?
    I was using the application view drag 'n drop feature the first time round and dragged the inlineMessage component to the spot just below the data table value bound component and hence just above the column header facet. In the AppModel example, OTOH, the inline messages are placed just after the column header facet.
    Of course, I will now try to duplicate the original exception.
    If I can (and it is an issue with placement), I will post back some sort of bug report or RFE. Otherwise, I'll post back declaring what a bone head I've been...;-)
    Anyway, thanks for the quick response, v.
    Campbell

  • Name of date table when Stock level falls below Reorder level

    Hi,
    I want to know is there any table where we can find the date when stock level falls below the recorder point(View - MRP1(MRP Procedure))?
    Please update.
    Thanks
    Dipak

    Not answered.

  • JSF Data Table

    I have the following requirement.
    I have DataTable with the following columns. |Status | Institution | State | Country | Major |Degree | Date
    status is drop down with values " ' ','completed', 'attended' " (note one of the values is empty).
    Each of these columns in binded to a corresponding UIInput data type
            private UISelectOne grad_status = new UISelectOne();
         private HtmlInputText institution = new HtmlInputText();
         private HtmlInputText state = new HtmlInputText();
         private HtmlInputText country = new HtmlInputText();
         private HtmlInputText major  = new HtmlInputText();
         private HtmlInputText degree = new HtmlInputText();
         private HtmlInputText date  = new HtmlInputText();I want the user to either enter the fields in the row completely or leave them alone.
    I have written an EL for each fields required attribute. The problem here is that it is not being evaluated for UISelectOne. but for the rest of the fields it is being evaluated correctly.
    required="#{!empty AP4b.institution.value  || !empty AP4b.state.value || !empty AP4b.country.value || !empty AP4b.degree.value ||!empty AP4b.major.value || !empty AP4b.date.value}"
    requiredMessage="status required"
    required="#{!empty AP4b.grad_status.value  || !empty AP4b.state.value || !empty AP4b.country.value || !empty AP4b.degree.value ||!empty AP4b.major.value || !empty AP4b.date.value}"
    requiredMessage="Institution required"
         required="#{!empty AP4b.grad_status.value  || !empty AP4b.institution.value ||      !empty AP4b.country.value || !empty AP4b.degree.value ||!empty AP4b.major.value || !empty AP4b.date.value}"
         requiredMessage ="State required"
    required="#{!empty AP4b.grad_status.value  || !empty AP4b.institution.value ||      !empty AP4b.state.value || !empty AP4b.degree.value ||!empty AP4b.major.value || !empty AP4b.date.value}"
      requiredMessage = "Country required"
      required="#{!empty AP4b.grad_status.value  || !empty AP4b.institution.value || !empty AP4b.state.value || !empty AP4b.degree.value ||!empty AP4b.country.value || !empty AP4b.date.value}"
      requiredMessage="Major required"
       required="#{!empty AP4b.grad_status.value  || !empty AP4b.institution.value || !empty AP4b.state.value || !empty AP4b.major.value ||!empty AP4b.country.value || !empty AP4b.date.value}"
      requiredMessage="Degree required"
       required="#{!empty AP4b.grad_status.value  || !empty AP4b.institution.value || !empty AP4b.state.value || !empty AP4b.degree.value ||!empty AP4b.country.value || !empty AP4b.major.value}"
      requiredMessage="Date required"Help is really appreciated.
    Regards
    Sandeep
    Edited by: sgatl2 on Aug 5, 2008 8:25 AM
    Edited by: sgatl2 on Aug 5, 2008 8:32 AM

    Hi,
    For the same dataTable above I have a boolean check box for which required should be set to false if the user has checked it.
    I have the following expression language but I cannot get it evaluated properly. Please suggest where I am doing the error.
    <h:dataTable value="#{AP4b.al_AcadAttend}" var="dt" id="dt1" styleClass="entryTable_nomargin"
                                  binding="#{AP4b.table}" headerClass="tableHeading3"
                                  columnClasses="tableData2,tableData2,tableData2,tableData2,tableData2,tableData2,tableData2">
              <h:column id="col_status">
              <f:facet name="header">
                   <h:outputText value="Status" id="ot_status"></h:outputText>
              </f:facet>
                   <h:panelGrid columns="1" style="width:7em" id="pgrd_status">
                        <h:selectOneMenu value="#{dt.graduationStatus}"      binding="#{AP4b.grad_status}"
                                  id="grad_status" required="#{AP4b.delete.selected != true && (!empty AP4b.institution.submittedValue ||
                                  !empty AP4b.state.submittedValue || !empty AP4b.country.submittedValue ||
                                  !empty AP4b.major.submittedValue ||     !empty AP4b.degree.submittedValue ||
                                  !empty AP4b.date.submittedValue)  }" requiredMessage="Status Required">
                                  <f:selectItems id="fselStatusItems" value="#{AP4b.gradStatusItems}" />
                        </h:selectOneMenu>
                        <h:message for="grad_status" errorClass="requiredMessage" id="msg_gstatus">
                        </h:message>
                   </h:panelGrid>
              </h:column>
                   <h:column id="col_inst">
                        <f:facet name="header">
                             <h:outputText value="Institution" id="ot_inst"></h:outputText>
                        </f:facet>
                        <h:panelGrid columns="1" style="width:13em" id="pgrd_inst">
                             <h:inputText value="#{dt.institution}" maxlength="60" size="20"
                                  style="width:13em" id="institution" binding="#{AP4b.institution}"
                                  required="#{AP4b.delete.selected != true && (AP4b.grad_status.localValue == 'Graduated' || AP4b.grad_status.localValue  =='Classes Taken'||
                                  !empty AP4b.state.submittedValue || !empty AP4b.country.submittedValue ||!empty AP4b.major.submittedValue ||
                                  !empty AP4b.degree.submittedValue || !empty AP4b.date.submittedValue)  }"
                                  requiredMessage="Insitution Required">
                             </h:inputText>
                             <h:message for="institution" errorClass="requiredMessage" id="msg_inst"></h:message>
                        </h:panelGrid>
                   </h:column>
                   <h:column id="col_state">
                        <f:facet name="header">
                             <h:outputText value="State" id="ot_state"></h:outputText>
                        </f:facet>
                        <h:panelGrid columns="1" style="width:2em" id="pgrd_state">
                             <h:inputText value="#{dt.state}" id="state" binding="#{AP4b.state}"
                                  style="width:2em"
                                  required="#{AP4b.delete.selected != true &&  (!empty AP4b.grad_status.localValue  || !empty AP4b.institution.value ||
                                  !empty AP4b.country.submittedValue || !empty AP4b.major.submittedValue ||
                                  !empty AP4b.degree.submittedValue || !empty AP4b.date.submittedValue)}"
                                  requiredMessage="State Required">
                             </h:inputText>
                             <h:message for="state" errorClass="requiredMessage" id="msg_state"></h:message>
                        </h:panelGrid>
                   </h:column>
                   <h:column id="col_country">
                        <f:facet name="header">
                             <h:outputText value="Country" id="ot_country"></h:outputText>
                        </f:facet>
                        <h:panelGrid columns="1" style="width:7em" id="pgrd_country">
                             <h:inputText value="#{dt.country}" id="country" style="width:7em"
                                  binding="#{AP4b.country}" required="#{AP4b.delete.selected != true && (!empty AP4b.grad_status.localValue  ||
                                  !empty AP4b.institution.value || !empty AP4b.state.value ||!empty AP4b.major.submittedValue
                                   || !empty AP4b.degree.submittedValue || !empty AP4b.date.submittedValue)  }"
                                  requiredMessage="Country Required">
                             </h:inputText>
                             <h:message for="country" errorClass="requiredMessage" id="msg_country"></h:message>
                        </h:panelGrid>
                   </h:column>
    </h:dataTable> Thanks Sandeep

  • Display Tag use with JSF Data Tables

    Has Anyone got to work the Display tag with JSF
    I have got soo far to display the table by using Display tag with JSF dataTables but unable to have a link or command button to navigate
    Theirs a online hack available for the same .....But i am unable to get to run it
    Has anybody got the solution for the same

    Hi ,
    I am trying to do the same but I have no success.
    My code is
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="urn:jsptld:http://java.sun.com/jstl/core"
         xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8" />
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag" />
         <h:dataTable value="#{sessionScope.users}" var="user" style=""/>
         <display:table name="sessionScope.users" class="" id="user">
              <display:column property="username"/>
              </display:table>
    </html>
    where users is a List Obj in the session. In output I receive just this page.
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jstl/core" xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8"></jsp:directive.page>
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag"></jsp:directive.page><table style="">
    <tbody>
    <tr>
    </tr>
    <tr>
    </tr>
    </tbody>
    </table>
         <display:table name="sessionScope.users" id="user">
              <display:column property="username"></display:column>
              </display:table>
    </html>
    It seems to that display tags are not parsed...
    Do zou have an idea?
    Thanks a lot in advance
    beppoz

  • JSF data table and commandLink

    Hi,
    Is the bug of using commandLink with datatable resolved for a request scope bean. The google search is not very helpful.
    I have already tried tomhawk datatable with preserveDataModel. Unfortunatelyy does not work.
    I am sure in JSF 2.0 it would have been resolved. Any help appreciated.
    Thanks
    Edited by: bhavin_monani on Nov 12, 2009 7:09 AM

    Problem #1
    I think commandLink will always forward all requests back to the JSF controller. If you do not have any actionListener on your commandLink (or do not use a backing bean's method as the action), you can use <h:outputLink> instead.
    Problem #2
    <link rel="stylesheet" href="<%=request.getServletPath()%>/css/coa.css"/>or
    <t:stylesheet path="/css/coa.css" />where <t:stylesheet> is from MyFaces Tomahawk.

  • JSF Data Table help

    I have the following dataTable columns
    Completed Status | Course |Period| YearCompleted | Course Name and Number| Institution | Credits | Grade |
    suppose there are 10 rows underneath this table. I want the user to fill all the fields except grade. I achieve this by placing the "required = true" attribute underneath every field. But for Grade I have special situation.
    The Completed Status is a drop down. with 2 options - 'completed', and 'in progress'.
    If Completed Status = completed then the Grade is required,
    but if completed status = 'in progress' then grade is not required.
    How can I achieve this. If I can do this only at the backing bean then how can I get the missed row id of the field "Grade" and put a new FacesMessage.
    Any help is really appreciated.
    Regards
    Sandeep

    Thanks for the suggestion and I tried implementing the same.I dont know why i am not getting the <h:message.> for Grade.am I missing any configuration settings.
    I have the following info for completedStatus and Grade.
    <h:dataTable value="#{Bean.ArrayList}" var="dt" styleClass="entryTable"  border="1" >
    <h:column headerClass="tableHeading2">
    <f:facet name="header">
    <h:outputText value="Completed Status"></h:outputText>
    </f:facet>
    <h:panelGrid columns="1">
    <h:selectOneMenu id="status" value="#{dt.completedStatus}" required="true" requiredMessage="Please select a status">
    <f:selectItems value="#{AP3b.statusItems}"/>
    </h:selectOneMenu>
    <h:message for="status" style="color:red" ></h:message>
    </h:panelGrid>
    </h:column>and for Grade I put the following code
    <h:column headerClass="tableHeading2">
    <f:facet name="header">
    <h:outputText value="Grade"></h:outputText>
    </f:facet>
    <h:panelGrid columns="1">
    <h:inputText value="#{dt.grade}" maxlength="4" size="4"  id ="grade"
    required = "#{dt.completedStatus eq 'completed'}" requiredMessage="Grade is required"></h:inputText>
    <h:message for="grade"  style="color:red"></h:message>
    </h:panelGrid>
    </h:column>Regards
    Sandeep

  • Issue with appending data to JSF HTML - Data Table Component

    I am following the article from Oracle Magazine title Generating a JSF Data Table:
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html After tweaking the code I was able to get the example working in Part 2 of this article...I was able to run a query and the results were brought back to my table...my question is, after you perform the query once, the results of the new query are appended to each column...and if you submit another query the new results are appended to the results from the previous 2 queries...what call do I need to make in order to "refresh" the table or reset the column values. I am new to the JSF table data component. Here is the code being used...the commandButton1_action() method is called each time a new query is submitted:
    ppublic String commandButton1_action()
    // Add event code here...
    ResultSet rs;
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url="jdbc:oracle:thin:@localhost:1521:OracleDB";
    Connection connection = DriverManager.getConnection(url, "OE", "password");
    Statement stmt=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    rs=stmt.executeQuery((String)inputText1.getValue());
    dataTable1.setBorder(5);
    dataTable1.setCellpadding("1");
    dataTable1.setVar("catalog");
    HtmlOutputText headerComponent = new HtmlOutputText();
    headerComponent.setValue("CatalogId");
    column1.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Journal");
    column2.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Publisher");
    column3.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Edition");
    column4.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Title");
    column5.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Author");
    column6.setHeader(headerComponent);
    HtmlOutputText column1Text=new HtmlOutputText();
    ValueBinding vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.catalogid}");
    column1Text.setValueBinding("value", vb);
    column1.getChildren().add(column1Text);
    HtmlOutputText column2Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.journal}");
    column2Text.setValueBinding("value", vb);
    column2.getChildren().add(column2Text);
    HtmlOutputText column3Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.publisher}");
    column3Text.setValueBinding("value", vb);
    column3.getChildren().add(column3Text);
    HtmlOutputText column4Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.edition}");
    column4Text.setValueBinding("value", vb);
    column4.getChildren().add(column4Text);
    HtmlOutputText column5Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.title}");
    column5Text.setValueBinding("value", vb);
    column5.getChildren().add(column5Text);
    HtmlOutputText column6Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.author}");
    column6Text.setValueBinding("value", vb);
    column6.getChildren().add(column6Text);
    ResultSetDataModel dataModel=new ResultSetDataModel();
    dataModel.setWrappedData(rs);
    dataTable1.setValue(dataModel);
    catch(SQLException e){}
    catch(ClassNotFoundException e){}
    return null;
    Thanks for any help!

    anyone using the JSF HTML Data Table Component?

  • Aggregation table - Diffrent agg levels for base table and agg table

    Is it possible to have Different aggregation level for base table and Aggregation. Say sum on a column in AGG table and Count for the same column in Fact table.
    Example
    Region,Day_product,sales person, customer are dimensions and Call is a fact measure
    FACT_TABLE has columns Region, Day, Product, Sales person,Customer, Call
    AGG_TABLE has columns Region, Month,Product, call
    We already have a Logical Table definition for the fact table say FACT_CALL
    We have a Logical column called No of customers.
    For the Data source as FACT_TABLE Formula for the column is "Customer" and Aggregation level is count distinct.
    But agg table we already have a calculated column call TOT_CUSTOMERS. which is been calculated and aggregated in the ETL.
    IF we map this to the logical column we have to set the formula as TOT_CUSTOMERS and we need to define aggregation type as SUM as this is at REGION, MONTH AND Product level. But OBI does not allow to do so.
    Is there a work around for this? Can you please let us know.
    Regard
    Arun D

    The way BI server picks up the table that would satisfy the query is through column mappings and contents levels. You have set the column mappings to TOT_CUSTOMER, which is right. When it comes to aggregation, since its already precalculated through ETL, you want to set the aggregation to SUM. Which I would say - is not correct, you can set the aggregation to COUNT DISTIMCT which is same as that of the detailed fact. But set the content levels to month in date table, and appropriate levels in region etc., So now BI Server will be aware of how to aggregate the rows when it chooses the agg table.

  • Hiding the columns in data table in jsf

    Hi Guys,
    I have stuck one situation in my project . i.e i want to hide the columns in Data table in jsf.
    Please response this mail.
    Thanks
    Narne

    See this...
    [http://forum.java.sun.com/thread.jspa?threadID=5119514&messageID=9938606]

  • Can anyone recommend a div equivalent of JSF's data table?

    I am looking for a component that will generate the div equivalent of JSF's data table.
    Thoughts, comments suggestions?

    Tabular data ought to be represented in a table. Putting it in a heap of div's is pointless. If you want a list of single items, you may find the Tomahawk's t:dataList useful. No other components comes to mind. Consider writing it yourself or just use JSTL's c:forEach in combination with plain vanilla HTML.

Maybe you are looking for

  • Error while running HelloWorld.class

    i am new in java. please guide me. i have made Helloworld.Java file public class HelloWorld public static void main(String[] args) System.out.println("Hello Java World!"); and compile it using following command e:\javawork>javac HelloWorld.Java no me

  • Filter Credit Memo's from  Invoice Reports

    Hi All, The SPM extractor for Invoices includes a filter based on Posting Key to only include types of 21, 22, 31, 32 which are Credit Memo, Reverse Invoice, Invoice, and Reverse Credit Memo. We have a requirement on our Invoice based reports to excl

  • Flex 4.5.1 AIR application is not running on iPhone 3gs

    I developed an iOS application in Flash builder 4.5 with flex 4.5.1 extension using AIR 2.6. This application is successfully installed on iPhone4G. When I tried to install it on iPhone 3GS it say, this application is not compatible with this iPhone.

  • 'Null' being added to ArrayCollection during add/update by Dataservice

    Environment: Tomcat 6.0 Livecycle 3.1 Flex SDK 3.5 We have a data service destination setup like this:      <destination id="Trades" adapter="java">         <properties>             <factory>spring</factory>             <source>lcdsTradeBlotterAssemb

  • HT5312 What if I don't know me rescue email adress ?

    Like I can't remember my security questions an when I hit sent to your rescue email I don't know who is the rescue email