Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [faces-dev] change of specification or an error ?

I think that never worked, not sure: https://stackoverflow.com/questions/3640254/string-concatenation-in-el

Am Fr., 23. Apr. 2021 um 16:30 Uhr schrieb LInda hackkanan <lindahackkanan@xxxxxxxx>:
 
I have a book I am using to practice Java Server Faces.
In this book  the example code given is
 
  <h:commandButton
      value="#{'Go ' + xyz.submit}" 
      action="">
 
Using the above syntax I was getting the error
java.lang.NumberFormatException: For input string: "Go "
 
After some intuitive guesses I changed the syntax to this.
                value="Go #{xyz.submit}"
 
This produced the expected results, so I now know how to dynamically update button label.
 
My question is ,  did the book provide me with incorrect syntax or
was there a change in the specification ?
 
 
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev

Back to the top