On 20 July 2014 21:55, <[email protected]> wrote:

> Hi,
>
>
>
>
>         I am just starting with Isis.
>

Hi Johan, welcome to the Isis mailing list.



>
>         I want a field (property) to be optional and coded:
>
>          private String middleName;
>
>
>
>             @Named("tussen")
>
>             @javax.jdo.annotations.Column(allowsNull = "true")
>
>             @MemberOrder(sequence = "2")
>
>             @Optional
>
>
>
>         But in the user interface it is still mandatory.
>
>
>
>         Can somebody help?
>
>
Isis currently requires annotations to be on the getter, not on the field;
see for example [1].  Are those annotations you've listed on the field ?
 If so, that'll be the issue.

Also, the (Isis) @Optional annotation is not required if you have the (JDO)
annotation @javax.jdo.annotations.Column(allowsNull = "true").

Let me know if that fixes things or not.

Dan


[1]
https://github.com/apache/isis/blob/master/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java#L392



>
>
>         Tnx, johan.
>
>
>
>

Reply via email to