This section shows the use of the boundingBox and changeBoundingBox properties.
Setting the initial visible area of the view
The following code example shows how to control the initial
display of the view.
<jvf:view [...] boundingBox="0,0,100,200"/>
Resetting or changing the visible area of the view
The following code example shows how to reset or change
the visible area of the view.
This code will only work in the JSF_CONTEXT
(and
not in the IMAGE_SERVLET_CONTEXT
), since
it requires the JSF cycle to refresh the whole page.
public class FrameworkBean {
[...]
public void changeBoundingBox() {
IlvFacesDHTMLView jsfView = getJSFViewComponent();
jsfView.setBoundingBox(new IlvRect(0,0,100,100));
}
}
Note
When you change the bounding box through back bean Java
code, the changes take effect only in a JSF lifecycle, and can be
seen only after the JSF page is fully or partially refreshed.