Results 1 to 3 of 3

Thread: scaffold doubles enum fields in create and update

  1. #1
    Join Date
    Nov 2009
    Location
    Innsbruck, Austria
    Posts
    2

    Unhappy scaffold doubles enum fields in create and update

    Hello,
    I'm using Roo 1.0.0RC3 and Spring 3.0.0RC2.
    The views for enum fields are always generated two times.
    Is there already a bug report for this or do I do anything wrong?

    Code:
                <div id="roo_firewallrule_protocol">
                    <label for="_protocol">Protocol:</label>
                    <form:select cssStyle="width:250px" id="_protocol" items="${fwprotocol_enum}" path="protocol"/>
                    <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_protocol', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true}})); </script>
                    <br/>
                    <form:errors cssClass="errors" id="_protocol_error" path="protocol"/>
                    <form:select cssStyle="width:250px" id="_protocol" items="${fwprotocol_enum}" path="protocol"/>
                    <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_protocol', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true}})); </script>
                    <br/>
                    <form:errors cssClass="errors" id="_protocol_error" path="protocol"/>
                </div>
                <br/>
                <br/>
                <div id="roo_firewallrule_port">
                    <label for="_port">Port:</label>
                    <form:select cssStyle="width:250px" id="_port" items="${fwport_enum}" path="port"/>
                    <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_port', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true}})); </script>
                    <br/>
                    <form:errors cssClass="errors" id="_port_error" path="port"/>
                    <form:select cssStyle="width:250px" id="_port" items="${fwport_enum}" path="port"/>
                    <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_port', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true}})); </script>
                    <br/>
                    <form:errors cssClass="errors" id="_port_error" path="port"/>
                </div>

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    No, you are not doing anything wrong. There is a bug in Roo RC3 which causes this issue: ROO-367

    This has been addressed in Roo trunk and the fix will be available with the upcoming release of Roo RC4.

    Cheers,
    Stefan

  3. #3
    Join Date
    Nov 2009
    Location
    Innsbruck, Austria
    Posts
    2

    Default

    Cool. I've build the current trunk and using it now. Problem is fixed.

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
  •