Help coderanch get a
new server
by contributing to the fundraiser

Joachim Skeie

Greenhorn
+ Follow
since Jun 19, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Joachim Skeie

Matt Kohanek wrote:Got chart working. jsflot is great, I was able to convert my xml into the desired chart in less than 2 hours



I am glad you like it! There are a few more chart types available in the upcoming 0.4.0 release as well ;)
15 years ago
JSF

Srinivasa Murari wrote:I am new to JSF, looking for steps how to create Custom Tomahawk JSF tag.

Thanks
Sri



Preferably, you need a set of classes, and TLD (Tag Library Descriptor Class) and a faces-config XML file for your component.

In my own custom components I usually end up with classes like

MyComponentName - A Component class that extends UICommand, and at the least overrides the methods getFamily, processDecodes and getRendersChildren
MyComponentNameTag - A Component class that is responsible for setting and storing all the attributed that the component has
MyComponentRenderer - A Component class that is responsible for rendering the HTML/JavaScript/XML/etc of your component
MyComponent.tld - A Tag Library Descriptor file that describes the component, each and every attribute, its type and purpose (this is sort of like an XML representation of the *Tag class above)
faces-config.xml - The librarys configfile that tells JSF how to weave the classes above together into a component

Then you have other options as well, such as including a *-taglib.xml file so that Facelets can understand the component, etc.

However, if creating components is all new to you, you should read up on it. JSF in Action is a very decent book. The Sun JSF tutorial (Part of the JEE tutorial) is also quite good (IMO), and is the guide from which I learned to write Custom Components.

Its rather hard for anyone on the forum to be specific for your needs, just because you are asking a very wide quiestion, to which there are many different approaches and possible solutions to. There is also a rather decent learning curve involved.
15 years ago
JSF
As you describe, I would assume you are using JSP as your view descriptor. The FacesServlet will catch any JSF requests, but as you say, since you are using normal JSPs for your tags, I would assume you need JSP2.1 and servlet 2.5.

I would strongly recommend Facelets though, if you are inclined to check out that route of options.

On a side note, we were using JSF 1.1 with OC4J 10.1.3.0, and when we decided to upgrade to JSF 1.2 we scrapped OC4J altogether, as there is always way to much work involved for each and every OC4J upgrade.
15 years ago
JSF
Hello,

I am having some trouble finding a good example that shows how you trigger and queue actionListeners inside a custom component. I have a custom component that queues a valueChangeEvent, but the same approach doesnt seem to be working for actionListeners.

Do anyone have any suggestions or links as to how this is done ?
15 years ago
JSF
Thank you Matt. Glad it fits your needs. I'm currently working on making JSFlot more interactive with overlays and the possibiity to click and select data points, chart zooming, etc. In the end it should make for a rather complete charting library.

Matt Kohanek wrote:Joachim,
Although this portion of the project is now being handled by another member of the team, I went ahead and sent this to him, because this is exactly what we were looking for.
Thanks for the reply and Im sure Ill be using this library in the future for my own projects.

15 years ago
JSF
Another alterative is JSFlot, which is Open Source and released via Google Code. JSFlot Google Code Site under the MIT license.
There is also a Live Demonstration of JSFlot here: JSFlot Live Demo

Some example charts generated with JSFlot:

15 years ago
JSF
JSFlot is a new JSF Chart library that is compatible with other JSF Libraries like RichFaces.

JSFlot draws in-browser interactive charts using JavaScript and Canvas (Part of HTML5, but supported by most modern browsers). JSFlot also has AJAX Functionality embedded so that the chart can be updated via drag-and-drop (Drag the chart to the right or left to move the timeline (X-Axis)).

JSFlot is Open Source and released via Google Code. JSFlot Google Code Site under the MIT license.
There is also a Live Demonstration of JSFlot here: JSFlot Live Demo

Some example charts generated with JSFlot:

15 years ago
JSF

Matt Kohanek wrote:
I'm needing to generate a line chart over time using a collection of data points.
...
Does richfaces have a tag that i should look into for something like this? Or any other tips would be appreciated.



JSFlot is a JSF Chart library that is compatible with RichFaces. It can draw in-browser interactive charts using JavaScript. Most modern browsers are supported. JSFlot also has AJAX Functionality embedded so that the chart can be updated via drag-and-drop (Drag the chart to the right or left to move the timeline (X-Axis)).

JSFlot is Open Source and released via Google Code. JSFlot Google Code Site under the MIT license.
There is also a Live Demonstration of JSFlot here: JSFlot Live Demo

Some example charts generated with JSFlot:


15 years ago
JSF