3
I see in several code examples the views using those tags jsp, what I find very ugly and dirty.
Are there any java web framework that is used in app corporate and can give me normal html, without those ugly tags, like <h:form>
and others?
3
I see in several code examples the views using those tags jsp, what I find very ugly and dirty.
Are there any java web framework that is used in app corporate and can give me normal html, without those ugly tags, like <h:form>
and others?
1
If the JSF version is 1.2 or higher, just type the normal HTML without problems in its source. The transformation is applied only to JSF tags.
If it is version 1.1, use:
<f:verbatim><p>Meu HTML normal</p></f:verbatim>
Browser other questions tagged java jsf
You are not signed in. Login or sign up in order to post.
Complementing the Gypsy response, with JSF 2.2 you can use HTML5 as well.
– Rasshu
@Rodrigosiejabertin but it has those ugly jsp tags ?
– Rod
@Rod If you don’t want to use the JSF components, no. But it is not JSP’s prefix; it serves to identify that a given tag belongs to a given library (defined at the beginning of the document - and if you define it in the Facelets style, you cannot use JSP tags and vice versa). The JSP tags look like this: <% somethings(); %>
– Rasshu
@Rod Take a look at Apache’s Wicket framework as well: http://wicket.apache.org/learn/examples/guestbook.html
– Rasshu
@Rodrigosiejabertin and those tags '<h:Input..' ?
– Rod
@Rod There is no way to escape the prefixes because they define which component is what. And in Wicket the prefix does not go in the tag, but in the attributes. JSF 2.2 supports HTML5 tags; as for Wicket to give the same support, then I don’t know, you have to search.
– Rasshu
@Rod JSF 2.2 behaves similarly to Wicket in this regard. Particularly, I prefer <h:head> to <head jsf:id="head">, which would be using HTML5 with JSF 2.2.
– Rasshu
and why not just <head ? rsrs
– Rod
@Rod in your case, maybe the way is to continue using action based frameworks even kkkkkkkk long life to Struts 1 and Springmvc kk (uses at least one JSTL and tals, because scriplet no one deserves more hehe)
– Marcelo Bezerra bovino