On Mar 29, 2007, at 1:32 AM, Michael Bauschert wrote:
Hi,
while running our jsf app into tomcat without jetspeed a form field is
having the id "connectFields:namespace". While running under
jetspeed the
id is "viewjs_P_1117fdb43b4_10007_:connectFields:namespace".
The problem is: If myfaces tries to use javascript calls to access
fields
with document.getElementById("connectFields:namespace") this is not
working.
The Question: How to change the app or how to setup MyFaces /
Jetspeed to
enable MyFaces to get the Javascript elements ?
There is a way to encode resources with the Portlet API tag library
"namespace" tag
<A HREF=”javascript:<portlet:namespace/>doFoo()”>Foo</A>
so you could try something like:
document.getElementById(<portlet:namespace/>)
although I don't think that will give you the full "viewjs_" prefix
I need to have a closer look at this
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]