Announcement Announcement Module
No announcement yet.
A possible bug in ROO ? (v1.1.0.RELEASE) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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);
    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.