Using a property value in relationships
Added relationships is very easy with ROO. I have a thing that I would like to have improved. Maybe it is already possible. If you have a relationship, in all the jsps the toString method is used to describe that relationship. This looks strange in drop down lists and on the list screen. Therefore I have changed the jsps to add properties like this:
A theme has stories and is part of a project:
- list.jsp : ${fn:substring(theme.project, 0, 10)} -> ${fn:substring(theme.project.title, 0, 10)}
- create.jsp : <form:options itemValue="id" items="${projects}"/> ->
<form:options itemValue="id" items="${projects}" itemLabel="title"/>
Now the jsps cannot be managed anymore by ROO, which is of course a pitty.
Is there another way? Can we introduce an annotation on a field to become the label field or something like that?
thanks