-
Mar 15th, 2012, 06:26 AM
#1
How hide some (not null) fields in a view or how can I set them as read only?
Hello all,
in the domain I have a custom logic that automatically set some not null fields (clearly I have in the view many other fields, that are not intresting here, that are instead set by the user), defined as follow:
@NotNull
private Integer numero;
@NotNull
private Integer anno;
@NotNull
@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat(style = "M-")
private Date dataCreazione;
I need only that these fields will be not shown on the view level, because I'll rewrite them at domain level, as I wrote above, when the user save the view data. Unlikely I have noticed that isn't so easy obtain this feature I really do not understand why... Anyway I had tried various approach and nothing seems to work...
I really hope that this can be with a really simple definition, I don't know at which level (domain, controller or view). Remember that these fields are define as not null (anyway if the not null definition this is the problem I may change the fields definition, hoping that this helps...).
Anyone has some suggestion?
ROO version: spring-roo-1.2.0.RELEASE
Regards,
Paolo Del Signore
Last edited by padesig; Mar 15th, 2012 at 06:31 AM.
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
-
Forum Rules