-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2.0.RC1
-
Fix Version/s: 1.2.1.RELEASE
-
Component/s: WEB MVC
-
Labels:None
-
Environment:tc server 2.1, Mac OS X
I create a simple Roo project and want some form fields to be displayed but not edited.
So, in my update.jspx I change field:input to field:display like this
in update.jspx,
<field:display field="name" id="c_com_sample_domain_KnFolder_name" z="user-managed" object="${knFolder}" /> <field:display field="title" id="c_com_sample_domain_KnFolder_title" z="user-managed" object="${knFolder}" /> <field:input field="heading" id="c_com_sample_domain_KnFolder_heading" z="NI9cyvSmK6SpQ3umYupkmWkvk+g=" />
However, the "display" field values are not included in the model when the "put" request is handled by the controller.
Reading the message boards, it seems like this worked in an earlier version and should work now.
Steps to reproduce, run this script
project --topLevelPackage com.sample jpa setup --database HYPERSONIC_IN_MEMORY --provider HIBERNATE entity jpa --class ~.domain.KnAbstractModel --abstract --inheritanceType TABLE_PER_CLASS field string --fieldName name entity jpa --class ~.domain.KnFolder --testAutomatically --extends ~.domain.KnAbstractModel --table folder field string --fieldName title field string --fieldName heading web mvc setup web mvc all --package com.sample.web
then, edit update.jspx as shown above,
start jetty,
create a Folder entity,
update it.
You will see that the "name" and "title" fields have been disappeared.
- relates to
-
ROO-3050 Finder input text fields are read-only
-
- Open
-
1.
|
Finder input text fields are read-only |
|
Open | Unassigned |