Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

JSF

Thread view: 
timothy ma and constance lee - 10 Sep 2007 04:25 GMT
Anyone is familar JSF? Is it possible to create a tag similar to Label but i
may put a class inside so as to display any style as i like?

Thanks
Roedy Green - 10 Sep 2007 08:13 GMT
On Mon, 10 Sep 2007 03:25:40 GMT, "timothy ma and constance lee"
<timcons1@shaw.ca> wrote, quoted or indirectly quoted someone who said

>Anyone is familar JSF? Is it possible to create a tag similar to Label but i
>may put a class inside so as to display any style as i like?

JSF did not seem to catch on.  I rarely see any mention of it. It has
quite a bit more overhead that other approaches.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Lew - 10 Sep 2007 13:54 GMT
> On Mon, 10 Sep 2007 03:25:40 GMT, "timothy ma and constance lee"
> <timcons1@shaw.ca> wrote, quoted or indirectly quoted someone who said
[quoted text clipped - 4 lines]
> JSF did not seem to catch on.  I rarely see any mention of it. It has
> quite a bit more overhead that other approaches.

It's getting a little traction.

The overhead is not so large after the learning curve, either.  Yes, the
learning curve is a bit much, but the overhead is no worse than other
frameworks (e.g., Struts).

OTOH, simple uses of JSF (no more complicated than most Struts apps) are
relatively easy to learn to do and to implement.

The OP need not create a tag, as h:outputLabel is already in JSF.  I suggest
reading the JEE tutorial from java.sun.com which has several chapters on JSF.
 This tag is one of the first mentioned.

<http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/outputLabel.html>

Signature

Lew

Arne Vajhøj - 11 Sep 2007 01:50 GMT
> On Mon, 10 Sep 2007 03:25:40 GMT, "timothy ma and constance lee"
> <timcons1@shaw.ca> wrote, quoted or indirectly quoted someone who said
[quoted text clipped - 4 lines]
> JSF did not seem to catch on.  I rarely see any mention of it. It has
> quite a bit more overhead that other approaches.

JSF *is* catching on.

I would consider it the first choice for new Java web apps today.

And I do not know what overhead you are talking about.

Arne
David Segall - 11 Sep 2007 17:53 GMT
>On Mon, 10 Sep 2007 03:25:40 GMT, "timothy ma and constance lee"
><timcons1@shaw.ca> wrote, quoted or indirectly quoted someone who said
[quoted text clipped - 3 lines]
>
>JSF did not seem to catch on.
Maybe not but it seems to be the only similar framework backed by Sun
and supported by their RAD tools. See
<http://developers.sun.com/jscreator/> and
<http://www.netbeans.org/products/visualweb/>.
> I rarely see any mention of it. It has
>quite a bit more overhead that other approaches.
Which "other approaches" offer a web-based equivalent of Swing that is
more popular or has less overhead than JSF?
Lew - 11 Sep 2007 18:26 GMT
>> On Mon, 10 Sep 2007 03:25:40 GMT, "timothy ma and constance lee"
>> <timcons1@shaw.ca> wrote, quoted or indirectly quoted someone who said
[quoted text clipped - 10 lines]
> Which "other approaches" offer a web-based equivalent of Swing that is
> more popular or has less overhead than JSF?

I like JSF.  I've just been learning it a few months now, and it's very nifty.

It's perhaps a little too powerful.  I find it a bit overwhelming at first,
being more accustomed to rolling my own MVC for web apps, or using Struts.

Once I caught on to using faces-config.xml to configure my managed beans,
though, it really took off.  I haven't even gotten fancy with lifecycle
management, as might be needed if forwarding to non-JSF pages.

Another nice thing about JSF is that it plays well with both CSS and
Javascript.  The former is especially important, IMO.  Just about every JSF
tag has attributes for style and client-side event hooks.

This integration has started to open my mind up to a new paradigm for web and
similar apps, neither server-side nor client-side but a synthesis where client
and server coordinate their logic for a fabulous user experience.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.