Question 1)
I would like to know whether ruby on rails have gems with functionality similar to primefaces.
why i am asking is
if you go with primefaces ( http://www.primefaces.org/showcase-labs/ui/home.jsf ) developer no need to worry about javascript or jquery stuffs.
As far as my knowledge JSF is an spec , on based the spec various implementations available , primefaces is an ui framework for those implementations , primefaces has so many components based on jquery and javascript libs. More or less primefaces simply serves as a javascript wrapper.
I you use primefaces , you mainly concentrate on business logic no need to worry about UI.
i was heavily inspired by ruby on rails approach and there are lot of gems available.
what my question is , Is there an gem or UI framework available for ruby on rails similar to UI magic driven by primefaces
note: i am not looking for pure jquery or dojo stuffs, i am looking for UI component driven stuffs for ruby on rails. Guys who worked on projects using primefaces and projects using rails will understand my question 100 %.
Question 2)
I would like to know list of gems related to user interface. what i am asking is inorder to create very niche user interface on ruby on rails what are the stuffs(frameworks or gems) needed.
Many parts of the previous answer simply aren’t true. It sounds like the answer-er hasn’t used JSF2.0, which is what Primefaces is. JSF v1 was horribly complex and an awful experience for everyone. JSF2.0 is nothing like JSF v1, so be careful about the naysayers who admit not using JSF2.0.
JSF2.0 is an awesomely productive and fun web framework to use. It’s not “corporate-ity” at all (but gets that reputation from JSF v1). It’s lightweight and stays out of your way. Because it’s Java (which is eventually compiled, not interpreted), it’s also pretty quick.
At it’s core is a templating framework: You’re not limited to components, by default it’s free form HTML. You have the option to use smart tags called components that can maintain state through the request lifecycle, which is handy for doing things like validation and ajax (both are really simple tasks in JSF2.0).
JSF2.0 also manages lifecycles of beans (small stateful objects you define) that can be bound to different scopes, like request, the view, session, or even application. Controllers are a simliar concept in Rails, but JSF2.0 doesn’t have the concept of routes, instead you pass function objects using an EL, so it has the concept of actions instead. This makes it incredibly free-form; you can use whatever software pattern you like: I like MVVM over MVC, and I tend to use that pattern, whereas Rails is fairly strict MVC.
Component libraries are a bundle of java code and html fragments that can be plopped onto the page. Primefaces is a component library of commonly used UI widgets. Essentially, you write some JSF/HTML code and it drivers JQuery UI on the browser.
Could you use JSF2.0 with Ruby? I bet you could using JRuby. If it is possible to annotate Ruby objects with the JSF2.0 annotations (like @ManagedBean), I’m fairly certain you could make this work with a little experimentation.
Good luck and post back if you have any end up doing this!