Only first field of DB table is displaying repeatedly in my table componen
Hai i have one table component where i have dragged the DB Table onto that component. But in run time only the first field in DB Table is displaying repeatedly and other fields are not displayed. Please can anyone tell me what the error is.
Thank You in Advance.
DB Table means DataBase Table.
# 1
Shrinivasan,
I assume that you have successfully completed this tutorial: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/dat aboundcomponents.html
If so, then we can move on to asking questions about what makes your project different.
What is the database server that you are using (e.g., MySQL, Oracle, etc)?
Are you able to use this database table successfully on other components, such as the Drop Down List?
When you right-click the table and choose Table Layout , are all the database columns showing up in one or the other lists?
When you double-click on the rowset in the session bean to open the query editor, right-click in the pane that contains the select statement and choose Run Query, does it work (spew out the query results)?
# 2
Something to check: does the variable that represents a TableRowDataProvider which is set in your TableRowGroup match your binding expressions?
The default for both is "currentRow"
Easiest way to check is to look with the JSP editor
This answer assumes that you are getting repeats of the first Row of your database.