You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.In your updateRoot: method for a component that is rendered using Seaside
REST add
htmlRoot addStyle:'body{font-size:12px;}'.
2. Load the component
What is the expected output? What do you see instead?
The page should render.
An error is thrown when the
WARenderContext>>#urlForDocument:mimeType:fileName:
methods is run.
What version of the product are you using? On what operating system?
Seaside 3.1.3
Please provide any additional information below.
Original issue reported on code.google.com by pdebr...@gmail.com on 21 Feb 2015 at 10:11
The text was updated successfully, but these errors were encountered:
marschall
changed the title
sending #addStyle: to an htmlRoot when rending using Seaside REST results in an error because there is no session
Support inline CSS and JavaScript
Jul 17, 2015
The issue is the following:
Currently we do not allow inline CSS or JavaScript content (unless you subclass WAHtmlElement). Every CSS and JavaScript you add the root ends up as a document handler in the session. This obviously doesn't work when you don't have a session. It also hurts you when you want to go for maximum points on PageSpeed Insights. I see two possible ways forward:
Add checks to WAContentElement and WAHtmlRoot and check whether we have a session.
Add an additional method to WAContentElement for setting the inline content
Original issue reported on code.google.com by
pdebr...@gmail.com
on 21 Feb 2015 at 10:11The text was updated successfully, but these errors were encountered: