Hello list. My application is unable to load the css defined into a custom library class (I'm updating from 2.7 to 2.8). This is what I did: Subclassed WAFileLibrary with WASCAppFileLibrary, setting the #registerAsApplication properly and then wrote
updateRoot: anHtmlRoot super updateRoot: anHtmlRoot. Notifier isDevelopment "assume this is true always" ifTrue: [ anHtmlRoot stylesheet url: self class / #localCss ] ifFalse: [ anHtmlRoot stylesheet url:'<a href="http://www.scexapp.com/styles/myStyle.css" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.scexapp.com/styles/myStyle.css ' asURI ] localCss "Returns a CSS stylesheet associated with this component." self halt. ^ ' .... ' The page loads ok, but not the CSS. The halt is never reached, there's no dnu nor firebug tell me nothing at all. I saved the output and compared with the old version (SS 2.7) which works fine since it sets css scripts with #addHeadElement: but that api is unsupported now in SS 2.8. So I'm stuck here, I'm forgetting something? how can I debug this? where would be called effectively the localCss method? I'm using VW 7.5. [hidden email] thanks Bill _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2008/1/15, William Hubbard <[hidden email]>:
> Hello list. My application is unable to load the css defined into a custom > library class (I'm updating from 2.7 to 2.8). This is what I did: Subclassed > WAFileLibrary with WASCAppFileLibrary, setting the #registerAsApplication > properly and then wrote > > updateRoot: anHtmlRoot > super updateRoot: anHtmlRoot. > Notifier isDevelopment "assume > this is true always" > ifTrue: [ anHtmlRoot stylesheet url: self class / #localCss ] > ifFalse: [ anHtmlRoot stylesheet > url:'http://www.scexapp.com/styles/myStyle.css ' asURI ] Is there a reason for #asURI? This is Cincom specific, we do not support that. In general I would put such logic in your root component class and not your file library class. > localCss > "Returns a CSS stylesheet associated with this component." > > self halt. > ^ ' .... ' > > The page loads ok, but not the CSS. The halt is never reached, there's no > dnu nor firebug tell me nothing at all. I saved the output and compared with > the old version (SS 2.7) which works fine since it sets css scripts with > #addHeadElement: but that api is unsupported now in SS 2.8. > So I'm stuck here, I'm forgetting something? how can I debug this? where > would be called effectively the localCss method? If you go to http://127.0.0.1:8080/seaisde/files/MyFileLibrary/local.css You might have to adjust that, eg. change port or add /go depending on your setup. Cheers Philippe > I'm using VW 7.5. > > thanks > > Bill > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks Phillipe, the problem was some #urlOf: implementors were overidden with a hardcoded path.
Bill 2008/1/15, Philippe Marschall <[hidden email]>: 2008/1/15, William Hubbard <[hidden email]>: _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |