Balaji Saranathan wrote:
Hi,
Was wondering if someone can help me get a better grasp. What is the
best way to work with rows of DataTable? Should the event handling
The best method is to work with a DataModel as backend for the DataTable.
The usual approach I do is, to have the backend bean feed a datamodel
into the table, and over the dataset keys I go to a detail form for
editing, via an action which is triggered by a control in the datatable,
which feeds the id as parameter.
On a general note, if my application has many number of beans, do I have
to declare them in the faces-config? Wouldn’t that be performance overhead?
not really, since the acces to the beans over the names is probably done
with a O(log n), du to hash/tree structures, the only downside of
things is, that startup takes a tad longer, the plus side is, that
the objects are not connected very strongly and can be exchanged with
the altering of a config file, to other versions or similar ones.
Forgive if questions seems silly, I'm trying to get a better grasp of
developing with JSF.
Well getting a grasp on it is hard because it is a huge framework, but
believe me, once you have things in place, you are extremely fast with it.
Sorry that I could not answer all questions