I've got a PrimeFaces commandLink which should just make some area visible. However i can not stop it refeshing the page each time it is clicked. I've read some topics about it already but it just does not help.
<script type="text/javascript">
function show() {
$("div[id*='models']").show();
}
</script>
...
<p:commandLink global="false"
onclick="show(); return null;">
<h:outputText value="show..." />
<f:ajax execute="@form" render="@none" />
</p:commandLink>
<p:panel id="models" style="display:none"> Some content</p:panel>
Does anymone have an idea, please?