[Seaside] How to associate a new WAApplication to a component?

stephane ducasse stephane.ducasse at free.fr
Sat Jan 26 19:57:58 UTC 2008


hi all

I read the FAQ but the following sentence is unclear to me

How do I subclass WAApplication?
It is sometimes necessary to subclass WAApplication, for instance when  
it is needed to display a session expiration page.
When you subclass WAApplication, make sure that the subclass  
reimplements #description on the class side, this will ensure that you  
can differentiate the WAApplication subclasses in the "config"  
application. Once the WAApplication is in place you can use the  
"config" application to create your Seaside application.
New Seaside applications can also be created programmatically by  
carefully reimplementing#applicationWithPath: on the class side of  
your root component.


"Once the WAApplication is in place you can use the "config"  
application to create your Seaside application."
and I could not find applicationWithPath: ?

I found applicationNamed: but it seems that WAApplication is hard  
coded there.

Component class>>applicationNamed: aString
	| application |
	application := WAApplication named: aString.
	application configuration addAncestor: WARenderLoopConfiguration new.
	application preferenceAt: #rootComponent put: self.
	^ application

Should I duplicate it and change the WAApplication?

Component class>>applicationNamed: aString
	| application |
	application := XXXXApplication named: aString.
	application configuration addAncestor: WARenderLoopConfiguration new.
	application preferenceAt: #rootComponent put: self.
	^ application

Thanks

Stef





More information about the seaside mailing list