[Seaside] Howto register App with Bootstrap4

Oswall Verny Arguedas C. sistecaq at gmail.com
Tue Nov 26 19:27:40 UTC 2019


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 (
emaringolo at gmail.com) 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.
> <sistecaq at gmail.com> 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
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20191126/2a0ac243/attachment.html>


More information about the seaside mailing list