Hi Mansingh , thanks for that ... you are absolutely right, for inline action prompt the action needs to be associated with a property.
One way to do that (as you showed) is using the .layout.xml A different way - which some prefer - is to use @MemberOrder(named=...), eg: @MemberOrder(named="notes", sequence="1") public SimpleObject updateNotes(String newNotes) { ... } where "notes" is the property to which the updateNotes action has been associated. ~~~ Separately, yes... unfortunately attachments are not allowed on ASF mailing lists. We recommend instead using imgur.com or similar and linking to it. Thx again Dan On Thu, 17 Aug 2017 at 17:59 Manasingarao Shitole < shit...@prime-research.com> wrote: > Hi Anisha, > > > Sorry my screenshots have missed in last mail. > > > If you want to behave your actions to work as inline updates then action > also must be present inline. in short here is the solution which needs to > be updated in layout.xml. > > > <c:property id="notes" namedEscaped="true" multiLine="10" > hidden="ALL_TABLES"> > <c:action id="updateNotes"> > <c:describedAs>Updates the object's notes</c:describedAs> > </c:action> > </c:property> > > > Cheers, > > -Mansingh > > ________________________________ > From: Manasingarao Shitole <shit...@prime-research.com> > Sent: 17 August 2017 18:54:41 > To: users@isis.apache.org > Cc: dev > Subject: Re: [ANN] Apache Isis version 1.15.0 Released > > > > Hi Anisha, > > > To simulate your problem, I have added "Update Notes" action to my > Simple-App project and > > which resulted "Update Notes" on top of the form and the action always > resulted into modal window while editing notes - even though mentioning > @ActionLayout( promptStyle=PromptStyle.INLINE). > > > This seems to be OK for me because the Action itself is not inline, in > this case modal window is OK for me. The Action is appearing at the top: > > > [cid:234a089a-8d6f-4694-86a0-1ed16b19ebd4] > > > If you want to behave your action to update inline only and not to open > the modal window then you have to update your layout, I have highlighted > the updated part as below > > > [cid:e84d4e3d-c5fa-4a5e-8660-cea2f7136ae3] > > > After adding this, now I can update inline when I click on the new actions > > [cid:7f60dd6a-e2fc-483e-99a5-282022e07812] > > > > When I click the Update Notes now, I see the expected result: > > > [cid:55b29ec0-bf7d-476b-9404-9543f251e83e] > > I think the similar solution is achievable via annotations i hope.... > Kindly correct me if i misunderstood your issue. > Many thanks! > Best regards, > -Mansingh > > > ________________________________ > From: Dan Haywood <d...@haywood-associates.co.uk> > Sent: 17 August 2017 16:35:13 > To: users@isis.apache.org > Cc: dev > Subject: Re: [ANN] Apache Isis version 1.15.0 Released > > Hi Anisha, > > I must admit that what you've written there looks ok to me. > > Any possibility of providing an example app on github that exhibits the > problem? Start off with the new helloworld archetype, perhaps? > > Also, try adding in the configuration property > "isis.viewer.wicket.promptStyle", as per > http://isis.apache.org/guides/ugvw/ugvw.html#_ugvw_configuration-properties > . > Admittedly the helloworld/simpleapp don't set this still work fine, but > perhaps there's some subtlety going on or maybe an undiscovered bug...? > > Thx > Dan > > PS: check out the paraname8 module (in www.isisaddons.org< > http://www.isisaddons.org> to get rid of the > need to write @ParameterLayout(named=...) > > > > On Thu, 17 Aug 2017 at 15:23 Anisha Jaiswal <anishakjais...@gmail.com> > wrote: > > > Hi Dan, > > > > This is great ! > > I upgraded my application to v1.15.0. > > > > I wanted to use inline prompts for action methods, but somehow have not > > been able to make it work. > > I noticed that the default behaviour for editing of properties is now > > inline and it looks nice. > > > > I wanted to use my action method also to not create a modal but accept > the > > input parameter inline. > > So i set the attribute promptStyle to PromptStyle.INLINE in the > annotation > > @ActionLayout...like this : > > > > @SuppressWarnings("serial") > > public static class TestDomainEvent extends > > org.apache.isis.applib.services.eventbus.ActionDomainEvent<Test> {} > > > > @Action( > > domainEvent = TestDomainEvent.class > > ) > > @ActionLayout( promptStyle=PromptStyle.INLINE) > > public void test( > > @ParameterLayout(named="Test String") > > final String temp > > ) { > > System.out.println("the temp string is "+temp); > > return; > > } > > > > But i am still getting the modal dialog. > > Please help me understand where i am going wrong in using this > > functionality. > > > > Thanks and regards, > > Anisha > > > > On Tue, Aug 15, 2017 at 1:37 AM, Dan Haywood < > d...@haywood-associates.co.uk > > > > > wrote: > > > > > The Apache Isis team is pleased to announce the release of Apache Isis > > > v1.15.0. > > > > > > New features in this release include: > > > * inline prompts: the ability to edit a property or invoke an action > > > (associated with a property) > > > without requiring a modal dialog box. > > > * a "hello world" archetype > > > * upgrade of Apache Wicket from 6.x to 7.x. > > > * allow applications and integration tests to be bootstrapped with less > > > boilerplate > > > * new metamodel validations for JAXB view models > > > * rename isis-viewer-wicket artifacts to isis-core-viewer-wicket > > > (for consistency with other core modules) > > > > > > Full release notes are available on the Apache Isis website at [1]. > > > Please also read the migration notes [2]. > > > > > > You can access this release directly from the Maven central repo [3]. > > > Alternatively, or download the release and build it from source [4]. > > > > > > Enjoy! > > > > > > --The Apache Isis team > > > > > > [1] http://isis.apache.org/release-notes.html#r1.15.0 > > > [2] > > > > http://isis.apache.org/migration-notes.html#_migration-notes_1.14.0-to-1 > > . > > > 15.0 > > > [3] http://search.maven.org > > > [4] http://isis.apache.org/downloads.html > > > > > >