4 Replies Latest reply: Apr 8, 2013 4:10 AM by 984528 RSS

    Is EL 2.2 supported for ADF components?

      Since EL2.2 we can have method invocations with parameters in the EL . But I am facing an issue while trying to do the same in ADF dvt treemap component.

      This is jsff for dvt treemap component

      <treemap id="treemap2" var="row" value="#{bindings.Query.treeModel}" xmlns="http://xmlns.oracle.com/dss/adf/faces">
      <switcher facetName="#{row.hierTypeBinding.name}" id="switcher1" xmlns="http://xmlns.oracle.com/adf/faces/rich">
      <facet name="Query0" xmlns="http://java.sun.com/jsf/core">
      <treemapNode id="treemapNode1" fillColor="#{myBean.colorBlender(row.AVGEMPLOYEESALARY)}" value="#{row.SUMEMPLOYEESALARY}" xmlns="http://xmlns.oracle.com/dss/adf/faces"/>

      This is relevant part of web.xml file (servlet 3.0 compatible)

      <web-app version="3.0"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

      I am testing this code in weblogic 12C which is ofcourse servlet 3.0/EL2.2 compatible.

      But the above code throws the error :
      Error: Function colorBlender is not declared in the tag library associated with http://xmlns.oracle.com/dss/adf/faces. Declare the function in the corresponding tag library descriptor or use the prefix associated with the tag library that declares this function.

      Why does ADF expect the custom function colorBlender() to be in "http://xmlns.oracle.com/dss/adf/faces" namespace?

      Edited by: 981525 on Apr 5, 2013 2:23 AM