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 ?

Thanks.
 
Using the error message java.lang.NumberFormatException: For input string: "Go "
I made some more guesses  I experimented with this
value="#{'50' + 70}"
 
the answer is 120 as the button label.
 
Something doesn't seem quite right to me.
Any insight into this would be good too ?
 
 
Sent: Friday, April 23, 2021 at 3:39 PM
From: "Thomas Andraschko" <tandraschko@xxxxxxxxxx>
To: "faces developer discussions" <faces-dev@xxxxxxxxxxx>
Subject: Re: [faces-dev] change of specification or an error ?
 
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
_______________________________________________ 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