I have implemented prev << next>>
buttons also..
which will show me resultset part by part along with the sphere..
i've used SOQL Offset-limit logic..but the problem is when clicking prev or next button, pageblock containing the sphere disappears..
what i want is that while clicking prev or next button it will call the enablesphere method also, along with its own action function..
public void previous() {
index = index - blockSize;enableSphere();
}
is not working..is there any way to call 2 functions from 1 button? please help
enableSphereAndPrevious
should work as long as you return theprevious
method return value (assuming that is a new page). But perhaps there is an issue with controller state whenenableSphere
executes; perhaps it was coded to work once your are on the new page not while the controller state still relates to the old page. Review that.