Announcement Announcement Module
Collapse
No announcement yet.
hidden field Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hidden field

    Hi,
    I've created a field userId with spring roo framework. Now I want to hide this field on the jsp page. I have tried deleting spring generated code:
    Code:
    <field:input field="userId" id="c_com_dissertation_webtools_domain_Url_userId" validationMessageCode="field_invalid_integer" z="KeVnrGsJtpnU4kdnD+Ot6x+x/NE="/>
    and put:
    Code:
    <input name="userId" type="hidden" value="${uid}"/>
    instead, but roo generates deleted code again. How can I fix it? How can I delete roo generated code permanently?

  • #2
    Roo looks for any element with an id that matches to the id it uses in its own element: id="c_com_dissertation_webtools_domain_Url_userId" . If it cannot find an element with that id it will add it.

    There are several ways to prevent the rendering of the element:

    1. Simply use render="false" attribute in the roo generated element
    2. use the <utillaceholder id="c_com_dissertation_webtools_domain_Url_userId" > tag
    3. use any tag with this id; ie: <div id="c_com_dissertation_webtools_domain_Url_userId" >

    Comment

    Working...
    X