Pier2 problems in Gemstone

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

Pier2 problems in Gemstone

dario trussardi
Hi,

i load the Pier2 support with the command:

| autoCommit|
autoCommit := MCPlatformSupport autoCommit.
MCPlatformSupport autoCommit: true. "needed if loading from Topaz"
MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [[
                 
Gofer project load: 'Seaside30'version: '3.0.0-rc.1' group: #( 'ALL').
                 
Gofer project load: 'Pier2' version: '2.0.6' group: 'ALL'.
                 
Gofer project load: 'PierAddOns2' version: '2.0.6' group: 'ALL'.
         
]
                 on
: Warning
                 
do: [:ex |
                         
Transcript cr; show: ex description.
                         ex resume
]].
MCPlatformSupport autoCommit: autoCommit.
After i create a PRDistribution subclass PRMyDistrbution for define my site based on Pier.


I create the method :

mainEnvironmentPage ^ mainEnvironmentPage ifNil: [ mainEnvironmentPage := (PRPage named: 'mainenvironment') title: '_Main Environment'; > contents: '{{{<div class="container"> <div class="header column span-24"> <div class="logo column span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB column span-10">}}}+/system/components/headerIST+{{{</div> <div class="titleC column span-6">}}}+/system/components/headerApp+{{{</div> <div class="search column span-6 last">}}}+/system/components/search+{{{</div> </div>}}} +/system/components/header+ {{{<div class="column span-24 last mainbody" <h1 class="heading">}}}+value:structure+{{{</h1> <div class="contents column span-12">}}}+/system/components/contents+{{{</div> <div class="column span-6 prepend-6 last sidebar"> <h2>Blog</h2>}}} +/system/components/postticker+ {{{</div> </div>}}} +/system/components/footer+ {{{</div>}}} +/system/components/googleanalytics+ '; yourself ]

Now i have 2 problem:

A) the column span definition d'ont work. The data is displayed but d'ont alignment .

<div class="header column span-24">
<div class="logo column span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB column span-10">}}}+/system/components/headerIST+{{{</div> <div class="titleC column span-6">}}}+/system/components/headerApp+{{{</div> <div class="search column span-6 last">}}}+/system/components/search+{{{</div> </div>}}}


B) the search widget is display but d'ont work.

When type data in the relative input field any sorting is do.


I wrong some definitions?


Thanks for any consideration.


Dario



Reply | Threaded
Open this post in threaded view
|

Re: Pier2 problems in Gemstone

Dale Henrichs
Dario,

I'd be interested to know if these problems show up in Pharo or are
strictly related to GemStone.

As for alignment problems, I have seen some issues with the way the
layout flows (according to Google, there are issues with BluePrint and
flow in certain circumstances), but I'm not a layout guru ... if there
are differences in the generated page source between Pharo and GemStone,
I'd be able to start helping.

I've been using my own search widget over on the bibiliocello site
(using the same version of Pier that you've got), so I can take a quick
look at the generic search widget and see if I can understand what might
be going wrong...

Dale
Dario Trussardi wrote:

> Hi,
>
> i load the Pier2 support with the command:
>
> | autoCommit|
>
> autoCommit := MCPlatformSupport autoCommit.
> MCPlatformSupport autoCommit: true. "needed if loading from Topaz"
> MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [[
>                  Gofer project load: 'Seaside30'version: '3.0.0-rc.1' group: #( 'ALL').
>                  Gofer project load: 'Pier2' version: '2.0.6' group: 'ALL'.
>                  Gofer project load: 'PierAddOns2' version: '2.0.6' group: 'ALL'.
>          ]
>                  on: Warning
>                  do: [:ex |
>                          Transcript cr; show: ex description.
>                          ex resume ]].
> MCPlatformSupport autoCommit: autoCommit.
>
> After i create a PRDistribution subclass PRMyDistrbution for define my
> site based on Pier.
>
>
> I create the method :
>
> mainEnvironmentPage ^ mainEnvironmentPage ifNil: [ mainEnvironmentPage
> := (PRPage named: 'mainenvironment') title: '_Main Environment'; >
> contents: '{{{<div class="container"> <div class="header column
> span-24"> <div class="logo column
> span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB
> column span-10">}}}+/system/components/headerIST+{{{</div> <div
> class="titleC column span-6">}}}+/system/components/headerApp+{{{</div>
> <div class="search column span-6
> last">}}}+/system/components/search+{{{</div> </div>}}}
> +/system/components/header+ {{{<div class="column span-24 last mainbody"
> <h1 class="heading">}}}+value:structure+{{{</h1> <div class="contents
> column span-12">}}}+/system/components/contents+{{{</div> <div
> class="column span-6 prepend-6 last sidebar"> <h2>Blog</h2>}}}
> +/system/components/postticker+ {{{</div> </div>}}}
> +/system/components/footer+ {{{</div>}}}
> +/system/components/googleanalytics+ '; yourself ]
>
> Now i have 2 problem:
>
> A) the column span definition d'ont work. The data is displayed but
> d'ont alignment .
>
> <div class="header column span-24">
> <div class="logo column
> span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB
> column span-10">}}}+/system/components/headerIST+{{{</div> <div
> class="titleC column span-6">}}}+/system/components/headerApp+{{{</div>
> <div class="search column span-6
> last">}}}+/system/components/search+{{{</div> </div>}}}
>
>
> B) the search widget is display but d'ont work.
>
> When type data in the relative input field any sorting is do.
>
>
> I wrong some definitions?
>
>
> Thanks for any consideration.
>
>
> Dario
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Pier2 problems in Gemstone

Dale Henrichs
In reply to this post by dario trussardi
Dario,

After looking at this a little bit I'll have to plead ignorance ... It
definitely looks like you need to include additional javascript
libraries with the pier application (looks like you need the
Scriptaculous controlJs file loaded plus???) I did the load and then
noticed that the javascript script for the seach function ended up in a
div at the end of the page ... is that okay? is it supposed to be
somewhere else? the answers to these and others are beyond my
understanding of javascript ...

Sooo, I will need someone with more knowlege than I have to tell me
what's wrong before I can fix it (if something needs fixing)...

Dale


Dario Trussardi wrote:

> Hi,
>
> i load the Pier2 support with the command:
>
> | autoCommit|
>
> autoCommit := MCPlatformSupport autoCommit.
> MCPlatformSupport autoCommit: true. "needed if loading from Topaz"
> MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [[
>                  Gofer project load: 'Seaside30'version: '3.0.0-rc.1' group: #( 'ALL').
>                  Gofer project load: 'Pier2' version: '2.0.6' group: 'ALL'.
>                  Gofer project load: 'PierAddOns2' version: '2.0.6' group: 'ALL'.
>          ]
>                  on: Warning
>                  do: [:ex |
>                          Transcript cr; show: ex description.
>                          ex resume ]].
> MCPlatformSupport autoCommit: autoCommit.
>
> After i create a PRDistribution subclass PRMyDistrbution for define my
> site based on Pier.
>
>
> I create the method :
>
> mainEnvironmentPage ^ mainEnvironmentPage ifNil: [ mainEnvironmentPage
> := (PRPage named: 'mainenvironment') title: '_Main Environment'; >
> contents: '{{{<div class="container"> <div class="header column
> span-24"> <div class="logo column
> span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB
> column span-10">}}}+/system/components/headerIST+{{{</div> <div
> class="titleC column span-6">}}}+/system/components/headerApp+{{{</div>
> <div class="search column span-6
> last">}}}+/system/components/search+{{{</div> </div>}}}
> +/system/components/header+ {{{<div class="column span-24 last mainbody"
> <h1 class="heading">}}}+value:structure+{{{</h1> <div class="contents
> column span-12">}}}+/system/components/contents+{{{</div> <div
> class="column span-6 prepend-6 last sidebar"> <h2>Blog</h2>}}}
> +/system/components/postticker+ {{{</div> </div>}}}
> +/system/components/footer+ {{{</div>}}}
> +/system/components/googleanalytics+ '; yourself ]
>
> Now i have 2 problem:
>
> A) the column span definition d'ont work. The data is displayed but
> d'ont alignment .
>
> <div class="header column span-24">
> <div class="logo column
> span-2">}}}+/system/components/headerIST+{{{</div> <div class="titleB
> column span-10">}}}+/system/components/headerIST+{{{</div> <div
> class="titleC column span-6">}}}+/system/components/headerApp+{{{</div>
> <div class="search column span-6
> last">}}}+/system/components/search+{{{</div> </div>}}}
>
>
> B) the search widget is display but d'ont work.
>
> When type data in the relative input field any sorting is do.
>
>
> I wrong some definitions?
>
>
> Thanks for any consideration.
>
>
> Dario
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Pier2 problems in Gemstone

dario trussardi
Dale,


Dario,

After looking at this a little bit I'll have to plead ignorance ... It definitely looks like you need to include additional javascript libraries with the pier application (looks like you need the Scriptaculous controlJs file loaded plus???) I did the load and then noticed that the javascript script for the seach function ended up in a div at the end of the page ... is that okay? is it supposed to be somewhere else? the answers to these and others are beyond my understanding of javascript ...

Sooo, I will need someone with more knowlege than I have to tell me what's wrong before I can fix it (if something needs fixing)...

Dale

how i write :

A) the column span definition d'ont work. The data is displayed but d'ont alignment .
This first problem is erase because i work with lighttpd server and i have 2 gemstone environment.

The files based on WAFileHandler are not load in the browser.

This required a configuration of WAFileHandler on any environment

WAAdmin defaultDispatcher register: WAFileHandler default at: 'filesenviroment.........'

and the lighttpd configuration:

$HTTP["url"]=~ "^/filesenvironment...." { fastcgi.server = ( "/filesenvironmt......." ( ("host" => "192.168.1.100","port" => 9030,"check-local" => "disable","mode" => "responder" ), ("host" => "192.168.1.100","port" => 9031,"check-local" => "disable","mode" => "responder" ), ("host" => "192.168.1.100","port" => 9032,"check-local" => "disable","mode" => "responder" ), ), ) }
Now after this configurations, the specific problem are resolved.



B) the search widget is display but d'ont work. When type data in the relative input field any sorting is do.
This problem remain.
The browser debug report:

ReferenceError: Can't find variable: Ajax

I note the browser download only the pier.js.

It's right ? Or other *.js files are required ?
If yes because are not download in the browser ?


Thanks,

Dario
Reply | Threaded
Open this post in threaded view
|

Re: Pier2 problems in Gemstone

Dale Henrichs
Dario Trussardi wrote:

>
> B) the search widget is display but d'ont work. When type data in the
> relative input field any sorting is do.
> This problem remain.
> The browser debug report:
>
> ReferenceError: Can't find variable: Ajax
>
> I note the browser download only the pier.js.
>
> It's right ? Or other *.js files are required ?
> If yes because are not download in the browser ?
>
>
> Thanks,
>
> Dario

Dario,

It does look like additional js files need to be loaded into the browser
for the search field to work ... I don't know enough about ajax and js
to be able to figure which files need to be loaded, so I suggest you ask
a question on the pier list about what it takes to enable the search
widget...

Dale