Tags

A big part of the upcoming 8.5 JViews release is the work that we've done to integrate with leading Ajax frameworks. One of the frameworks is ICEfaces and, in this post, we'd like show you how to create a browser-based display with it. Just like we did previously to describe how to use the new Eclipse features in the Beta, we've now created a little exercise here that is focused on web display creation. It includes a short (8 minute) step-by-step video that show you how to install a set of tools and settings (Tomcat, Eclipse, JViews and ICEfaces) and then proceed to create a project. This exercise needs you to download the Beta from our Labs website .

Prerequisites: Notions in JavaScript and HTML. The ILOG JViews JSF components are usually used through the JSP tags and their Java JSF component classes. But, on the client side, these components also have a representation in the form of JavaScript instances. As described in the documentation, each JSF component is generating a JavaScript instance whose variable name is the id value set on the JSP tag. To retrieve the class of this instance, open the ILOG JViews 8.1 product guide and look in the documentation of the JSP tag you used in the "Faces Tag Libraries" section. These classes named proxies are the JavaScript interface for the JSF components. Using these proxies API, you can change some properties of the JSF component client side representation without issuing a page refresh. As the proxies manage the state of the component, every change of a property using this API is recorded to synchronize the server side component on the next submit. I will use the IlvDiagrammerViewProxy class (proxy of the jvdf:diagrammerView component) to illustrate this API. In the JSP: <jvdf:diagrammerView id="diagrammer" [...] /> So we have a JavaScript variable named diagrammer of type IlvDiagrammerViewProxy . For example a call to this method will change the image displayed while the image is loaded: diagrammer.setWaitingImage(waitingImage); You also have API to control what is displayed by a view: zoomIn, zoomOut, zoomBy, moveTo, panNorth, showAll etc... Or to... [More]