• Post Reply Bookmark Topic Watch Topic
  • New Topic

get single cell in (ice:)dataTable

 
Steffen Neustadt
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a dataTable in my jsf bound to a com.icesoft.faces.component.ext.HtmlDataTable in my backing-bean. I need to modify some single cells and/or rows and don't know how to get them...
In a first state I have a uneditable DataTable to show some values in the output-field in the ice-columns, on click on a command-button I change to an editable one by changing the rendered-attribute "isEditable". Can make all output-field to input-field this way, but wan't to let some uneditable. Need something like
 
Steffen Neustadt
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could solve my problem yesterday:

get's the columns (if no other children before (take care of the index))
an other

get's the (in my case) output-Component
with

I get the ...well...clientId!
It looks somethinmg like this:

with form, table, columns my Id-Attributs of the according components in the jspx-file, first 0: the index in getChildren()-result, second 0: -the index of the current column, 01: the (running) number of the children of columns (means: <columns><outputText, value:.../></columns>: if 5 columns with 5 rows makes 25 output-Components with id: ...j_id19)
(see f.i. http://andrewfacelets.blogspot.com/2008/06/understanding-datatable.html )
Now we can take the id to make string-comparations (if id.contains(String_with_my_ids_and_indices){rendered=true or false)...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!