why do I not see the right text here (seaside)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

why do I not see the right text here (seaside)

Roelof
Hello,

I try  to make my first seaside project.
But I ran into a problem that I do not see how to solve,

The image can be found here :
*https://www.dropbox.com/s/8dt7xj1y6na5jog/Paintings.image?dl=0
*and the changes file here :
*https://www.dropbox.com/s/dnsslrnpxgy0ha8/Paintings.changes?dl=0

*The problem is that I do not see the text "Blog post here" under my
header.

I use Pharo version 7 on Windows 10, Seaside latest and MDL latest.

I hope someone can help me figure out why this happen and how to solve this

Regards,

Roelof Wobben

Reply | Threaded
Open this post in threaded view
|

Re: why do I not see the right text here (seaside)

Esteban A. Maringolo
I haven't used MDL before, but moving code around I found that you are
not nesting the MDL tags properly.

The #mdlLayout must contain all the other elements, including the header.

So using your own classes the best way would be to do the following:

TBApplicationRootComponent>>renderContentOn: html
html mdlLayout
 beFixedHeader;
 with: main

TBSScreenComponent>>renderContentOn: html
html render: header
html mdlLayoutContainer: [  self renderPageContentOn: html ].

TBSScreenComponent>>renderPageContentOn: html
self subclassResponsibility

TBPostsListComponent>>renderPageContentOn: html
html heading level:2 ; with: 'Here comes the sun'

Regards.



Esteban A. Maringolo

El sáb., 2 mar. 2019 a las 13:33, Roelof Wobben (<[hidden email]>) escribió:

>
> Hello,
>
> I try  to make my first seaside project.
> But I ran into a problem that I do not see how to solve,
>
> The image can be found here :
> *https://www.dropbox.com/s/8dt7xj1y6na5jog/Paintings.image?dl=0
> *and the changes file here :
> *https://www.dropbox.com/s/dnsslrnpxgy0ha8/Paintings.changes?dl=0
>
> *The problem is that I do not see the text "Blog post here" under my
> header.
>
> I use Pharo version 7 on Windows 10, Seaside latest and MDL latest.
>
> I hope someone can help me figure out why this happen and how to solve this
>
> Regards,
>
> Roelof Wobben
>

Reply | Threaded
Open this post in threaded view
|

Re: why do I not see the right text here (seaside)

Roelof
Op 2-3-2019 om 19:36 schreef Esteban Maringolo:
> renderContentOn: html
> html render: header
> html mdlLayoutContainer: [  self renderPageContentOn: html ]

Are you sure.

If I do your changes I see these error messages

renderContentOn: html
     html mdlLayout
         beFixedHeader;
         with: main


befixedHeader is not known

renderContentOn: html
     html
         render: header html
         mdlLayoutContainer: [ self renderPageContentOn: html ]

I see this error message :

render: mdlLayoutContainer  messages send but not implemented.




Reply | Threaded
Open this post in threaded view
|

Re: why do I not see the right text here (seaside)

Esteban A. Maringolo
Please apologize my "write in Gmail" syntax errors.
The #beFixedHeader was a wrong transcription, it should be #fixedHeader.

And the unimplemented method was because of a missing period at the end.

It should have been:
    html render: header.
    html mdlLayoutContainer: [ self renderPageContentOn: html ]

Regards,

Esteban A. Maringolo

El sáb., 2 mar. 2019 a las 16:03, Roelof Wobben (<[hidden email]>) escribió:

>
> Op 2-3-2019 om 19:36 schreef Esteban Maringolo:
> > renderContentOn: html
> > html render: header
> > html mdlLayoutContainer: [  self renderPageContentOn: html ]
>
> Are you sure.
>
> If I do your changes I see these error messages
>
> renderContentOn: html
>      html mdlLayout
>          beFixedHeader;
>          with: main
>
>
> befixedHeader is not known
>
> renderContentOn: html
>      html
>          render: header html
>          mdlLayoutContainer: [ self renderPageContentOn: html ]
>
> I see this error message :
>
> render: mdlLayoutContainer  messages send but not implemented.
>
>
>
>