hidden field in jsp (spring roo)

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:                  
        
<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?
   
static86Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sweetfa2Commented:
remove the z="" in the input field line.  Roo will not regenerate the field.  Add render="false" as well.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
static86Author Commented:
thanks, that works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.