Indeed, if you want the ajax support to work, you might need to change
some components. Good that you could make it work.
Some details that might be helpful:
1 If you have more date input fields that should use
this component, the builder is your friend.
Take a look at
QCBootstrapComponentBuilder>>visitBooleanDescription: aDescription
(aDescription componentClass = MACheckboxComponent)
ifTrue: [ aDescription
componentClass: TBSMagritteCheckboxComponent ].
super visitBooleanDescription: aDescription
You can do the same:
QCMyBootstrapComponentBuilder>>visitDateDescription: aDescription
(aDescription componentClass = MADateInputComponent)
ifTrue: [ aDescription
componentClass: MAJQDateInputComponent ].
super visitDateDescription: aDescription
and then in your QCBootstrapApplicationModel subclass override
the defaultLayoutBuilder to ^QCMyBootstrapComponentBuilder.
2 The MAJQDateInputComponent is not styled to fit in
with Bootstrap. There it would make sense to use
an input-group-addon/btn and the glyphicon-calendar
3 Please let me know if you want to be added as committer
to the QCMagritte repo. A clean way to add this would be to
add a package
QC-Magritte-Addons
and put the extension method in method category
*QC-Magritte-Addons
So you can save it independently without having to change
Magritte-JQuery
4 The application model only shows the fields where
a relationdescription (subclass) responds true to isRoot.
Override it, or depend on
MARelationDescription>>defaultIsRoot
self classes ifEmpty: [ ^false ].
^self commonClass canBeRoot
Stephan