Access public fields
There is an increasingly recommended practice of disallowing entities in the presentation layer, and instead just passing DTOs. Since DTOs don't have any behavior, nor are they persistent, and because their very purpose is to simply hold and serve data, there is no reason to encapsulate their fields. So there is no reason what DTO fields shouldn't be public, since getters & setters don't add any value to them.
It would therefore be great if EL could access public fields, to save developers the bother of having to add needless getters & setters:
public class PersonDTO
{ public String name; }
$
{person.name}
Environment
Any
Reported by calen
Was assigned to kchung
This issue was imported from java.net JIRA EL_SPEC-25