Does anyone can help to figure out how can I use an onclick event in the following scenario.
Code:
<ice:column style="font-size:10; white-space:nowrap">
<ice:panelGroup>
<ice:effect event="mouseover" effectType="highlight" >
<a href= "javascript:openUpFileAndCloseCurrentBrowser()"> <ice:outputText value="#{versionBeanWithResource.version.name}"/></a>
</ice:effect>
</ice:panelGroup>
</ice:column>
and here what I have outside of </f:view>
Code:
<script language="javascript">
function openUpFileAndCloseCurrentBrowser(){
alert("Test");
}
</script>
Here is my error:
Error Traced[line: 124] The markup in the document following the root element must be well-formed.
Please help.
.. Hobi