Monday, 28 July 2008
Snappy Calendar and Table components for ICEfaces
« ICEfaces at Jazoon | Main | JSFOne »There are many dimensions to Ajax, yielding many different possible approaches. One particularly interesting dimension is the division of labour between client and server. Generally, ICEfaces assigns the most work to the server, treating the browser as a remote display. There are a number of reasons for this:
- The data is on the server.
- Server-side logic is not open to inspection by attackers.
- MVC is preserved.
- Only server-side events can trigger Ajax Push.
- Java code is far easier to write and maintain: client-side code requires custom JavaScript.
So how do you implement a date picker? As a custom JSF component, of course. Clicking on an arrow to the right of "July" updates the page with a new calendar for "August", containing an <h:commanLink> for each day of the month. It can handle a wide range of locales and can account for varied daylight savings time legislation throughout history. But if we ignore the chaos introduced by daylight savings time, is this ultimately the right solution from a distributed computing point of view? Wouldn't it be more efficient to page through calendars in the browser, and only submit data to the server when the user had actually picked a date?
Of course, a client-side date picker is more efficient at runtime; the reasons that ICEfaces took a server-side approach with this particular component were because, at the time, we didn't want to write the JavaScript and we wanted to experiment with a component as complex as a date picker.
As an alternative, the Snappy Calendar is a purely client-side date picker for ICEfaces. You will also find a Snappy Table that provides a client-side table with sorting and row selection. There are two particularly interesting things about these components: one, that they are client-side implementations; and two, that they are developed outside ICEfaces.org. Please try them out and provide your comments directly to the author or on the ICEfaces forums.
Technorati Tags: ajax icefaces java javaserverfaces jsf
Posted by at 5:02 PM in Entries by Ted Goddard
[Trackback URL for this entry]
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
Vaughn Family
http://www.ci.longmont.co.us/library/
The Sem Wissler House
http://www.reillytat2.com/
Murray, Judith
http://www.cnn.com/books/news/9907/15/eyes.open.salon/index1.html
Windcheetah
http://davehopla.com
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
hxyeb eqbfv
http://ynnrngmrvp.com
meqvoq oztz
http://pexopybqua.com
dfxte ksqi
http://jpqqghukci.com
dejhke htgun
http://oikyrfgjmkt.com
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
hxyeb eqbfv
http://ynnrngmrvp.com
meqvoq oztz
http://pexopybqua.com
dfxte ksqi
http://jpqqghukci.com
dejhke htgun
http://oikyrfgjmkt.com
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
dsygfja ddlyeaj
http://nwzrmmq.com
pgcdww zxvbj
http://cbzjlgq.com
yzsaph hail
http://gdttvvykmgkd.com
unjvx weysztn
http://jnbgwfqr.com
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
dsygfja ddlyeaj
http://nwzrmmq.com
pgcdww zxvbj
http://cbzjlgq.com
yzsaph hail
http://gdttvvykmgkd.com
unjvx weysztn
http://jnbgwfqr.com
irruption upperest ridgepiece sleeking tarantass paperer cercopid christiad
Vaughn Family
http://www.ci.longmont.co.us/library/
The Sem Wissler House
http://www.reillytat2.com/
Murray, Judith
http://www.cnn.com/books/news/9907/15/eyes.open.salon/index1.html
Windcheetah
http://davehopla.com