Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Core JSF - Tab Component Example

843842Oct 9 2005 — edited Oct 10 2005
I have the Core Java Server Faces book, and in reading the "Component" chapter, there is an example of creating a Component which acts like Tab pane, that simply links to different pages.

Is this a practical application ?
I have implemented something similar on a site (using struts), but simply used raw HTML and CSS, put it into an include, and, viola. Done.
The total code is about 10 lines, and the actual code needed to do the include is about 3 lines... looking much like the custom tag shown in the book.

Here are the only reasons I think this is actually practical... and please give me some other reasons, as I tooootally want to know some reasons why you'd code near 1000 lines (UI Component, the tag, a renderer...etc):
1) the Renderer. you could code your app so it's available to be rendered on a cell phone, etc.
2) cutting out the hardcoded html... but don't see this as that big of an issue.

Let me know what you think. I'm trying to decide whether to refactor my tabs into a component... but, I'm thinking it's not worth it.

Any help would be appreciated !
Thanks !!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2005
Added on Oct 9 2005
1 comment
32 views