Posts Tagged ‘facelets’

h:outputText in facelets

Wednesday, August 19th, 2009

With facelets you can omit the h:outputText tags. Instead of

    <h:outputText value="#{msg.editEmployee_name}" />

you can just write

    value="#{msg.editEmployee_name}"

message-bundles with facelets

Thursday, July 23rd, 2009

When using message bundles with facelets first, the texts did not show.

The problem is, that you need to bring the

<f:loadBundle basename="de.your.package.messageBundle.MessageResources" var="msg" />

into the right place.

If you use it inside your .jsp, you must place it inside ><ui:define>. Or you could place it into the template file. (I prefer to place it in the template.)