hello papoy

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

hello papoy

ching
Hi,

I am trying to make a small app that says 'Hello Papoy'
Object subclass: #Papoy >> name
                    >> name:

WebApplication subclass: #PapoyApp >> viewMain

        | e |
        e := WebElement new. 
        e addTextH1: 'Hello, Papoy'.

on a workspace:

papoy _ Papoy new.
papoy name: 'test papoy'.


AIDASite newNamed: 'papoy'.
(AIDASite named: 'papoy') addUserService: papoy named: #papoy.
(AIDASite named: 'papoy') urlResolver defaultURL: '/pap.html' forObject: papoy.
(AIDASite named: 'papoy') start..
(AIDASite named: 'papoy') host: 'localhost' ip: '127.0.0.1' port: 8881.

Mozilla firefox browser: http://localhost:8881/pap.html
The server runs and serves: http://localhost:8881/admin?view=login
displaying the aidademo login page

What step is missing?

Thanks in advance.

Ching de la Serna

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: hello papoy

Herbert König
Hi Ching,



CdlS> WebApplication subclass: #PapoyApp >> viewMain

CdlS>         | e |
CdlS>         e := WebElement new.
CdlS>         e addTextH1: 'Hello, Papoy'.

I'm not sure if you get away without ending your view method without a
variant of:

self style pageFrameWideNoNavigationWith: e title: 'yourTitle' .

CdlS> Mozilla firefox browser: http://localhost:8881/pap.html
CdlS> The server runs and serves:
CdlS> http://localhost:8881/admin?view=login
CdlS> displaying the aidademo login page

This is to be expected, you have to login with 'admin' and 'password',
after that you should be forewarded to your page. If you don't want
this, do the login and then as an admin you can assign the 'guest'
user the right to view your page. Then the steps you describe will lead
directly to your page.

To set the access rights you go to localhost:8888 in your browser. On
the top of the demo page you log in as admin, go to security in the
left bottom nav bar. Select 'users', select 'guest'. At the bottom find
'access rights'. There you'll find your app and can set the guests
rights.


Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida