hidden field in jsp (spring roo)

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:                  
<field:input field="userId" id="c_com_dissertation_webtools_domain_Url_userId" validationMessageCode="field_invalid_integer" z="KeVnrGsJtpnU4kdnD+Ot6x+x/NE="/>

Open in new window

and put:
<input name="userId" type="hidden" value="${uid}"/>

Open in new window

instead, but roo generates deleted code again. How can I fix it?
Who is Participating?
remove the z="" in the input field line.  Roo will not regenerate the field.  Add render="false" as well.

static86Author Commented:
thanks, that works.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.