Hi Song,

Thanks for the information.

Actually I have applied the @Column(allowsNull = "false") to some of the
fields.

But the scenario here is different for example:
1. I have Record & Item as class entities. Now I will create a menu name
class called as Create.

2. In this Create Menu there are
i. Create Record
ii.Create Item

When I click on Create Record then a Create popup dialog will get open. In
this popup the asterisk is not visible.
Below is the code snippet:


DomainService(nature = NatureOfService.VIEW_MENU_ONLY, objectType =
>> "abc.CreateMenu")
>
> @DomainServiceLayout(named = "Create",menuOrder = "1")
>
> public class CreateMenu {
>
>
>> public static class CreateDomainEvent extends
>> ActionDomainEvent<CreateMenu> {
>
>
>> /**
>
> *
>
> */
>
> private static final long serialVersionUID = 1645943737207432065L;
>
> }
>
>
>> @Action(domainEvent = CreateDomainEvent.class)
>
> @ActionLayout(cssClassFa="fa-clock-o")
>
> @MemberOrder(sequence = "1")
>
> public Record createRecord(
>
> @Parameter(optionality = Optionality.OPTIONAL)
>> @ParameterLayout(named="Name") String name,
>
> @ParameterLayout(named="Type") String recordType,
>
> @ParameterLayout(named="Date") final Date date
>
>
>> ){
>
> return recordRepository.create(name, recordType, date)
>
> );
>
> }
>
>

Item entity create method is also present in the same class.


Thanks

On Fri, Dec 15, 2017 at 4:52 PM, SE Song <[email protected]> wrote:

> use this on your mandatory field
>
> @Column(allowsNull = "false")
>
> On Fri, Dec 15, 2017 at 4:18 PM, Roshan Vishwakarma <
> [email protected]> wrote:
>
> > Hello All,
> >
> >
> > We started our application to model simple application from Apache Isis,
> > which had one menu item with listAll , create methods mapping to the
> > Object.
> >
> > To support Tenancy we segregated, Create Menu to have create for all
> > entities.
> >
> > Now when we marked some fields as mandatory, the check is not getting
> > applied, I cannot see the asterisk (*) which comes for mandatory field
> > seems to be missing.
> >
> > We are getting the required behavior but the rendering of asterisk  (*)
> is
> > missing -
> > creating confusion when filling the form.
> >
> > Please can anyone provide their suggestions.
> >
> > Thanks
> >
> >
> > Regards,
> > Roshan V
> >
>

Reply via email to