I'm doing a JSF2 project. I use mojarra 2.x, PrimeFaces 2.2RC2, Tomcat 6.x and Google Guice.
For the moment I use commandlink to navigate through my site, so everytime I want to reload, the navigator ask for resubmit value. I see on the net that it's possible to redirect. Does it better to use outputlink or commandlink for navigation?
Many times I use action with parameter like this:
<:commandlink action="#{bean.doSomething(item)}" />
This is good or bad ?
Is there is some conventions in JSF for naming action, properties? Or what's your convention?
When I write a xhtml page, does it better to use only components or just when necessary ?
Example
#{bean.foo}
or
<h:outputText value="#{bean.foo}" />
What about the use of JSTL tags like
<c:if>
? I use some because I had some problems when I use<ui:fragment rendered="">
during restoring view.