MyFaces Commons
  1. MyFaces Commons
  2. MFCOMMONS-5

<mc:exporterActionListener> does not work with message bundles

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.1-SNAPSHOT
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      The ExporterActionListener does not render value bindings that come from ressource message files (needed for multilanguage). We took a look into the sourcecode but did not spot a big difference between the render-method of the datatable or the output-text components and the renderer of the exporter. The values are null in any case (see example below). It does not matter if we have an output Text in the header, footer or "detail" part of a column- the value from the bundle will never be drawn.

      Is it possible, that the ExporterActionListener cannot access the values drawn via value bindings from message-files (ressource bundles) because the resource files are not in the context of the exporter (or something similar)?

      our code:

      <f:loadBundle basename="formmessages" var="form"/>
      <t:dataTable styleClass="standardTable"
      var="j"
      id="reportData"
      value="#

      {pageBean.list}

      "
      rowClasses="firstline, secondline"
      columnClasses=" , , , , column_right, column_right,
      column_right, , "
      sortColumn="#

      {cbaOutgoReportPageBean.sort}

      "
      sortAscending="#

      {cbaOutgoReportPageBean.ascending}

      "
      preserveDataModel="true"
      forceId="true"
      rendered="#

      {cbaOutgoReportPageBean.showResults}

      ">
      <t:column>
      <f:facet name="header">
      <t:commandSortHeader columnName="payedDate" arrow="true">
      <t:outputText value="#

      {form.headerValue1}

      " />
      </t:commandSortHeader>
      </f:facet>
      <t:outputText value="#

      {j.payedDate}

      " />
      </t:column>
      .
      .
      .
      </t:dataTable>

        Activity

        Hazem Saleh made changes -
        Field Original Value New Value
        Assignee Hazem Saleh [ hazems ]
        Gerd Schaffer created issue -

          People

          • Assignee:
            Hazem Saleh
            Reporter:
            Gerd Schaffer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development