Slide 1: ILOG JSF Graphical Components
java.sun.com/javaone/sf
Julian Payne Director of Visualization ILOG http://www.ilog.com
1 | 2004 JavaOneSM Conference | Session TS-2218
Slide 2: ILOG Advanced Graphical Components for the Web
JSF enabled
2
| 2004 JavaOneSM Conference | Session TS-2218
Slide 3: Writing a DHTML JSF graphical component
• DHTML component is:
─ Server-side component ─ HTML generation ─ Javascript for client side interactions
• Creating a JSF component
─ Derive UIGraphic to provide a JSF component that wraps the graphical component ─ Implement a renderer that generates the HTML and the necessary script ─ Create the tag in the tag library ─ Provide any additional meta-data and code required for the component as well as the IDE if being used
3 | 2004 JavaOneSM Conference | Session TS-2218
Slide 4: Sounds simple but …
• Script dependencies and includes must be
handled correctly…
─ Example: an “overview” has a reference to a “view”, the script object for the view must exist before the overview can access it ─ Hence dependencies between the order that (parts of) components are renderered
• Requires script for incremental refresh in order
to build a better user experience…
─ Renderer generates script proxies that call back to a secondary servlet that handles all requests for images outside the normal JSF cycle (whilst waiting for a better solution)
4 | 2004 JavaOneSM Conference | Session TS-2218
Slide 5: Component Vendor JSF Vision
• IDE support will decide the success of JSF
─ Simple component deployment
• Need a JSF “component integration framework”
for integration into a JSF compliant IDE
• Provide support for incremental refresh • Standard JSF components that are
independent of the renderer
─ Render based on client capabilities ─ Use more advanced rendering (e.g. SVG) for more graphics intense interfaces
5
| 2004 JavaOneSM Conference | Session TS-2218
Slide 6: Demo
• ILOG JViews Charts 6.0
Visit the ILOG booth #1524 for a live demo
More details in: TS-1936 Developing Advanced Graphics Components Using JavaServerTM Faces Technology (Thursday 1:15 PM)
6
| 2004 JavaOneSM Conference | Session TS-2218