-
Jan 28th, 2011, 03:58 PM
#1
A possible bug in ROO ? (v1.1.0.RELEASE)
I roo generated a entity called ExpertCouncilSub
and as usually the ROO_aj controller contains
something like this
public static ExpertCouncilSub findExpertCouncilSub(Long id) {
if (id == null) return null;
return entityManager().find(ExpertCouncilSub.class, id);
}
now I wanted to modify this finder firstly by injecting session to it and then do some filtering, like say that...
public static ExpertCouncilSub ExpertCouncilSubFix(Long id, HttpSession p_session) {
List<ExpertCouncilSub> applicantsIndLst = ExpertCouncilSub.findAllExpertCouncilSub(p_session );
if(ExpertCouncilSub.isInList(applicantsIndLst, id))
{
return findExpertCouncilSub(id);
}
else
return null;
}
if I inject HttpSession p_session to
public static ExpertCouncilSub findExpertCouncilSub(Long id, HttpSession p_session) {
if (id == null) return null;
return entityManager().find(ExpertCouncilSub.class, id);
}
like so, the converters that I use (ROO generated) stop beeing used, they are called alright but all dropdownlists dont use them anymore and the dropdownlists now contain string representation of the object (tostring() )
and if you try to save those you get a string error.
this is very peculiar, any ideas ? I did make a workaround but its slightly stupid that you cannot touch this Find(id) command in any object.
Regards,
Emil
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules