Creator tip: How to create a table component dynamically
One of the questions often asked by the Sun Java Studio Creator customers is - How to create a table component dynamically?. This tip gives some hint on how to create a table component programmatically in a web application.
The preferred way to create a table component is by dragging and dropping it from the palette on to the designer and then bind it to a data provider. However, some advance users might want to create the table component programmatically based on some dynamic logic.
Read more at
http://winstonprakash.com/articles/jsf/dynamic_table
Posted at 04:17PM Mar 30, 2006 | Permanent link to this entry
Posted by Riz on March 31, 2006 at 06:59 AM PST #
Posted by MATZORI on April 25, 2006 at 05:45 AM PDT #
Posted by Field on May 23, 2006 at 09:17 PM PDT #
Posted by P.Kavitha on July 26, 2006 at 09:49 PM PDT #
// Add the binding to the action method: public String imageHyperlink1_action() imageHyperlink.setAction(getApplication().createMethodBinding("#{Page1.imageHyperlink1_action}", null)); // Add the binding to the actionListener method: public void chartsActionListener(ActionEvent ae) Class[] parameterList = { Class.forName("javax.faces.event.ActionEvent") }; imageHyperlink.setActionListener(getApplication().createMethodBinding("#{Page1.chartsActionListener}", parameterList)); // Add the ImageHyperlink to the GridPanel gridPanel1.getChildren().add(imageHyperlink);Posted by Valère Déjardin on September 15, 2006 at 03:36 AM PDT #
Posted by Winston Prakash on September 15, 2006 at 06:58 AM PDT #
Posted by MMH on October 06, 2006 at 07:53 AM PDT #
Posted by Sascha on December 06, 2006 at 10:10 AM PST #
Posted by Sascha on December 08, 2006 at 01:24 AM PST #
Posted by Erik on December 19, 2006 at 12:43 AM PST #
Posted by Prashant on January 18, 2007 at 02:32 AM PST #
Posted by Jeff on April 23, 2007 at 11:47 AM PDT #
Posted by 202.56.5.249 on May 16, 2007 at 10:55 PM PDT #
Posted by Abdullah on June 07, 2007 at 03:46 AM PDT #
This article is good, but I need help with the other side of the coin (i.e. I have a table and I want to dynamically fill its data provider with data that is NOT from a database).
I am collecting data for medical research, and need to manipulate/filter the data (using Java) before displaying it. I would like to keep this logic in the "presentation" layer, not the "database".
I am guessing that I need to use the data providers in the palette, but I can't find a description of how data providers should be used outside of attaching to a database.
Posted by Paul Gustitus on August 09, 2007 at 09:24 AM PDT #
Sorry, I forgot to mention:
I am using NetBeans 5.5.1 and Mysql 5.5.17.
Posted by Paul Gustitus on August 09, 2007 at 10:35 AM PDT #
Hello there..I'm real green JSF programmer. recently I have build a textArea for sql statements and a button(webuijsf:button) . Plus I have a table component which I wish to populate dynamically. However It's kin hard when especially the query involves more than more table. I cound't find a way to dynamically populate table component based on dynamic sql given by user.
Posted by kiddies on September 17, 2007 at 01:25 AM PDT #
Question: This example not worked in netbeans 6.0. How to create a table component dynamically in netbeans 6.0?
Posted by ttvvaa on October 11, 2007 at 12:58 AM PDT #
hi
Posted by 203.193.15.207 on December 18, 2007 at 02:27 AM PST #
i need help in jsf dynamic table
Posted by arul on July 23, 2009 at 12:23 AM PDT #
Hai I have developed dynamic table in jsf but i neeed textfield(column) into table and also need when
i doubleclick in textfield open popup page and that same time i want get rowkey and column name
in JSF+Netbeans6.0
Anybody is knows pls reply..
Iam waiting
Posted by arul radhakrishnan on July 23, 2009 at 12:27 AM PDT #
Dynamic table component having textfield ,Below link what i pass paramater
textField1.setAutoCompleteExpression()
textField1.setValueChangeListenerExpression()
Posted by arul on July 23, 2009 at 04:52 AM PDT #
Dynamic table component having textfield ,Below link what i pass paramater
textField1.setAutoCompleteExpression()
textField1.setValueChangeListenerExpression()
I need autocomplete expression
Posted by 117.195.139.42 on July 23, 2009 at 04:53 AM PDT #