You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Stephen Cameron <st...@gmail.com> on 2017/01/11 07:00:20 UTC
global disable() method not recognised?
Hi,
I'm trying to make an object view-only for some of its lifecycle, but the
global disable() action method indicated in the documentation is not being
recognised as a special one, ie:
public String disable(Identifier.Type identifierType) {
return (!getStatus().equals(Status.ACTIVE))
? "Only ACTIVE Participants can be edited"
: null;
}
I get a 'Disable' action button appearing on the page. Am I missing some
detail?
Thanks
Re: global disable() method not recognised?
Posted by Stephen Cameron <st...@gmail.com>.
Onto it
On Wed, Jan 11, 2017 at 7:07 PM, Dan Haywood <da...@haywood-associates.co.uk>
wrote:
> Thx.
> Pull requests always gladly received!
>
> On Wed, 11 Jan 2017, 08:05 Stephen Cameron, <st...@gmail.com>
> wrote:
>
> > Thanks Eric
> >
> > The documentation is incorrect at:
> > http://isis.apache.org/guides/rgcms.html#_rgcms_methods_reserved_disable
> >
> > On Wed, Jan 11, 2017 at 6:39 PM, Erik de Hair <e....@pocos.nl> wrote:
> >
> > >
> > > On 01/11/2017 08:00 AM, Stephen Cameron wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm trying to make an object view-only for some of its lifecycle, but
> > the
> > >> global disable() action method indicated in the documentation is not
> > being
> > >> recognised as a special one, ie:
> > >>
> > > Hi Stephen,
> > >
> > > The method name should be 'disabled'.
> > >
> > > Erik
> > >
> > >
> > >> public String disable(Identifier.Type identifierType) {
> > >> return (!getStatus().equals(Status.ACTIVE))
> > >> ? "Only ACTIVE Participants can be edited"
> > >> : null;
> > >> }
> > >>
> > >> I get a 'Disable' action button appearing on the page. Am I missing
> some
> > >> detail?
> > >>
> > >> Thanks
> > >>
> > >>
> > >
> >
>
Re: global disable() method not recognised?
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Thx.
Pull requests always gladly received!
On Wed, 11 Jan 2017, 08:05 Stephen Cameron, <st...@gmail.com>
wrote:
> Thanks Eric
>
> The documentation is incorrect at:
> http://isis.apache.org/guides/rgcms.html#_rgcms_methods_reserved_disable
>
> On Wed, Jan 11, 2017 at 6:39 PM, Erik de Hair <e....@pocos.nl> wrote:
>
> >
> > On 01/11/2017 08:00 AM, Stephen Cameron wrote:
> >
> >> Hi,
> >>
> >> I'm trying to make an object view-only for some of its lifecycle, but
> the
> >> global disable() action method indicated in the documentation is not
> being
> >> recognised as a special one, ie:
> >>
> > Hi Stephen,
> >
> > The method name should be 'disabled'.
> >
> > Erik
> >
> >
> >> public String disable(Identifier.Type identifierType) {
> >> return (!getStatus().equals(Status.ACTIVE))
> >> ? "Only ACTIVE Participants can be edited"
> >> : null;
> >> }
> >>
> >> I get a 'Disable' action button appearing on the page. Am I missing some
> >> detail?
> >>
> >> Thanks
> >>
> >>
> >
>
Re: global disable() method not recognised?
Posted by Stephen Cameron <st...@gmail.com>.
Thanks Eric
The documentation is incorrect at:
http://isis.apache.org/guides/rgcms.html#_rgcms_methods_reserved_disable
On Wed, Jan 11, 2017 at 6:39 PM, Erik de Hair <e....@pocos.nl> wrote:
>
> On 01/11/2017 08:00 AM, Stephen Cameron wrote:
>
>> Hi,
>>
>> I'm trying to make an object view-only for some of its lifecycle, but the
>> global disable() action method indicated in the documentation is not being
>> recognised as a special one, ie:
>>
> Hi Stephen,
>
> The method name should be 'disabled'.
>
> Erik
>
>
>> public String disable(Identifier.Type identifierType) {
>> return (!getStatus().equals(Status.ACTIVE))
>> ? "Only ACTIVE Participants can be edited"
>> : null;
>> }
>>
>> I get a 'Disable' action button appearing on the page. Am I missing some
>> detail?
>>
>> Thanks
>>
>>
>
Re: global disable() method not recognised?
Posted by Erik de Hair <e....@pocos.nl>.
On 01/11/2017 08:00 AM, Stephen Cameron wrote:
> Hi,
>
> I'm trying to make an object view-only for some of its lifecycle, but the
> global disable() action method indicated in the documentation is not being
> recognised as a special one, ie:
Hi Stephen,
The method name should be 'disabled'.
Erik
>
> public String disable(Identifier.Type identifierType) {
> return (!getStatus().equals(Status.ACTIVE))
> ? "Only ACTIVE Participants can be edited"
> : null;
> }
>
> I get a 'Disable' action button appearing on the page. Am I missing some
> detail?
>
> Thanks
>