MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1018

Default JSF Converters evaluate value-bindings only at converter creation time


    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.7-SNAPSHOT
    • Fix Version/s: None
    • Component/s: New Component
    • Labels:
    • Environment:
      Tomcat 5.0.28
      MyFaces 1.15


      After a longer discussion in the Nabble-Forum with Mike Kienenberger from your Team he advised me to open this issue.

      All the myfaces-components evaluates value binding within the rendering-phase but the JSF-components do this step in an earlyer step.
      So we have the following problem. We want to use a columns-tag from tomahawk and inside this tag a converter from jsf. Now the converter has an EL-Expression as an attribute. This EL-Expression should set through the var-variable from the columns-tag. As described above the result of that is that the EL-Expression can't be resolved by the converter-tag because the var-variable is not set at that phase.

      Quote from Mike Kienenberger:
      "Converters that evaluate at rendertime would be an excellent addition
      to Tomahawk. I don't currently see any Tomahawk equivalents of the
      existing converters. "

      I can only say that that is absolutly important for our development because at the moment we are totally blocked by this bug.

      For a better understanding here are some samplefiles which should describe the problem enought:
      public class ListItem {
      private String dateString;
      public ListItem()

      { dateString = "date"; }

      public String getDateString()

      { return dateString; }

      public void setDateString(String tollerString)

      { this.dateString = tollerString; }

      import java.util.ArrayList;
      import java.util.List;
      public class MyBean {
      private List justAList;
      public MyBean()

      { justAList = new ArrayList<ListItem>(); justAList.add(new ListItem()); }

      public List getJustAList()

      { return justAList; }

      public void setJustAList(List justAList)

      { this.justAList = justAList; }


      <%@ page language="java" pageEncoding="ISO-8859-1"%>
      <%@ taglib uri="" prefix="h" %>
      <%@ taglib uri="" prefix="f" %>
      <%@ taglib uri="" prefix="t"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <t:dataTable value="#

      {myBean.justAList}" var="rowData">
      <t:columns value="#{myBean.justAList}

      " var="columnData" >
      <f:convertDateTime type="#


      " />

        Issue Links


          Leonardo Uribe made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Leonardo Uribe [ lu4242 ]
          Resolution Duplicate [ 3 ]
          Leonardo Uribe made changes -
          Link This issue duplicates MFCOMMONS-12 [ MFCOMMONS-12 ]
          Mike Kienenberger made changes -
          Field Original Value New Value
          Issue Type Bug [ 1 ] New Feature [ 2 ]
          Summary Unified method for value-binding Default JSF Converters evaluate value-bindings only at converter creation time
          Priority Blocker [ 1 ] Major [ 3 ]
          Affects Version/s 1.1.6-SNAPSHOT [ 12312361 ]
          Affects Version/s 1.1.5 [ 12312397 ]
          Component/s New Component [ 12310944 ]
          Daniel Herb created issue -


            • Assignee:
              Leonardo Uribe
              Daniel Herb
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: