Hi, i am using QCMagritte and I like it. The problem I found is in using custom components. For example I have this description <magritteDescription> But no MAJDateInputComponent is using by description. Can anyone help me? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On Sep 11, 2014, at 0:36 , Pablo R. Digonzelli wrote:
Are you using the bootstrap application template? Do you use a builder that overrides the component? Stephan _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Yes, i am using an my aplication class wich is a subclass of QCBootstrapApplication . I don't use custom builder other than QCmagritte's. Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL De: "Stephan Eggermont" <[hidden email]> Para: "Pier and Related Tools Magritte ..." <[hidden email]> Enviados: MiƩrcoles, 10 de Septiembre 2014 20:15:01 Asunto: Re: QCMagritte and MAJQDateInputComponent On Sep 11, 2014, at 0:36 , Pablo R. Digonzelli wrote:
Are you using the bootstrap application template? Do you use a builder that overrides the component? Stephan _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by pdigonzelli1
If I add it to a QCTutorial (and make it editable), it works for me. On the QCTutorialModel it doesn't. It needs some css though. Stephan On Sep 11, 2014, at 0:36 , Pablo R. Digonzelli wrote: <magritteDescription> _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Stephan , I solved this specific problem doing this.
What i did was create renderInputOn:ajaxScript: into MAJQDateInputComponent renderInputOn: html ajaxScript: aScript It works very well now. I am newbie to develop Seaside , Magritte and QCMagritte apps then i hope everyone express their opinion about this workaround. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL De: "Stephan Eggermont" <[hidden email]> Para: "Pier and Related Tools Magritte ..." <[hidden email]> Enviados: MiƩrcoles, 10 de Septiembre 2014 21:17:43 Asunto: Re: QCMagritte and MAJQDateInputComponent If I add it to a QCTutorial (and make it editable), it works for me. On the QCTutorialModel it doesn't. It needs some css though. Stephan On Sep 11, 2014, at 0:36 , Pablo R. Digonzelli wrote: <magritteDescription> _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by Stephan Eggermont-3
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 _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |