开发者

Onclick doesn't call a function

开发者 https://www.devze.com 2023-01-10 15:01 出处:网络
While I am working with this code: <rich:menuItem value=\"AND Search\" onclick=\"addTagAND(\'#{tagElement.tag}\')\" id=\"and_search\">

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

精彩评论

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