Error while passing values in will_paginate

Hai to All ,

     I am facing a problem while passing a value in will_paginate.The
values are not passed when moving from one page to other in pagination.

The coding is,

<%= will_paginate @names
,{:territory=>params[:territory],:area=>params[:area],:name=>params[:name]},:renderer
=> 'RemoteLinkRenderer' , :remote => {:update => 'main_div',:pagination
=> 'yes',
:loading=>"document.getElementById('fade').style.display='block';$('list_paginate_spinner').show();",
                :loaded=>"document.getElementById('fade').style.display='none';$('list_paginate_spinner').hide();"}
%>

Thanks in Advance