메일링 리스트 webobjects-dev@wocommunity.org 메시지 #375
보낸 사람: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
제목: ERXStyleSheet inside AjaxModalDialog
일자: Thu, 14 Jul 2022 16:21:30 +0200
받는 사람: Ramsey Gurley <webobjects-dev@wocommunity.org>
서명된 데이터 (Text SHA256)
I have an AjaxModalDialog that uses a component to render its contents (which itself uses a WOSwitchComponent to change the contents inside the modal dialog). Some things inside this component need special CSS defs that are in a css file. Using ERXStyleSheet allows me to load the css via filename binding -> works! WebInspector shows a proper <link rel = ... in the html

When the user closes the dialog and reopens it the ERXStyleSheets do not render again -> no <link rel = .... in the html, styles are now missing and the dialog contents looks wrong. A hardcoded <style>...</style> definition is rendered in any case, just the ERXStyleSheets do not anymore. Reloading the whole page restores everything.

Why?

I have now (UGLY like hell!!) resorted to <style> <webobject name = “styles” /></style> and resolve the styles in code by reading the style file (WOResourceManager helping to find the file URL) and returning its contents as a String.

Any idea? This stuff drives me crazy....





내용 변경이 없음이 보증됨:
<markus.ruggiero@rucotec.ch>
가입 (FEED) 가입 (DIGEST) 가입 (INDEX) 탈퇴 Listmaster에게 메일 보내기