Problem when using java TreeSet in Myfaces
------------------------------------------

                 Key: MYFACES-1669
                 URL: https://issues.apache.org/jira/browse/MYFACES-1669
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.3
         Environment: windows,unix
            Reporter: David F


Consider the snipped of JSF code. This is a custom tag that works in jsf-1.0.9 
but does wot work in
jsf1.1.3 or greater.

<t:tableIterator id="taxAreaResultsList" cellpadding="5" cellspacing="0"
            styleClass="GridData" width="100%" 
value="#{rateluWorkflow.results.taxAreas}" var="taxAreaRate" rendered="#{!empty 
rateluWorkflow.results.taxAreas}">


            <t:tableRow id="resultsHeaderRow" header="true">
              <t:tableCell id="taxAreaIdCell" styleClass="gridData">
                <h:outputText id="taxAreaId" value="#{taxAreaRate.taxAreaId}" 
styleClass="gridDataBold"/>
             </t:tableCell>
            </t:tableRow>


 
</t:tableIterator>


The expression language "#{rateluWorkflow.results.taxAreas}" mentioned above is 
as follows:


The "rateluWorkflow" references a WorkFlow bean which has a getResults() method 
which returns a
ResultsPreparer bean which has a getTaxAreas() method that returns a java 
Set(TreeSet) which contains a TaxAreaResultBean  bean which 
contains the method getTaxAreaId(). Now, when the  "#{taxAreaRate.taxAreaId}" 
executes I get an error as follows:

javax.faces.el.PropertyNotFoundException: Bean: java.util.TreeSet, property: 
taxAreaId

If I change the method getTaxAreas() in the ResultsPreparer bean to return 
anything other then a Set(TreeSet) for example a list it calls
the correct method getTaxAreaId() on the TaxAreaResult bean and returns 
correctly. Is it possible that you cannot
use Sets in this case.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to