I realize now that I ignored the whole "addToENews is a string" part of the email. What I said is still true, but you probably need a boolean converter on your <h:selectBooleanCheckbox>.
On Thu, Oct 1, 2009 at 4:27 PM, Mike Kienenberger <[email protected]> wrote: > "x == y" is a read-only expression, and probably isn't allowed for a > value in <h:selectBooleanCheckbox>. > > Why not use value="#{emailController.fields.addToENews}"? > > This assumes that 'fields' has a getter for an addToENews property. > > On Thu, Oct 1, 2009 at 1:14 PM, laredotornado <[email protected]> wrote: >> >> Thanks for your reply but that didn't work. I changed to what you specified >> but still get the error >> >> Parsed Expression of unsupported type for this operation. Expression class: >> org.apache.commons.el.BinaryOperatorExpression. Expression: >> '#{emailController.fields.addToENews == true}' >> >> upon submitting my form. Any other advice is appreciated, - Dave >> >> >> >> Anton Gavazuk wrote: >>> >>> <h:selectBooleanCheckbox value="#{emailController.fields.addToENews >>> ==true}" >>> /> >>> >>> 2009/10/1 laredotornado <[email protected]> >>> >>>> >>>> Hi, >>>> >>>> I'm using MyFaces 1.1 for a web app deployed in Resin 3.0.19. This is >>>> the >>>> expression I have ... >>>> >>>> <h:selectBooleanCheckbox value="#{emailController.fields.addToENews == >>>> 'true'}" /> >>>> >>>> but when I submit my page containing this, I get the error >>>> >>>> Parsed Expression of unsupported type for this operation. Expression >>>> class: >>>> org.apache.commons.el.BinaryOperatorExpression. Expression: >>>> '#{emailController.fields.addToENews == 'true'}' >>>> >>>> Any ideas how I can rewrite the expression to produce the desired result? >>>> Essentially I'm trying to convert a string to a boolean within JSF. >>>> >>>> Thanks, - Dave >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Trouble-converting-String-to-boolean-in-JSF-tp25696928p25696928.html >>>> Sent from the MyFaces - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Trouble-converting-String-to-boolean-in-JSF-tp25696928p25703041.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >

