Share on Google+Share on Google+

Samuel
panelGrid header
1 Answer(s)      4 years and a month ago
Posted in : Java Server Faces Questions

Hi,

I am reading through the introduction from the following two link regarding the panelGrid tag.

http://www.roseindia.net/jsf/panelGrid.shtml

http://roseindia.net/jsf/apache-myfaces-tomahawk/tomahawkpanelGridtag.shtml

I have question how we can generate data table in the following output with the panelGrid? Thanks.

Month Balance
1 Jan $100
2 Feb $80

Ads

View Answers

June 11, 2013 at 12:45 PM


hi friend,

you can use the tag instead. You may use the dataTable tag as the following code snippet. Hope this will be helpful for you.

<h:form>
<h:dataTable value="" border="1" title="dataTable">
<f:facet name="header">
<h:outputText value="JSF dataTable example" />
</f:facet> 
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet> 
<h:outputText value="Deepak"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Address" />
</f:facet> 
<h:outputText value="Rohini"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Ph.No" />
</f:facet> 
<h:outputText value="9328888888"/>
</h:column>
</h:dataTable>
</h:form>

Thanks.










Related Tutorials/Questions & Answers:
panelGrid header
panelGrid header  Hi, I am reading through the introduction from the following two link regarding the panelGrid tag. http://www.roseindia.net/jsf... output with the panelGrid? Thanks. Month Balance 1 Jan
jsf: generate another panelGrid
generate another panelgrid with the same number of columns and rows (Each time I
Advertisements
JSF h:panelGrid - Java Server Faces Questions
JSF h:panelGrid  Hi Sir, When using in JSF, is there an option where we can display the table generated by this panelGrid in the center of a page... on JSF panelGrid Tag visit to : http://www.roseindia.net/jsf
JSF panelGrid Tag
JSF panelGrid Tag      ...:form>    <h:panelGrid columns="3" border="1" rules="all" title="This is panelGrid demo">  
table header
table header  how set the header to the TableModel
header files
header files   do you have a all header files of java
header() in php
header() in php  hello, Use of header() in php?   hello, header() is used for redirect the page.if you want to redirect one page to another we can use
Header file
Header file  when we use, Scanner input=new Scanner(System.in); this statement in a java program,which header filemust be imported to the program?   Hi Friend, Import the package java.util.*; Thanks
swings header
. i need logic for this program . i want to apply this to window header part
php header syntax
php header syntax  What is the correct syntax of PHP Header
http header content length
http header content length  How to check the request header content length in HTTP
alignment for header and footer
alignment for header and footer  header and footer alignment is not fit like footer is not fit in bottom some white space is there in jsf, what to do
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
PHP header IE - PHP
PHP header IE  I tried the given code in PHP which is working for firefox header('Content-type: '.$theMimeType); ob_clean(); // clean output buffer flush(); // flush output buffer readfile($thePath); exit
Resize Header in CSS
Resize Header in CSS  Hi all, Please let me know if we can resize the Header tags in HTML for example H1,H2 and so on... Actually, it looks very...;We can resize header tags in CSS .. and further call that class into you HTML
Removal of XML header
Removal of XML header  I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What
swings window header
for this program . i want to apply this to window header part. Thanks
regarding header files - Spring
regarding header files  i am working on linux platform. i a using spring framework 2.5.4.while comlinig the client program i.e from demo which given in tutorial. error is these two package does not exist import
Header Tag:
Header Tag:       bean:header Tag... request header. This tag retrieve the value of the specified request header (may... scope attribute of type String or String[]. If no header with the specified
request header and response - Java Beginners
request header and response  count the hits of a user on a site
request header and response - JSP-Servlet
request header and response  Create aservlet that redirects a client to a.html if its morning ,to b.html if its a afternoon else to c.html.
Javah -  Header File Generator
Javah -  Header File Generator   ... Machine. To implement these methods Javah generates C header and source files... source code. The name of the header file and the structure declared within
request header and response - JSP-Servlet
request header and response  hi sir, i have facing some problem in this qustion:- Create a servlet that accept a name and a phone number and contain 4 buttons add,update,delete and view .On clicking on the any of the button
request header and response - JSP-Servlet
request header and response  Create a html form that accept user name and password ,if the user name and password is admin it redirects it to adminhome.html,if the user name and password is guest and guest it redirects
List out different arguments in PHP header function?
List out different arguments in PHP header function?   List out different arguments in PHP header function
how to create a header in jtable using java swing
how to create a header in jtable using java swing  how to create a header in jtable using java swing   d
Excel Sheet Header
Excel  Sheet Header In this section, you will learn how to create header on a sheet using Apache POI. In the given below example, we will create...;Take Print Preview to View Headers")); Header header = sheet.getHeader
Create Security header in web services - WebSevices
Create Security header in web services  How we can create a security header in the web services.Please provide me the code if anyone available thanks in advance
Return the MIME Header
Return the MIME Header   ... to retrieve the MIME header. MIME is stands for Multipurpose Internet Mail Extensions... a connection we use getContentType() which display the value of the content-type header
Adding Image to Header and footer at generating Itext PDF
Adding Image to Header and footer at generating Itext PDF  i want to add Image to Header , am generating the PDF letter am able to add the text as showing below : HeaderFooter header = new HeaderFooter(new Phrase
Tutorials   
Java Spring Hibernate Struts Training i have an ques. of advanced java commandlink tag in primefaces needs onclick effect how can i run ASP.Net Server from netbeans IDE? java code for cursor java vertual machine launcher error; cannot access jarfiles JSF Tutorial render in input typetext java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener After authentication and connection establishment, Upload a zipfile by chunks in java JSF CONNECTION WITH MICROSOFT ACCESS Download Current Web Page As PDF java servlet dropdown list in jsf panelGrid header do the following how to make drop down list in JSF & fetch data Item from database help me please doubt regarding JSF Creating Dynamic Tree How to upload zip file from android to server programmatically????? jsf application war file not running in my jboss 6.0 on linux 5.5 Business analysis servlet servlet exception in thread main while running servlet How to get browser time zone? JAVA Socket Programming excel report fro jsp mysql Redirect to same jsp page on successful login jsf f:parm value dynamical settings jsf f:parm value dynamical settings RMI Program in netbeans pagination in jsf pagination jsf pagination How create csv format in jsf ? need JSP Code. Arrays, loops and string handling unique value renderer JSF 1.2 online tutorial JSF code JSP jps Multicast under UDP(client server application) How to rectify "Bad version number in .class file" exception in Eclipse about avl tree and hashing project on avl tree and hashing How to navigate from one jsf to another in eclipse how to focus on the new window opened from JSF ? Editing UI components using managed bean

Ads

 
Advertisement null

Ads