Well, I've been looking for any examples but all I could find was just examples in plain Java but I need to do something like this one or this other but in a JSF or PrimeFaces component.
Is it possible to add Row headers to a JSF or PrimeFaces datatable?
4.4k Views Asked by AlexLezama At
2
There are 2 best solutions below
5
Claudinei
On
Maybe this is what you are looking for:
<f:facet name="header">
Row Header Example
</f:facet>
Here is the complete example: Primefaces showcase - DataTable - Group 1
I think you want something like a horizontal header, a don't think primefaces has it, but you can change the style of first cell like this:
<p:column headerText="Id">
<h:outputText value="#{car.id}" styleClass="someCssClass" />
</p:column>
Related Questions in JSF
- Strange java.lang.ArrayIndexOutOfBoundsException rendering error in jsf application under high load
- h:outputStylesheet inside ui:repeat
- IntelliJ warns "Cannot resolve variable" on EL variables declared in parent page of include
- How to instantiate a backing bean on page load
- How to disable default keyCode event in Primefaces?
- How to define a style for ul which appears automatically
- How to add '%' symbol in textbox using jsf and jsp?
- Primefaces onkeyPress triggerevent
- h:commandButton action method is not invoked
- f:ajax resetValues="true" does not seem to work
- Primefaces datatable duplicate "No records found" while doing column freeze for empty records
- How to provide a file download from a JSF backing bean using af:commandMenuItem?
- Remove message from h:outputText ofter time
- How to change the position of confirmation box in jsf primefaces?
- commandLink not working when images are in same line
Related Questions in JAKARTA-EE
- Which Should i use for date,time,email in servlet?
- Simple JavaEE HTML GET/POST application
- Updating the message contents for a MessageDialog wicket
- Access roles from multiple applications
- How to compile an individual jsp file from command line
- DB2, Hibernate, JPA: Schema does not exist
- Spring load a file
- Execute RequestDispatcher after 5 seconds
- Hibernate Lazy loading not work in OneToOne relation
- Websphere 8.5.5 - shared session context not working
- withSchedule(ScheduleBuilder<SBT>) in the type TriggerBuilder<Trigger> is not applicable for arguments (MutableTrigger)
- Setting response header using interceptor?
- How to use the same ContainerRequestFilter for multiple projects?
- [Ljava.lang.Object; cannot be cast to List from a request SQL
- which should i use in request.getParameter in servlet?
Related Questions in PRIMEFACES
- disable sorting in lineChart series in Primefaces?
- Strange java.lang.ArrayIndexOutOfBoundsException rendering error in jsf application under high load
- backingBean doens't receive commandButton action
- How to disable default keyCode event in Primefaces?
- Primefaces onkeyPress triggerevent
- PrimeFaces Chart not updating with Ajax Requests
- Primefaces datatable duplicate "No records found" while doing column freeze for empty records
- How to change the position of confirmation box in jsf primefaces?
- commandLink not working when images are in same line
- Using multiple FluidGrids in one form
- update cell from primefaces datatable after action invoked
- What are the p:ajax events available for slider component in primefaces
- retrieve value from Parameters Map sent by Javascript Function generated by p:remoteCommand does not work
- Add table plugin to primefaces editor
- How to handle inline image added by user in email client
Related Questions in DATATABLE
- DataTable does not release memory
- SQL - How to put beside two records of the same table in the same row
- Export DataTable to CSV File with "|" Delimiter
- Primefaces datatable duplicate "No records found" while doing column freeze for empty records
- Clean a DataTable in a loop moving used items to two other DataTables
- Checkboxes will only work on current pagination page in jQuery datatables
- How to remove datatable from dataset?
- How to pre-select rows in Shiny DT datatables
- @postConstruct method with parameter
- Pivoting values from datatable
- Adding image to GridView created in CodeBehind
- DataTable.Update Fails and Throws DBConcurrencyException
- Collection was modified; enumeration operation might not execute on Except operation
- Divide Rows of DataTable
- update cell from primefaces datatable after action invoked
Related Questions in ROWHEADER
- Is it possible to remove row header column from angular ui-grid?
- JTable- Resize row header when row is resized
- Wpf DataGrid RowHeader
- Row Headings won't repeat on new pages
- Draw Row Lines on the Jtable RowHeaders in hava
- How to disable RowHeader on a DataGridView
- How to make one JScrollPane connected to two components?,workaround
- Is it possible to add Row headers to a JSF or PrimeFaces datatable?
- How to display RowHeader in a GridView at runtime in C# Asp.Net?
- How to set Datagrid row header background color
- Google Spreadsheet Table into a single column with dropdown
- How to handle RowSorter-Synchronization in JTables with RowHeader?
- Adding rowheader for jtable and move the row up and down and retrieve data based on the rowheader index of jtable in java
- WPF DataGrid Row Header is invisible
- Row header in JTable with same drag/drop behaviour as column header
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The
h:columntag has a property calledrowHeaderthat does what you need.