Discussion: Can JSF be used also for websites?

Hi all,

I'm just a beginner using JSF but so far I've noticed that the navigations rules tend to be a little cumbersome. Sure, for webapps where you're going to use them in sort of a linear fashion (login, select an option, fill a form, validate it, logout) it's very helpful.

But how about public access websites where people might bookmark a page and return to it later? I tried to access a page directly an it gave me a navigation error.

Do you think that a website like Amazon.com could be done with JSF? I mean, where you could bookmark a specific product, and access some areas of the website without being logged in and when you're logged in these same areas expose additional features.

Can JSF be used for something like that or would you recommend something else (Java based).

Thanks, and I hope I made myself clear :P

[869 byte] By [Eliseo_Sotoa] at [2007-10-2 8:28:38]
# 1
Hi,Sure, you can access JSF page directly from any bookmarsk.Login is not specific to JSF. and Navigation handling is not a problem in this issue.ex : your home page ?Regards,Sebastien Degardin.
sdegardina at 2007-7-16 22:29:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
From my little experience so far the problems with JSF that it is slower than page that was written in JSP.
dudushra at 2007-7-16 22:29:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hi,Note that, you can work without navigation handling an action in JSF.Do static link as in HTML. ("h:outputLink").Regards,Sebastien Degardin.
sdegardina at 2007-7-16 22:29:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Sure, to a static jsf page. But what about linking to a particular dynamic entry from a dynamic list?

For instance, in html:dataTable listing of products, I want a link to the product's detail page. I want to be able to copy, bookmark, send the link to a coworker, so they can see the product detail page as well.

It seems to me that I'd have to use a completely separate MVC framework to use GET-style idempotent URLs.

How would the JSF managed beans behind the product detail page work if they're connected only through javascript form POST submissions and JSF bean state?

dave.claya at 2007-7-16 22:29:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Yeah Dave, seems kind of hard and that's why I'm trying some other alternatives like the Spring Framework and then use JSF with that. http://www.springframework.org/The sad thing is that it has a steep learning curve
Eliseo_Sotoa at 2007-7-16 22:29:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...