Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.2.0.GA
-
Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcate
-
Assignee Priority:P1
-
Salesforce Case Reference:
Description
When using the attached dataTable composite component, the ace:dataExporter will not generate the table contents. I have isolated this as being the result of passing the backing bean in as an attribute. If you remove the backing bean attribute and have the el expressions directly reference a backing bean, this is not an issue.
To reproduce this issue:
- Add the attached composite component to the showcase (drop in webapp/resources/components)
- In dataExporter.xhtml add the namespace xmlns:test="http://java.sun.com/jsf/composite/components"
- Change the target attribute of ace:dataExporter to target=":form2:test:carTable"
- replace the ace:dataTable tags with <test:dataTable id="test" bean="#{dataTableLazyLoading}"> (leave the dataTable content in place)
To reproduce this issue:
- Add the attached composite component to the showcase (drop in webapp/resources/components)
- In dataExporter.xhtml add the namespace xmlns:test="http://java.sun.com/jsf/composite/components"
- Change the target attribute of ace:dataExporter to target=":form2:test:carTable"
- replace the ace:dataTable tags with <test:dataTable id="test" bean="#{dataTableLazyLoading}"> (leave the dataTable content in place)
Is this fix going to help also in case under an ace:column I have a custom composite which only contains a "h:outputText" element?
e.g
{backingBean.dataModel}<ace:dataTable id="table" value="#
" var="myModel" selectionMode="single">
<ace:column id="name" headerText="name">
<cc:compositeComponent id="myComposite"/>
</ace:column>
</ace:dataTable>
---------------------------------------------
<cc:implementation>
<h:outputText id="testOutput" value="myTest"/>
</cc:implementation>
What I expect to see in the export file is myTest for each row of the datatable.
Thanks in advance.