Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
viewer-wicket-1.5.0, core-1.5.0
-
None
Description
Erik Hair on users@i.a.o:
Is it in some way possible to create a wizard like form or open an action with an action? I tried to return a not yet persisted object from an action and hoped I could edit some properties and add some elements to collections of the object before persisting it to the database...
~~~~~~
Dan:
Short answer is that we don't really (properly) support this. And we should.
I agree that @NotPersistable is confusing and its not clear what to use; the right solution would be to implement a view model (currently: implement the ViewModel interface), and then - optionally - write a custom ComponentFactory for the Wicket viewer to render the wizard appropriately.
But the snag even with the above is that (currently) view models are immutable; they support actions but their properties cannot be edited.
I can see the way forward on this; I don't think it's difficult, but it will require a change in core and probably the wicket viewer also.
Attachments
Issue Links
- is related to
-
CAUSEWAY-807 Break out EntityPropertiesForm into two for the new IWizard, and then make into a separate component.
- Closed
- relates to
-
CAUSEWAY-781 Add edit capability to view objects
- Closed
-
CAUSEWAY-810 Remove Wizard and Wicket viewer implementation on basis that shouldn't constrain programming model to this extent.
- Closed
-
CAUSEWAY-807 Break out EntityPropertiesForm into two for the new IWizard, and then make into a separate component.
- Closed