You may already have found the solution by now, if not the solution lies in
the scope of DataExportBackBean, which should be "session".
Thanks,
Sam.
vasiliy.kiryanov wrote:
>
> Good morning.
>
> I have next working code:
> <t:dataTable
> styleClass="standardTable"
> headerClass="cellk"
> footerClass="cellk"
> rowClasses="celltce"
> cellspacing="1"
> cellpadding="1"
> width="95%"
> var="customer"
>
> value="#{ReportingBackBean.customersValuesAsCollection}"
> preserveDataModel="false"
> preserveSort="false">
>
> <f:facet name="header">
> <h:outputText value="monthly reporting" />
> </f:facet>
>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_id}" />
> </f:facet>
> <h:outputText value="#{customer.customerCppk}"/>
>
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_customerName}" />
> </f:facet>
> <h:outputText value="#{customer.customerName}" />
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_components}" />
> </f:facet>
> <h:outputText
> value="#{customer.componentsNumberAsString}" escape="false"/>
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_typeOfContract}" />
> </f:facet>
> <h:outputText value="#{customer.contractType}" />
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_numerOfLicenses}" />
> </f:facet>
> <h:outputText value="#{customer.licensesNumber}"
> />
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_typeOfSubscription}" />
> </f:facet>
> <h:outputText value="#{customer.subscriptionType}"
> />
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_Group_Coefficient}" />
> </f:facet>
> <h:outputText value="#{customer.groupCoefficient}"
> />
> </h:column>
> <h:column>
> <f:facet name="header">
> <h:outputText
> value="#{bundle.reporting_Price}" />
> </f:facet>
> <h:outputText value="#{customer.offeringPrice}" />
> </h:column>
>
> </t:dataTable>
> -----------------------------------
>
> Then when I surrounds it with
> <t:buffer into="DataExportBackBean.htmlBuffer">
> </t:buffer>
>
> I see that <t:buffer> write null to htmlBuffer variable. Therefore I don't
> add <t:output> because it can;t output null.
>
> does somebody have ideas?
> thank you.
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/%3Ct%3Abuffer%3E-doesn%27t-work-tf2083070.html#a9107219
Sent from the MyFaces - Users mailing list archive at Nabble.com.