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.

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

  • 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 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

  • Custom Data Processing Extension, use in SSRS Report Properties - References

    I've built a Custom Data Processing Extension (CDPE) and registered it
    successfully (ie. it shows up in the new datasources dialog/drop-down and saves just fine, for VS2010-2014). It is intended to be a custom (XML-based) DataSource. However, based on the "nature of the beast", I also need to have a Custom Query
    Designer (CQD) for development  testing of the CDPE.
    Here are the errors I get for the CQD:
    Pulling a report up in "Report Preview", which is wired to the CDPE->CQD, I get:
    "An error occurred during local report processing. The definition of the report '/TestDS' is invalid. Error while loading code module: 'Microsoft.ReportingServices.Interfaces, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. Details:
    Could not load file or assembly 'Microsoft.ReportingServices.Interfaces, Version=11.0.0.0, Culture=neutral, PublicKeyToken 89845dcd8080cc91' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception
    from HREULT: 0x80131040)"
    My CDPE directly includes Microsoft.ReportingServices.Interfaces.dll AND matches everything as far as version and key. It also includes Microsoft.ReportingServices.QueryDesigners.dll required for the CQD.
    I've written other WORKING CDPEs but not one with a CQD (Query Designer Custom replacement in Visual Studio). All the references from what I can tell are OK. I think CQDs are screwed up for XML datasources. The interfaces are not right.
    (will explain further on)
    From the "Data Sources", Dataset Properties, I click on the "Query Designer", I get:
    "An error occurred while loading the query designer 'DATASET' (which is the name of the CDPE). Query Designer: Object reference not set to an instance of an object."
    I "think" XML type CDPEs are trying to execute a web services call, versus working properly/CORRECTLY with a
    text-based query for XML. The reason I say this is that I've created both WinForm and WebForm test harnesses. They both come up with this error: "...Failed to prepare web request for the specified URL. (rsXmlDataProviderError), Invalid
    URI: The URI is empty." (which is nonsense, there is no request, the query is simply text/file-based stuff, and I read locally ALL of the XML data expected for testing without issue -> I'm ONLY making the CDPE XML-based because I have custom
    WCF calls which already work). (If you really want to understand overall architecture, please see my post: http://social.msdn.microsoft.com/Forums/en-US/d15d9206-95d7-473a-a7f9-a38b4279de8c/ssrs-extension-which-to-use?forum=sqlreportingservices&prof=required
    Other than "100 mile" overviews from Microsoft, this has got to be some of the worst documented stuff I've ever seen (
    http://msdn.microsoft.com/en-us/library/microsoft.reportingservices.interfaces.iquerydesigner.aspx ). Remote Debugging it doesn't work 95% of the time.
    My environment is VS2013 Ultimate with BI and SQL Server 2012 SP1.
    Thanks Rob
    Rob K

    Update:
    I can now see the Custom Query Designer and get anticipated results (after some fooling around with different combinations).
    Here's how things were broken by the MS SQL Server 2012 product/release team:
    1. they upgraded to .Net v4.x here (to support SharePoint, AX, MS Data Tools, etc.)
    C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.ReportingServices.QueryDesigners.dll
    C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.ReportingServices.Interfaces.dll
    2. they left c:\Program Files\Microsoft SQL Server\MSRS.11.MSSQLSERVER\Reporting Services\ReportServer\bin\Microsoft.ReportingServices.Interfaces.dll at .Net
    v2.x
    3. they don't support Custom Extensions (which use a Query Designer) with anything higher  than .Net v3.5
    In my case, I had to segregate:
    a. Report Definition Custom Extension to v4.5
    b. Custom Data Processing Extension to v3.5
    c. Custom Query Designer to v4.x
    d. my WCF/SSO to v4.5.1.
    #2 and #3 above, in my humble opinion are simply dead wrong as far as what you ever want to do in the release cycle (I can see there being an early/first release exception(s), but 2 years out and a successor product (2014) should have meant that this
    was rectified more than a year ago.)
    Whomever failed to get this communicated in the 2012 documentation created even more havoc than an average developer can decipher:
    http://msdn.microsoft.com/en-us/library/microsoft.reportingservices.interfaces.iquerydesigner(v=sql.110).aspx
    (I'm still working on how to get the remote debugger working consistently.)
    Rob

  • 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

  • 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

    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

  • 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?

  • SRM 7.0 Table Extensions on Business Documents

    Hi,
    With SRM 7 it is possible to add not only customer fields to the Screens and Databases, but whole tables.
    However, when we do this for RFX on Header Level, there will be a Table Extension Subtab on Header level, and Add and delete buttons will work to generate new entries, but there is no way of entering or displaying context.
    Upon further analysis it seems that the fill and update functions are missing for Table extension.
    Can somebody help us? How can we generate own fill and update functions for our customer table extensions in the RFX header?
    In Customizing one can only determine field meta data classes. Not the content itself.
    Thanks for Help regarding this.

    Hello,
    You can fill the table extensions using the BADI  
    /sapsrm/bd*pdo_te_outbound.
    I do not remember the exact name so I have used * in the BADI name .
    Hope this answers your question.
    Best Regards,
    Pavan

  • Insert data in a user master data Table

    Hi every body,
    I've created a User Master data table named 'MyTable'. i want to add data to this table but there is an error which occur : 'to generate this. First Define the Numbering Series in the Administration Module'.  I want to add data to this table using C# code,  without using UDO.
    Is it possible?
    Thank you for helping me
    Haifa

    Hi,
    thank you for your answer.
    I didn't understand very well, i will ask the question in an other way.
    it is possible to insert records in a master data table by using the code C#
    I mean :
                usertable = _Company.UserTables.Item(tablename);
                usertable.Code = code;
                usertable.Name = name;
                usertable.UserFields.Fields.Item("U_ContCode").Value = ContCode;
                usertable.UserFields.Fields.Item("U_CardCode").Value = CardCode;
                lRetCode = usertable.Add();
    without encountering the problem of numbering series.
    Haifa

  • Web App Designer - Graph - "Data table" text font size

    Hi,
    In the graphs, I am showing the data table by using this piece of code.
    <param name="SHOW_DATATABLE" value="X"/>
    How should I control the font size of the text displayed in data table.
    Thanks
    Gova

    Oh, my mistake. I thought you were talking about the table. The graph fonts are not maintained in a stylesheet. You have to go to the graph element (double click) and make changes to the fonts there.

  • Use the Data Table of JSF, but only titles are display, not data show

    Hi,
    I create some simple example base on some of the tutorial online and modified myself to ensure no error. One of the tutorial that I refer is http://wiki.netbeans.org/DevelopJavaEE5App.
    I really wonder why my data never show in my jsp page, only show the titles. Basically what I have done were:
    First create entity classes
    Second create SessionBean
    Third create Controller - as JSF Managed Bean which is used to bind the data in JSP page
    Last is create JSP page with Data Table to show the data
    The customerlist.jsp has no error and display nicely with only titles.
    Pls advise.
    wenxin

    Hi Pino,
    I'm back to continue my EJB learning path, I really need your help, as I mentioned in my previous message, another BIG challenge is that since day one, I encounter error (500 Internal Server Error Servlet error: An exception occurred....) when deployed in my remote server. Locally run the jspx page no problem, data can be shown. After checking the log file below is the error message..
    10/03/22 18:12:58.17 10.1.3.4.0 Started
    10/03/22 18:12:59.439 deptremote: 10.1.3.4.0 Started
    10/03/22 18:14:02.724 deptremote: Servlet error
    javax.faces.el.PropertyNotFoundException: Error finding property 'html1' from bean of type oracle.view.backing.DeptEmployees: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlForm
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:95)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
         at deptEmployeesjspx._jspService(_deptEmployees_jspx.java:102)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlForm
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
         at java.lang.Class.getDeclaredMethods(Class.java:1763)
         at java.beans.Introspector$1.run(Introspector.java:1265)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
         at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
         at java.beans.Introspector.getBeanInfo(Introspector.java:387)
         at java.beans.Introspector.getBeanInfo(Introspector.java:159)
         at com.sun.faces.el.impl.BeanInfoManager.initialize(BeanInfoManager.java:244)
         at com.sun.faces.el.impl.BeanInfoManager.checkInitialized(BeanInfoManager.java:230)
         at com.sun.faces.el.impl.BeanInfoManager.getProperty(BeanInfoManager.java:310)
         at com.sun.faces.el.impl.BeanInfoManager.getBeanInfoProperty(BeanInfoManager.java:204)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
         ... 49 more
    10/03/22 18:14:07.146 deptremote: Servlet error
    javax.faces.el.PropertyNotFoundException: Error finding property 'html1' from bean of type oracle.view.backing.DeptEmployees: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlForm
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:95)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:40--------------------------------------------------------------------------------
    I suspect was due to the message that I got when drag the employeelist from Data Control Palette, as below:
    The "Embedded OC4J Client" has been added to the client project.
    This library provides a "jndi.properties" file that allows EJBs to be resolved in the embedded OC4J server.
    To resolve EJBs running in a remote application server,
    remove this "Embeded OC4J Client" library from the project and add a custom "jndi.properties" file to the client project instead.
    am I missing anything????
    Regards,
    Wen Xin

Maybe you are looking for

  • Older magazine downloads disappear from 'Newstand'..

    Hi,   I am very sorry if this is the wrong area to post this question but I looked for a long time without being able to find an appropriate place to star this discussion. I am a current subscriber to Thrasher Skateboarding magazine, and WIRED magazi

  • How can I show 2 fields in a Listbox ?

    In my datatable I have a field "firstname" and a field "lastname". How can I manage to get "firstname lastname" shown in the listbox?

  • 2nd iPod is stating "This iTunes is in use by another iTunes Library.......

    When I plugged my iPod in, no music was in the iTunes Library. I looked on the hard drive (I think) & looked in all files & didn't find ANY music that I purchased or downloaded myself. When I plug in my mom's iPod, none of the music on her iPod displ

  • Photos page does not display photos in some browsers

    Hi All: I published my "Photos" page, http://web.mac.com/funkyoldude/ It appears to work fine on Opera v. 9.24, Firefox v.2.0.0.7, and Safari v. 2.0.4. It does not display my photos on Mac IE v. 5.2, AOL v.10.3, and Mozilla v. 1.7.13 On these browser

  • 8800 bluetooth cannot be enabled

    Hi, I have a blackberry 8800; after updating the OS to ver 4.5 I am unable to start the bluetooth service. I reverted back to OS 4.2 and it was working perfectly, I updated again to OS 4.5 and it is not working again. Is there any way to fix the prob