The  content of the facet "detailStamp" in t:datatable is not 
decoded/validated/updated
---------------------------------------------------------------------------------------

         Key: TOMAHAWK-215
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-215
     Project: MyFaces Tomahawk
        Type: Bug
  Components: Extended Datatable  
    Versions: 1.1.2-SNAPSHOT    
 Environment: JDK1.5
    Reporter: Claudio Tasso
     Fix For: 1.1.2-SNAPSHOT


The  content of the facet "detailStamp" inside a t:dataTable is not correctly 
decoded. In fact, decoding this facet as a normal facet (which is done inside 
UIData.processColumnFacets)  does not accomplish the job correctly.
A detail is associated to every row, so it must be decoded, validated and 
updated for every single row. The method UIData.processColumnFacets is called 
only once and (more important) when it's called the rowIndex is -1, so the 
current value of  the "var" attribute can't be evaluated. 
In other words, the decoding, validating and updating of the detail must be 
extecuted inside the context of the current row. 
The saving/restoring logic is also missing and it must be added in the 
setRowIndex method.
A patch is supplied which solve the problem. 
The patch also contains an example for the "myfaces-example-simple" web project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to