开发者

Onclick doesn't call a function

While I am working with this code:

<rich:menuItem value="AND Search" onclick="addTagAND('#{tagElement.tag}')" id="and_search">

FUNCTION:

    <a4j:jsFunction name="addTagAND" 
actionListener="#{interfaceContainer.documentFormActions.addTagAND}" reRender="navigation, ..." 
ignoreDupResponses="true"  
data="#{searchResults.graphJSON}"  oncomp开发者_JAVA技巧lete="alert('AND');">  
<f:param name="tag" ></f:param>
</a4j:jsFunction>

I don't get even the alert();

Is there any problem in the calling or any ideas??

Thanks in advance


Does this work?

<rich:menuItem value="AND Search" onclick="alert('hi');" id="and_search">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜