Override the resizable view in JViews JSF application

Article ID: 2420
Last updated: 29 May, 2018
Article ID: 2420
Last updated: 29 May, 2018
Revision: 3
Views: 677
Posted: 30 Dec, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

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.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2420
Last updated: 29 May, 2018
Revision: 3
Views: 677
Posted: 30 Dec, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.

Others in this category