0

I have an issue in apex:commandlink ,On clicking apex commandlink the page gets reloaded though i have set my reRender property to none.This works in chrome but not working in firefox and IE this seems to be strange any ideas on this?

<button class="btn btn-default" type="" >
    <apex:commandLink id="searchzip" styleClass="glyphicon glyphicon-search" style="color:#666565;" onclick="Call(); " reRender="none" status="Search"/>
</button>
<apex:actionStatus id="Search" onstart="showControl();" onstop="hideControl();" />

this is my button

4
  • 1
    what does onlclick=call(); do?
    – AslamK
    Nov 25, 2014 at 14:44
  • onclick im calling java script but the same functionlaity works in chrome Nov 25, 2014 at 14:51
  • 1
    Well then i guess wrapping VF component inside standard HTML is causing some issues. Does it work fine without the outer <button>?
    – AslamK
    Nov 25, 2014 at 14:53
  • 1
    note that rerender="none" tries to rerender a VF component with id="none"
    – cropredy
    Nov 25, 2014 at 20:24

2 Answers 2

1

To make the commandLink look like a button you just need to specify styleClass="btn". You dont need to wrap it inside html button. Perhaps that is what is causing the refresh.

And not sure what your onclick is calling.

0

As you can see in the docs, reRender option:

The ID of one or more components that are redrawn when the result of an AJAX update request returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs.

So if you don't want to refresh your page, remove this reRender statement from your commandLink

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .