Re: Howto register App with Bootstrap4

"Oswall Verny Arguedas C." <[email protected]> Tue, 26 Nov 2019 13:55:32 -0600
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CABTWuHdgKqXv0bNqhTbp9m+iktEqhL=BnYRHM9zwok5-fJFA5Q@mail.gmail.com>
Solved!
Both options work

Thank you very much
Oswall

El mar., 26 de nov. de 2019 a la(s) 13:45, Esteban Maringolo (
[email protected]) escribió:

> Hi,
>
> You need to specify SBSHtmlCanvas as the renderer class of your component.
>
> So you either subclass SBSComponent as follows:
>
> SBSComponent subclass: #Prueba1
> instanceVariableNames: 'id nombre'
> classVariableNames: ''
> package: 'PruebasBootstrap4'
>
>
> Or implement
> Prueba1>>#rendererClass
>
> ^SBSHtmlCanvas
>
>
> Regards!
>
> Esteban A. Maringolo
>
>
> On Tue, Nov 26, 2019 at 4:28 PM Oswall Verny Arguedas C. <
> [email protected]> wrote:
>
>> Hi Esteban
>> I did a simple test in a clean image Pharo7:
>>
>> WAComponent subclass: #Prueba1
>> instanceVariableNames: 'id nombre'
>> classVariableNames: ''
>> package: 'PruebasBootstrap4'
>>
>>
>> With Render:
>>
>> renderContentOn: html
>>   html text: 'Test1'; break.
>>   html strong: 'Bootstrap4'.
>>   html alert bePrimary with: 'A simple primary alert'.
>>
>> With App Register:
>>
>> |app|
>> app := WAAdmin register: Prueba1 asApplicationAt: 'prueba1'.
>> app
>>     addLibrary: JQDevelopmentLibrary;
>>     addLibrary: SBSDevelopmentLibrary.
>>
>> However, it generates the following error:
>>
>> Seaside Walkback
>> MessageNotUnderstood: *WAHtmlCanvas>>alert*
>> Debug Proceed Full Stack
>>
>> Possible Causes
>> you sent a message this type of object doesn't understand
>> Stack Trace
>>
>> thisContext
>>     WAHtmlCanvas(Object)>>*doesNotUnderstand: #alert*
>> self
>>     a WAHtmlCanvas
>> thisContext
>>      PruebasNexuzView>>renderContentOn:
>> self
>>     a PruebasNexuzView
>> thisContext
>>     WARenderVisitor>>visitPainter:
>> self
>>     a WARenderVisitor
>> thisContext
>>     WARenderVisitor(WAPainterVisitor)>>visitPresenter:
>> self
>>     a WARenderVisitor
>> thisContext
>>    WARenderVisitor(WAPainterVisitor)>>visitComponent:
>> self
>>    a WARenderVisitor
>>
>>
>>
>> You do not understand the render for Bootstrap4. The examples do run
>> correctly.
>> I think I am missing something in the configuration of the component.
>>
>> Thanks in advance
>> Oswall
>>
>>
>> El dom., 24 de nov. de 2019 a la(s) 17:57, Esteban Maringolo (
>> [email protected]) escribió:
>>
>>> Hi Oswall,
>>>
>>> app := WAAdmin register: ProductView1 asApplicationAt: 'productview1'.
>>> app
>>>     addLibrary: JQDevelopmentLibrary;
>>>     addLibrary: TBSSelectDeploymentLibrary;
>>>     addLibrary: SBSDevelopmentLibrary.
>>>
>>> Keep in mind that the TBSSelect (if it's the same I did at [1]) wasn't
>>> tested with Bootstrap 4.
>>>
>>> Also, BS4 uses a different canvas (SBSHtmlCanvas, subclass of
>>> WAHtmlCanvas). Navigate the examples for further information.
>>>
>>> Regards!
>>>
>>>
>>> Esteban A. Maringolo
>>>
>>> On Sun, Nov 24, 2019 at 12:21 PM Oswall Verny Arguedas C.
>>> <[email protected]> wrote:
>>> >
>>> > Cheers,
>>> > Howto I register an application in Bootstrap4?
>>> > I'm having trouble registering it.
>>> > For example, if I use Bootstrap3 the registry like this:
>>> >
>>> > app := WAAdmin register: ProductView1 asApplicationAt: 'productview1'.
>>> > app
>>> >     addLibrary: JQDevelopmentLibrary;
>>> >     addLibrary: TBSSelectDeploymentLibrary;
>>> >     addLibrary: TBSDevelopmentLibrary.
>>> >
>>> > What would be the best way to do it for Bootstrap4.
>>> > Which libraries should you add to register a Seaside component as an
>>> application in Bootstrap4.
>>> >
>>> > Thanks in advance,
>>> >
>>> > Oswall
>>> >
>>> >
>>> > _______________________________________________
>>> > seaside mailing list
>>> > [email protected]
>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>> _______________________________________________
>>> seaside mailing list
>>> [email protected]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>> _______________________________________________
>> seaside mailing list
>> [email protected]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside