More flexible jsf tables

i am trying to build a table using jsf.
it should group by category (read/unread) and/or date, then the actual data.
my DTO contains all rows plus the extra info (read/unread+date)
my first thought was: i just need a table with three rows per item. the first two could then check if a group change occurred and render themselves as colspan="xx". the third row will then contain the values.
so it turned out, it is not really possible to do this?
what is your approach to this? what syntax do i need for this?
i am using myfaces dataTable on this first approach.
a more dirty approach would be using 3 nested datatables - the main list containing 2 rows read/unread tables containing X rows (one for each date) containing the actual data - very ugly i want to avoid this.

andreasmbi wrote:
do you have a short code example for this? html inside datalist or the other way round?Just think logically. The t:dataList renders in fact nothing but just iterates through the items. You need to write HTML around it yourself. You can render HTML conditionally using f:verbatim or h:panelGroup.

Similar Messages

  • How do u save datas more than one table using net beans ide using JSF

    Hi,
    I am new to JSF.
    I save / delete / update / New master table using POJO (Plain Old Java Objects), database - oracle and Toplink Persistence Unit.
    How do u save data more than one table using net beans ide using JSF (I am using POJO) ?
    and also Tell me the reference book for JSF.
    Thanks in advance.
    regards,
    N.P.Siva

    SivaNellai wrote:
    I am new to JSF.
    So, I am using net beans IDE 6.1 from sun microsystem. It is a free software.No, you don't drag'n'drop if you're new to JSF. Switch to source code mode. Write code manually, with the help of IDE for the speed up.
    So, please guide me the reference books, articles. I need the basic understanding of JSF, net beans IDE.[JSF: The Complete Reference|http://www.amazon.com/JavaServer-Faces-Complete-Reference/dp/0072262400] is a good book. The [JSF specification document|http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] is also a good reading to understand what JSF is and how it works. There are also javadocs and tlddocs of Sun JSF Mojarra.

  • A simple JSF Table CRUD - How To

    Hello,
    I have to build a few CRUDs for very simple tables (3 columns at most) implemented as JSF tables.
    I wish the "Create" function to work as:
    1. By clicking the "Create" button (or link?), append an empty row at the end of the table (or perhaps instert one at the start of te JSF table). I think it is not so good to insert new data using a separate form for it (and my users don´t like it either) for so simple tables.
    2. Enter the data for the new row.
    3. Clicking on "Save" button, commit all inserts and updates made to the database and refresh the table.
    My problem is that I could'nt find a way to do point 1 (Insert row). I've searched the forum, studied the tutorials but found nothing of the sort.
    So, I would be very grateful if some could explain me how to solve my problem.
    Thanks a lot in advance,
    AG

    Mr Brenden
    Yes, I'm new to JDeveloper. That does not mean I'm new to developing applications. I've been doing it for about 25 years (I'm quite old as you can see). I've been using some Oracle products (mostly Forms, Reports, Discovery and i'm allways been a fan of Designer). I'm not new to Forums (Eclipse RCP, Eclipse Birt, Java Sun Creator, etc) and I'm not new to JSF. I allways appreciate very much others help and always try to help them. I've posted work arounds and how tos for more than one subject. I allways take my time to thank people for the help. I've given may e-mail to newbies to give them a better help of subjects I know and they need. The thing I can't accept is that someone, in the name of Oracle, give answers that you can interpretate as "Don't bother, investigate and study!". I've received answers like "In this blog .......... you might find the answer to your problem in the entry ....). That is specific. Your answer sent me to a page that had 20 or more entries and not one of them touched the subject. The worst thing is that I already knew the site and read a lot of things in it.
    I didn't lambaste against the comunity. I did it against you! It clearly stated "This is specifically directed to Mr Grant Ronald:" Looks like you dont have the habit to analize the posts. And I did it against you because you posted your answer in Oracles name!
    I have to recognize I was quite rude and apologize for that in front of all buddies in the world of application development.
    As I know this is not the right place for this kind of arguing, here is my email and name, for you or someone else who wants to continue the argument: [email protected] (Antonio Gurisatti)
    As a last thing, I'll state my position:
    People, in the name of the products company are supposed to know more than any one. I expect that if I see the words "Oracle Products management" at the bottom of their entry, they really know the product and that their help is the most effective and accurate (Mr Brendens reply was effective and accurate).
    AG

  • JSF Table component Hide/Show Details question

    When you include a detailsStamp facet in your table, the "Details" column always appears as the first column allowing to disclose the details. Is there anyway to prevent the "Details" column from appearing and triggering this disclosure via another link within the row in the table? I would like to have a row in the table where one of the columns is something like:
    Joe User [show details]
    Where [show details] is a link that would trigger the discloser of the details for that row. Is this currently possible? If not, are there any plans to add this as functionality of the table component? I think users of the component are going to require more flexibility when using the Show/Hide details feature of the table component.

    True and thanks for the response. My first "work around" attempt was to use a showDetail component to accomplish what I am looking for. That had two drawbacks. 1.)When I used that in the table, it didn't disclose when I clicked it. However, if I re-navigated to the page it was disclosed (probably a partial page rendering thing). 2.) When it WAS disclosed, the detail information was restricted to that single cell in the column.
    I could use a commandLink/renderend attribute approach as suggested but that has 2 drawbacks as well. It also would be restricted to showing the details in a single cell since I can't see anyway to do a colspan with a column component. I would also lose the ability to "show all/hide all" unless I implement this logic myself.
    I really need more flexibility in the table component.
    Any other suggestions?

  • How to delete the double records connected to one or more than one tables in SQL 2008?

    Hi
    Can anyone please help me with the SQL query. I Im having a table called People with columns names: personno., lastname, firstname and so on. The personno. is having duplicate records,so all the duplicate records i have written with "double" in
    the beginning of the numbers. I tried deleting these double records but they are linked to one or more than one tables. I have to find out, all the tables blocking the deleting of double person. And then create select statements which creates update statements
    in order to replace the current id of double person with substitute id. (The personno. is in the form of id's in the database)
    Thanks

    You should not append "double" in the personno. When we append it will not be able to join or relate to other table. Keep the id as it is and use another field(STATUS) to mark as duplicate. Also we will require another field(PRIMARYID) against
    those duplicate rows i.e the main or the primary personno.
    SELECT * FROM OtherTable a INNER JOIN
    (SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
    ON a.personno = b.personno
    UPDATE OtherTable SET personno = b.primaryid
    FROM OtherTable a INNER JOIN
    (SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
    ON a.personno = b.personno
    NOTE: Please take backup before applying the query. This is not tested.
    Regards, RSingh

  • Layout issue - More than one table sections on report?

    Hello all
    I am wondering if any of you know if there is a way to have more than one table or table field on a report.
    I'm asking this because I'd like to include a large number of fields in one report, but then that makes the report hard to read (everything is on one long line).
    I am wondering if there is a way to have more than one table section on a report so I could have the address information at the top of the report than have other additional information below the address. Basically I'm interested in making things easier to read for the user.

    Use Pivot tables to isolate the columns you want in each table in your report.
    Mike L

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • Using SQL developer, how to show more then 1 table at at time ?

    Hi, everybody
    I am able to open more then 1 procedures/functions for editing.
    However i am not able to open more then 1 table for seeing the data and columns.
    1) how do i open more then 1 table tab in sql developer or i am not allow to do so ?
    2) is it possible to see what column is the foreign key of a table in sql developer ?
    thanks once again :)

    use freeze view button
    and drop table below from tabs
    http://www.oracle.com/technology/products/database/sql_developer/files/viewlets.html
    watch this viewlet
    Useful Features of SQL Developer (July '07)
    it can show u how u can see more than one table at a time

  • How to insert into more than one table at a time also..

    hi,
    i am a newbee.
    how to insert into more than one table at a time
    also
    how to get a autoincremented value of an id say transactionid for a particular accountid.
    pls assume table as
    transactionid accountid
    101 50
    102 30
    103 50
    104 35
    i want 102 for accountid 30 and 103 for accountid 50.
    thank u

    @blushadow,
    You can only insert into one table at a time. Take a look here :
    Re: insert into 2 tables
    @Raja,
    I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
    Insert, extract... ? Can you clarify your job ?
    Nicolas.

  • Updation of more then one table at a time

    Hi,
    Can we Update more than one table at a time with a single query????
    and pl Note my server is : SQL Server

    pls note that you are in a Oracle forum (FYI Oracle is not a MS product).
    Alos I'm sure that there are plenty of MS SQL Server forums on the WWW where you ll find an answer to your question.

  • Oracle OUTER JOIN on more than one table

    Hi!
    Friends, please help with this urgent problem: How can an outer join be written on more than one table?
    An SQL Server query:
    SELECT * from a INNER JOIN b on a.id = b.id LEFT OUTER JOIN c ON c.id = a.id AND c.id = b.id
    works fine with SQL SERVER
    But Oracle query:
    SELECT * from a,b,c WHERE a.id = b.id AND a.id = c.id (+) AND b.id = c.id (+)
    gives an error: OUTER JOIN cannot be used on more than one table? Why?
    I use OracleDriver from classes12.zip to connect to Oracle8i database.
    Please, help!

    The Oracle 8i and later SQL reference reads that the following "join_types" are supported and under this syntax it does not limit the LEFT OUTER JOIN (syntax the same as SQLServer example in original note) to two tables as implied in these notes:
    The join_type indicates the kind of join being performed:
    Specify INNER to indicate explicitly that an inner join is being performed. This is the default.
    Specify RIGHT to indicate a right outer join.
    Specify LEFT to indicate a left outer join.
    Specify FULL to indicate a full or two-sided outer join. In addition to the inner join, rows from both tables that have not been returned in the result of the inner join will be preserved and extended with nulls.
    You can specify the optional OUTER keyword following RIGHT, LEFT, or FULL to explicitly clarify that an outer join is being performed.

  • How to populate a jsf table with an array?

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

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

  • How can I download to one excel sheet from more than two table?

    Hi.
    as you know
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_T1' >
    this script can make download excel sheet which is same cotents of table or chart in web template.
    but if template has more than two tables how can we get excel sheet from tables?
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER_1='DATAPROVIDER_T1' DATA_PROVIDER_2='DATAPROVIDER_T2'>
    I hope this gonna work but result was fail same as I expected.
    is there any way put two tables download one excel sheet?

    Welcome to SDN.
    Post this in Business Explorer forum for quicker resposne.
    SAP Business Explorer (SAP BEx)
    Regards
    Raja

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • Crystal Report - More than one table from MySql

    Hello, I am in need of help big time.
    I have am using Visual Studio 2010 and Crystal Report 10.
    The problem that I am incounting is that I am unable to retreive data from more than one table from a MySql database. I have been stuck on this for too long and need to hjump the hurdle.
    I am using a MySql connection string, a dataset and a crystal report which is based on the dataset.
    The main error that I am having is, the browser opens and a form appears saying "The report you requetsed requires further information" With the Server name: DataSetPropertiesDetials, while the User name and Password fields are then enabled.
    I am guessing I am missing something in my code.
    When I retreive data from one table the report is fine, but when I try to use more than one table it throws the error.
    My Code is below and also attached:
    Imports System.Data.SqlClient
    Imports System.Configuration
    Imports MySql.Data.MySqlClient
    Imports CrystalDecisions.ReportSource
    Imports CrystalDecisions.Web
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim con As MySqlConnection
    Dim rpt As New CrystalReport3()
    Dim myReport As New ReportDocument
    Dim myData As New DataSet
    Dim cmd As New MySqlCommand
    Dim cmdUser, cmdProperty, cmdBranch As New MySqlCommand
    Dim daBranch, daProperty, daUser As New MySqlDataAdapter
    con = New MySqlConnection()
    'Connection String
    con.ConnectionString = "Server=****;Database=***;UID=***;Password=****"
    Try
    con.Open()
    cmdBranch.CommandText = "SELECT branch FROM tblbranch"
    cmdBranch.Connection = con
    daBranch.SelectCommand = cmdBranch
    daBranch.Fill(myData)
    cmdProperty.CommandText = "SELECT ref, keys_held, key_no, keys_out, no_name, address_line1, address_line2,key_label FROM tblproperty"
    cmdProperty.Connection = con
    daProperty.SelectCommand = cmdProperty
    daProperty.Fill(myData)
    cmdUser.CommandText = "SELECT known_name FROM tbluser"
    cmdUser.Connection = con
    daUser.SelectCommand = cmdUser
    daUser.Fill(myData)
    myReport.Load("REPORT LOCATION")
    myReport.SetDataSource(myData)
    myReport.Database.Tables(0).SetDataSource(myData.Tables(0))
    CrystalReportViewer1.ReportSource = myReport '
    Catch myerror As MySqlException
    MsgBox(myerror.Message)
    End Try
    End Sub
    End Class

    Hi, 
    You have 3 SQL commands but you are calling SetDataSource only once.  You need to look through for each of the SQL Commands. 
    Good luck,
    Brian

Maybe you are looking for

  • TM Schema - Is it possible to change IT2001/2 from a Rule?

    Hello gurus, here the TM scenario is: - CATS via ESS for Time Recording; - The employee enters the <b>actual</b> Clock-In / Clock-Out manually & releases; - The Manager approves and Time data arrives to HR (IT2001/2002). I am using a copy of the Sche

  • Ipod nano 1st gen (not recognized by iTunes and won't resotre)

    My ipod nano 1st gen has been working fine up untilthis afternoon..I plugged it in as normal while running iTunes and I wanted to remove some music files t add new ones and all of a sudden it wasn't recognized by itUnes anymore, you can't resotre it

  • Why is there no native pay role programs compatable with HMRC , for companies.

    As from April 2013 companies will have to do all their payrole online. There are no Mac software providers able to provide this to me. Sage has only a 15 employee online answer, or the basic HMRC up to 9 employee software.The only way is to use paral

  • URL in Workflow

    Hi All, When sending a mail to outlook through workflow,i need to give a url, so that the user clicks the link & proceeds further. In editor screen, when i give a link starting with http://www.xyz.com , it appears as a link in outlook. But when i giv

  • Transport script

    hi..sap gurus.. how to transport the script and smart form..