Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am developing an application using WebSocket to exchange messages; it is based on JSF 2.0.0, but the idea is similar and HTML5 have WebSocket support.

Is the only difference between those language the used tag and the syntax? Is the logic behind it the same?

I wonder if there any converter for this.

share|improve this question
    
Thanks for editing –  Leo Chan Mar 13 '12 at 13:55

1 Answer 1

up vote 2 down vote accepted

I think your general misunderstanding is that JSF 2 and HTML 5 are seperate technology stacks and this doesn't have to be the case. JSF 2 is a specification for server based lifecycle, server side events and streamlined Ajax based web controls. In this way it is similar to ASP.NET. There are many different implementations of this (Eg. Mojarra, MyFaces, etc...) and these can in turn be supplemented by third-party component libraries that enhance the control set (Eg. Primefaces, IceFaces, RichFaces, PrettyFaces, etc...)

A JSF component will be defined by server side code but renders to HTML markup on the web page. This means that JSF components can render HTML5 and there are real examples of this: http://www.primefaces.org/showcase/ui/fileUploadHome.jsf

So there is really nothing to "convert". One can create a custom or composite JSF component that renders any HTML5 content that you desire.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.