08-26-05 11:02 PM
I am getting an error on my portlet after following the tutorial in the Rati
onal Application Developer V6 and Portal Tools book.
In my JSP file, as advised, I wrote a function, but appended a tag to refer
to the name space in the javascript like so:
function "portlet:namespace/"func_1(thisObj, thisEvent) {
document.forms['view"portlet:namespace/":form1'].submit();
return false;
}
This might be difficult to read. I have replaced the tag brackets around por
tlet:namespace with " because this forum strips out tags like that on posts.
I always get a javascript error when trying to display the portlet saying a
'(' is expected on the line:
function "portlet:namespace/"func_1(thisObj, thisEvent) {
The portlet will never render either on the test environment. If I cut the
javascript from my JSP page, it will render with no error. And if I cut the
"portlet:namespace/", it renders without javascript error.
I have never gotten javascript to run properly. What is the right way to hav
e it run on a portlet page? What is wrong with the code above?
I am using JSR 168.
[ Post a follow-up to this message ]
|