Still figuring some things out...
Is it possible to expose some service method using the RO viewer with
complex type parameters like below?
public void exampleAction(Address address, String foo){
// process input...
}
public class Address {
private String zipCode;
private String number;
}
I tried annotating the Address class with @ViewModel but then the RO
viewer expects a link to an existing view model. I would like our
external partners using the RO viewer to create json-objects (or xml?)
that will be accepted by 'exampleAction'. How to do that?
Thanks,
Erik
On 04/10/2017 11:57 AM, Erik de Hair wrote:
Hi,
For some use case we have a Wicket wizard using Apache Isis view
models where each step enriches the view model as returned by the
previous step until it is ready to submit. I was trying to redo this
using the restful interface but I can't figure out what's the objectId
of the returned view model. I need that I to start the actions related
to the next step.
So I have an action
/objects/WbaAvailability/{objectId}/actions/startAccessOrderCopper/invoke
where object WbaAvailability is a view model. An other action
(executed before) returns a list of WbaAvailabilities. But how to use
one of these and invoke the startAccessOrderCopper-action?
Thanks,
Erik