-
1. Re: <rich:columnGroup rendered attribute fails and leads to javax.el.PropertyNotFoundException
vsankar13 Jul 8, 2011 7:39 AM (in response to vsankar13)Same thing is working in Tomcat 6.0.20 version.
What is wrong with Tomcat 6.0.29 with EL API jar..?
-
2. Re: <rich:columnGroup rendered attribute fails and leads to javax.el.PropertyNotFoundException
vsankar13 Jul 11, 2011 11:05 AM (in response to vsankar13)I have got work around for this.
Now the second table can be done like this:
<rich:dataTable value="#{myBean.myList}" var="mainRow" binding="#{myBean.myTblBinding}" rowKeyVar="index" >
<rich:columnGroup>
<rich:column>
<h:outputText value="#{mainRow.mainRowDataValue}" />
</rich:column>
<rich:columnGroup
rendered="#{mainRow.showSecondTable}"
rendered="#{myBean.myList[mainRow].showSecondTable}">
<rich:column colspan="11(main table no of cols)">
<rich:dataTable value="#{mainRow.secondTableList}" var="secondtableRow">
<rich:column>
<h:outputText value="#{secondtableRow.secondRowDataValue}" />
</rich:column>
</rich:dataTable>
</rich:column>
</rich:columnGroup>
</rich:columnGroup>
</rich:dataTable>
and in my bean looks like this:;
private HtmlDataTableBinding dataTableBinding;
private int mainRow;
public int getMainRow(){
int rowIndex = this.getDataTableBinding.getRowData().getRowIndex;
if(rowIndex=-1){
this.setMainRowIndex=0
} else
this.setMainRowIndex = rowIndex;
return this.mainRow;
}
If anyone looks at a better workaround or perfect solution from Tomcat el jar point of view, please do let me know. I keep going with this for now