Announcement Announcement Module
No announcement yet.
CRUD references nullable Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • CRUD references nullable

    When using the crud functionally if you have an object that references to an other object like so:

    private Activity duplicateOf;

    There seems to be no way to select a null value.

    Adding the following inside the form tags solves the issue:

    <form&#58;option value="" />

    Just making sure I'm not missing something or if I'm doing something wrong, is there some way to go about this so Roo does this automatically?
    Last edited by michael-b; Dec 10th, 2009, 08:13 PM. Reason: needed to escape :

  • #2

    Hi Michael,

    Sorry for not seeing your thread earlier. I too ran into this and have logged it as ROO-581. Maybe you could go there and vote for it?


    • #3
      I've Voted.


      • #4
        I've added a comment to ROO-581 explaining an easier workaround than my original one: allowing id-based finders to accept null ids.

        I've logged ROO-623 to make that behaviour the default; being a more minor change, it has a chance of sneaking in before the 1.1 release for which ROO-581 is milestoned...