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.
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
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 :
[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
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
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).
|