| | | | Browse by category |
Question
How do you override the resizable view in ILOG JViews JSF application?
Answer
When you set the resizable
attribute of a JSF View component to "true", the default maximum size of the resize interactor for this component is 1024x600px. As a result, you will not be able to resize this component beyond the default maximum size even if you set the width and height of the component to a larger size (example: style="width:1250px;height:650px"
).
To resize the view component larger than 1024x600px, you can override the default maximum size in JavaScript by getting the View component's DHTML object then call setMaximumSize(width, height)
. For example, to override the maximum size of the JSF Gantt View component:
<jvgf:ganttView id="gantt"
...>
</jvgf:ganttView>
<script type="text/javascript">
gantt.getJViewsDHTMLObject().setMaximumSize(5000,5000);
</script>
Note that before you use the JavaScript code, you must first create the View component.