hakandilek / play2-crud

Simple CRUD & DAO implementation for play2
Other
142 stars 52 forks source link

changes for extensibility of CRUDController #53

Closed ianrae closed 9 years ago

ianrae commented 9 years ago

I made two changes for the twixt project

  1. TwixtDynamicController wants the ability to set the widget for a field. For example, the choice between a textWidget and a textAreaWidget should be possible in the app based on the app's own rules. FieldMetadata was changed to add setWidget.
  2. TwixtDynamicController would like to be able to render views in any sub-folder of views. templatePackageName was added to TemplateController

There is one large issue that I wasn't sure how to solve, so I will create an issue for it. Basically when twixt defines controllers derived from CRUDController, the app's controller is not directly derived from CRUDController and an error in render occurs