"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:You're apparently setting up a table, but you're not using the dataTable tag.
Tim Holloway wrote:You're using an actionListener, but that attribute has been almost entirely obsolete since JSF webt mainstream.
Tim Holloway wrote:And you're essentially coding logic (the propertyActionListener) to push a value into a backing bean when you could probably be using JSF's built-in Controllers to do so.
Tim Holloway wrote:Your example never defines the variable named "sessions", and that didn't help any.
Tim Holloway wrote:Rather than using raw HTML and obscure/obsolete JSF elements, consider doing this as a dataTable with associated DataModel value. The DataModel helps make the dataTable control able to "pass parameters" from one action to another without having to pass them from server to client and back again, which saves bandwidth, is more secure, and is simpler to code in JSF.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Tim Holloway wrote:The DataModel helps make the dataTable control able to "pass parameters" from one action to another without having to pass them from server to client and back again, which saves bandwidth, is more secure, and is simpler to code in JSF.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|