The JSF components of libs generate awful html code. This is not normal, but is it acceptable?

When I was developing web applications with jsp / jstl and jQuery, I used good html code to write, separate from styles and scripts. JSP has inserted some odd spaces and blank lines, but nothing else.

Now I am trying to develop using jsf. JSF has many libraries for creating RIAs with many components, so it should be much faster to develop web applications with jsf and some component libraries.

But all the libraries that I have already tried generate awful html mixed with scripts mixed with some additional hidden inputs and styles inside html. These libraries also often offer table layout (with various Panel, GridPanel, and other components).

It looks awful to me, and I can't watch such a big mess in my html.

I don't know for sure, but I think ASP.NET generates something similar.

So the question is: is this a new standard in web development - creating fast and dirty html?

+5
source share
3 answers

JSP has inserted some odd spaces and blank lines, but nothing else.

This is a gap by the way. In Tomcat and clones, all you have to do is set the JspServletinit parameter trimSpacesto true.

, , html, , html. ( Panel, GridPanel ).

, JSF. , , Tomahawk (, /) (, ).

, CSS : styleClass JSF. CSS style. JSF colonseparated ( - CSS), , . . #formid\:inputid { background: gray; }.

, on*. jQuery, Javascript. Javascripts, JSF, h:commandLink, <a>, POST. // , . h:commandButton h:outputLink .

, JSF 1.2 HTML- . <div> . , JSF <h:panelGroup layout="block"> HTML <div>. <h:panelGrid> .

, , ASP.NET .

.

, : - - html?

, .

+2

JSF . " html". , , , - .

PageSpeed ​​ YSlow MyFaces/RichFaces, CSS JS ( HTTP-), .

+2

, HTML JSF ( ) , - .

, , , Internet Explorer 6+, Firefox, Opera, Chrome... HTML , " "...

0
source

All Articles