Skip to main content

demo of JSF2 ui components library ?

12 replies [Last post]
eheb
Offline
Joined: 2008-11-04

I am looking for web demo and its source codes about JSF2 ui components library : mojarra or myfaces implementation ...
Best regards.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jdlee
Offline
Joined: 2006-01-25

> No doubt composite components is a big improvement,
> but I still see some serious limitations in this
> area.
> To prove my point I have just one small challenge for
> JSF expert group :)
>
> The challenge:
> ------------------------------------------------------
> Creating composite component that provide the same
> basic functionality as "inputText" component without
> using one inside of composite component.
> The main requirement do not use encoding/rendering
> functionality in Java class!
> ------------------------------------------------------
>
> I bet it's impossible to do it with the current JSF
> architecture :)

I'll see what I can do. ;)

vladperl
Offline
Joined: 2004-08-11

> I'll see what I can do. ;)

If you will be able to do it successfully it will be turning point for JSF evolution in my opinion.

Let me explain a little bit my point here.

Ed Burns said:
--------------------------------------------------------------------------------------------------------------
The EG reasoning here is: if you can't write everything you need as a
composite component using markup+JavaScript only, depending only on the
HTML_BASIC component set as your base level of JSF UI component, then
composite components need some improvement.
--------------------------------------------------------------------------------------------------------------

Success of the experiment will prove that it's not really necessary to use HTML_BASIC component set as base level of composite components.
Then it will be easy to create complete set of composite components as better alternative to HTML_BASIC components.
In case I win the bet it will be pretty useful for all because it should highlight serious limitations in area of composite components.

My conclusion is that you are a Brave Man for taking the challenge or it could be that my knowledge of JSF is very limited :)

I wondering what people think about this bet.
To make things more interesting we could organize bet for money :)
Probably this is only way to make people be more active on this forum.

Thank you Jason for doing it and for your recent activities that already was significant help for me and other developers.

rogerk
Offline
Joined: 2004-05-06

Case in point...
As Jason points out, more and more component developers will be taking advantage of the new JSF 2.0 Composite Component feature to create more sophisticated components from primitive ones.

vladperl
Offline
Joined: 2004-08-11

> Case in point...
> As Jason points out, more and more component
> developers will be taking advantage of the new JSF
> 2.0 Composite Component feature to create more
> sophisticated components from primitive ones.

No doubt composite components is a big improvement, but I still see some serious limitations in this area.
To prove my point I have just one small challenge for JSF expert group :)

The challenge:
-----------------------------------------------------------------------------------------------------------------------------
Creating composite component that provide the same basic functionality as "inputText" component without using one inside of composite component.
The main requirement do not use encoding/rendering functionality in Java class!
----------------------------------------------------------------------------------------------------------------------------

I bet it's impossible to do it with the current JSF architecture :)

rogerk
Offline
Joined: 2004-05-06

If I am understanding you correctly, you would like to create a JSF2 custom component (not a composite component) without any encoding/rendering in a java class - which dictates that you should not have to write a Java component/renderer.

vladperl
Offline
Joined: 2004-08-11

> If I am understanding you correctly, you would like
> to create a JSF2 custom component (not a composite
> component) without any encoding/rendering in a java
> class - which dictates that you should not have to
> write a Java component/renderer.

It's pretty quick response. I didn't expect it :)
I'd like to use composite component for implementing rendering functionality.
Regarding implementing other part of functionality such as decoding it's fine to use Java class for it.

rogerk
Offline
Joined: 2004-05-06

JSF 2 introduces Composite Components, so perhaps you mean a library of interesting
(more complex) Composite Components (made up of the primitive ones).

vladperl
Offline
Joined: 2004-08-11

> JSF 2 introduces Composite Components, so perhaps you
> mean a library of interesting
> (more complex) Composite Components (made up of the
> primitive ones).

Roger,
It would be nice to have example of composite component that implement auto-suggest behavior for input box.

Something that briefly described in the following article:
http://java.dzone.com/articles/jsf-2-client-behaviors?page=0,1

Thank you,
Vladimir

Jason Lee

On 4/28/10 4:33 PM, webtier@javadesktop.org wrote:
> Roger,
> It would be nice to have example of composite component that implement auto-suggest behavior for input box.
>
> Something that briefly described in the following article:
> http://java.dzone.com/articles/jsf-2-client-behaviors?page=0,1
>
>
I have one of those:

http://demo.steeplesoft.com/mojarra-scales-demo/autocomplete.jsf

Source here:

http://kenai.com/projects/scales/sources/mercurial/show/main/src/main/re...

There's some logic in Java to help build the JS config object, but
that's about it:

http://kenai.com/projects/scales/sources/mercurial/content/main/src/main...

--
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console

Oracle Corporation
Phone x31197/+1 405-343-1964
Blog http://blogs.steeplesoft.com

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

vladperl
Offline
Joined: 2004-08-11

> I have one of those:
>
> http://demo.steeplesoft.com/mojarra-scales-demo/autoco
> mplete.jsf

Jason,
That exactly what I was looking for.
I glad that I asked for it :)
Honestly I was going to take a look at your library couple of times, but something stopped me every single time.
I have started looking into some other libraries like "Open Faces", but your library looks more modern and easier to use. At least I see it in case of this component. If I'm not mistaken you use "Scales" to build UI for Glassfish Admin Panel.
I'm going to dig your library to improve scalability of my projects :)

Thank you very much,
Vladimir

dxxvi
Offline
Joined: 2006-07-24

I don't think there'll one because the JSF 2 ui components are the basic html elements. So a demo like that won't impress anybody who doesn't know what JSF is. To people who know about JSF, there's no need for a demo.

yzstone
Offline
Joined: 2011-04-21

I CANNOT agree. The point of a demo with source is not (only) to show case the fancy aspect of JSF2. Instead, it is more important to demo the usage of the tags in action so that we can start using them immediately by copying and pasting the source code and making necessary changes. The APIs and the Tag Lib Documents are helpful but quite difficult to use (without examples).

I always wish there would be more examples in API Java Docs. Reading a full (often lengthy) page of Java Docs to find out some basic usage is too expensive at best, IMHO.

dxxvi wrote:
I don't think there'll one because the JSF 2 ui components are the basic html elements. So a demo like that won't impress anybody who doesn't know what JSF is. To people who know about JSF, there's no need for a demo.