#{grupoController.filterIsVisible(filterIdade)}
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
#{grupoController.filterIsVisible(filterIdade)}
Is not good practice. You should not be coding parameters on the View if at all possible. Also, I'm not even sure that you can do a general method call in the context of a "rendered" attribute to begin with, Normally you should be making a property reference.
I also cannot make sense of what appears to be a possible page-scope variable "filterIdade". JSF does not support page scope at all. To function properly, "filterIdade" needs to be a property of a backing bean, not an independent entity.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Marco Noronha wrote:I understand.
But if I have a view with 50 fields ?
Wouldn´t be too 'manual' writing one method per field?
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
Marco Noronha wrote:I understand.
But if I have a view with 50 fields ?
Wouldn´t be too 'manual' writing one method per field?
Probably. Then again, I think I probably would have used a dataTable for the display with a List or array model, and that would have allowed me to simply use indexing instead of complicated Map expressions.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:I recommend looking at a good JSF book.
Don't get me started about those stupid light bulbs. |