Hello dear RIFERS,
I have a question about using template.setBean with a bean that
includes properties with non-void setters. It seems that this
does not work. I had such a bean that returned 'this' in its
setters, to make method chaining possible, such as
User user = new User()
.setLastName("Daoud")
.setFirstName("Fred");
However, when I used such a bean with template.setBean(), and
referred to its properties with V tags, it did not work. Only by
having setters that return 'void' did it work.
I have 2 questions:
1) why do the setters have to return void?
2) why are setters necessary at all? What if you have read-only
properties in your bean, is it not reasonable to want to display them
in your template?
I'm sure there are good reasons..just wondering what they are.
Thanks for your help!
Frederic Daoud
--
[EMAIL PROTECTED]
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users