4 Replies Latest reply on Aug 7, 2009 4:03 PM by dhook.donald.hook.gmail.com

    Illegal Syntax for Set Operation

    dhook.donald.hook.gmail.com
      I created have a seam-gen created app that I am modifying a search page to search on an ID (Integer) rather than a string.  The string search parms work fine, but the numeric ones do not.  For example, I have a list of items, of which I am using the selected item from the list (its id) to search.  I em up getting an Illegal Syntax for Set Operation and am not sure what I am doing wrong.  Any insight would be greatly appreciated. 

      The Stocklist object extends EntityQuery and I have created a string attribute on it (stockList.emptyString) so that 0 is not displayed, otherwise 0 gets passed in for the search criteria.  So if the value is > 0, then display the value, otherwise display an empty string.

      This is the error I receive.

      07:18:15,171 SEVERE [component] /StockList.xhtml @30,146 value="#{ stockList.stock.exchangeId > 0 ? stockList.stock.exchangeId : stockList.emptyString  }": Illegal Syntax for Set Operation

      Thanks .....