[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-18 Thread wa7son
As far as I can see this is not possible for me because I'm using MyFaces (and it is MyFaces who control the portlet). My guess is that MyFaces is doing the exact same thing as you are describing, but for some reason, the MyFaces portlet does not get the complete content header-content tag.

[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-18 Thread mholzner
Currently it is not possible to get what you want via the descriptor. Look at | org.jboss.portal.theme.deployment.jboss.PortalThemeMetaDataFactory | That's where the descriptor gets unmarshalled. As you can see there, everything but script and link tags will be ignored. Not sure if you

[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-10 Thread [EMAIL PROTECTED]
Not sure what you aretrying to do but did you try surrounding it with CDATA ? | ![CDATA[ | !--[if lt IE 7.] | script src=/javascripts/pngfix.js type=text/javascript// foobar/script | ![endif]-- | ]] | View the original post :

[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-10 Thread wa7son
[EMAIL PROTECTED] wrote : Not sure what you aretrying to do but did you try surrounding it with CDATA ? Yes... In that case it is not injected to the head tag at all. I tried two ways, both of which did not work: | ![CDATA[!--[if lt IE 7.]]] | script src=/javascripts/pngfix.js

[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-10 Thread wa7son
Btw... This is the complete jboss-portlet.xml file: | portlet-app |portlet | portlet-nameProductionUnitPortlet/portlet-name | remotabletrue/remotable | header-content | link href=/stylesheets/eogs.css title= rel=stylesheet type=text/css media=screen

[jboss-user] [JBoss Portal] - Re: How do I output a HTML comment in the head-tag via heade

2006-10-10 Thread mholzner
In your case the code is ignored because the xml descriptor is parsed in a standard way (i.e. ignoring comments). BUT: You can do it via code. In the portlet's doView() etc. you can inject any HTML you want. Look for the ContentRewritePortlet in the portlet examples (in core). |