Skip to content

A demonstration project showing how to add an override to an Apache Isis property (in this example, String), in order to render it differently in the Wicket UI.

License

Notifications You must be signed in to change notification settings

kev-m/isis-wicket-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isis-wicket-url

A demonstration project showing how to add an override to an Apache Isis property (in this example, String), in order to render it differently in the Wicket UI.

In this example, the String property will be rendered as a click-able URL, when the proerty is viewed in a collection.

Note: The original project was generated using the Apache Isis "simpleapp-archetype" archetype. Thereafter I edited the generated code to introduce the annotation, the factories, the updated Wicket components in a new module called extras.

The various stages have been separated into individual commits:

  1. Create the "IsURL" annotation e7520bc
  2. Add the annotation to the property/properties of your choice 6b904bf
  3. Adding the UrlPanel Facet and FacetFactory 18d2c7e
  4. Adding the Facet Factory to the Isis properties, so that the facet factory is picked up at runtime 68e3d17
  5. Adding the UrlPanelFactory to the Isis services, so that the Panel Factory is picket up by Wicket at runtime c258bae
  6. Finally, add the UrlPanel itself - a new Wicket panel that displays annotated properties as click-able links f1fa136

Hopefully these steps show you two things about Apache Isis: Firstly, it's easy to add new annotations and add them to Wicket (for example) and secondly, it's also very easy to override the default rendering of components in the Wicket UI.

#Acknowledgements Thanks to Martin Grigorov for providing the hints! Check out Martin's example of using a WYSIWYG Text Editor (Summernote) as an editor for annotated Apache Isis "String" properties!

About

A demonstration project showing how to add an override to an Apache Isis property (in this example, String), in order to render it differently in the Wicket UI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published