Since 3.0
The <ace:resizable> component is used to give another component the capability of being resized.
See the ICEfaces Showcase Live Demo of this component, complete with source code.
The component we want to make resizable is specified as the value of the for attribute.
<h:panelGroup id="panel">
</h:panelGroup>
<ace:resizable for="panel" />
Alernatively, the for value can be omitted, and the parent component will be made resizable.
<h:panelGroup id="panel">
<ace:resizable />
</h:panelGroup>
TagLib Documentation
This section covers attributes involved in the typical use-cases for this component.
for Specifies the id of the component to make resizable..
handles Comma-separated list of handles to use. Possible values are n, e, s, w, ne, se, sw, nw. Default value is "e, s, se".
ghost Boolean value to specify whether a semi-transparent helper element is shown for resizing
containment Boolean value to specify whether the resizable element should be restricted to its parent's boundaries.
aspectRatio Boolean value to specifies whether the aspect ratio of the element should be maintained when resizing.
| resizeListener | Listener for the end of resize event. |
| resize | Fired at the end of a resize operation (default event). |
The client side component object is exposed through the global variable name specified in the widgetVar attribute.
The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use.
var widget = ice.ace.instance('frm:componentId);
The ice.ace.instance function requires the full client id of the component to be specified, such as "j_idt77:componentId" instead of just "componentId". To reduce the complexity of working with complete IDs with this function it may be preferable in some cases to use
prependId="false"in the enclosing form (e.g. <h:form prependId="false">).
This component doesn't have a client-side API made specifically to be used by application developers. However, the component's internal methods and variables can be accessed in this way, including the underlying jQuery object and objects from underlying Javascript libraries (if applicable), and can be used for whatever purpose a developer might have in mind.
Javascript callbacks can be supplied in the
onStart,onError,onSuccess, andonCompleteattributes of the<ace:ajax />tag for theresizeevent. TheonStartcallback must explicitly return true if the ajax event is to continue.
There is no keyboard and ARIA support.
This component adds one or more of the following nodes to a container, serving as handles to resize it.
<div class="ui-resizable-handle ui-resizable-n" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-e" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-s" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-w" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-sw" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-ne" style="z-index: 1000;"></div>
<div class="ui-resizable-handle ui-resizable-nw" style="z-index: 1000;"></div>
None, at the moment.
ICEfaces Showcase application, ace:resizable demo.