XPages: how to partially refresh a view "onClick"?

I’d like to build a button / icon / link / whatever enabling my users to refresh a view that’s on the same XPage. As long as I agree to have the entire page reloaded I got it to work using

context.reloadPage();

But what would be the correct way if I want to partially refresh the view only? I tried several things including taking numerous peeks at the discussion template but couldn’t get even close to a solution. Could someone please give me a hint where to look?

Talking about the discussion template: it appears to contain loads of good stuff and ideas which - unfortunately - I can’t find any explanation for. There are numerous objects, methods, constants etc. not being self-explanatory and for which I can’t find traces of documentation in designer help. This reminds me of the frustrations in my early days of LotusScript coding where I tried to learn the clever stuff from the R4 mail template…

Subject: There are already built-in capablities for Ajax refresh

Highlight your button, on the Events tab select OnClick, then select Partial Update, then identify the control you want updated (the view in this case).

This will create event code in the resultant HTML that fires an Ajax update event on the view.

If you want to trigger the event via Javascript try this out:

function firedUp(){

var fld = document.getElementById(‘#{id:myBoundField}’);

if (document.createEvent) // Firefox etc.

{

event = document.createEvent(“HTMLEvents”);

event.initEvent(“click”, false, true);

fld.dispatchEvent(event);

}

else // IE

{

fld.fireEvent(“onclick”);

}

}

Subject: oh dear…

…really THAT simple? Obviously was thinking way too complicated, again…

Thanks a ton