Community
Participate
Working Groups
Build Identifier: 20100218-1602 When using the 'empty' operator in a JSF EL expression, the Web Page Editor will always display the following warning for a non-collection operand: "This empty expression always evaluates to false. Only string, maps, arrays and collection have meaningful values for the empty operator" The warning is wrong. The 'empty' operator serves (at least) 3 purposes: 1) To determine if the operand is null 2) To determine if the operand is an empty string 3) To determine if the operand is an empty collection Since I am using 'empty' to test for null values I should not be getting a warning on each of my JSF EL expressions. Reproducible: Always Steps to Reproduce: 1. Create a JSF page that contains a JSF EL expression similar to the following: "#{not empty sessionData.nonCollectionOrStringAttribute}" 2. The warning described above will be displayed in the Web Page Editor