Board index JavaServer Faces General problem reading bundle in p:dataTable

problem reading bundle in p:dataTable

Components, Ajax Framework, Utilities and More.


Posts: 4
HI
I have a prime faces 1.00 on jsf 1.2 with facelets and richfaces running on Jboss
When i insert a primefaces component the bundle reference does not work
other components like richfaces does work
<p:column sortBy="#{ticket.id}" resizable="true" filterBy="#{ticket.id}">
<f:facet name="header">#{lbl.myrequests_list_id}</f:facet>
<span class="textBold">#{ticket.id}</span>
</p:column>
the column header is not translated where other components like
<h:outputText value="#{lbl.myrequests_need_attention}"
gets translated very well
thanks


Posts: 14905
Location: Cybertron

Do you use f:loadBundle? How do you load your bundle to the page?
PrimeFaces Lead


Posts: 4
i tried
first with
<f:loadBundle basename="com.bundles.labels" var="lbl"/>
and with the faces config
<application>
<resource-bundle>
<base-name>bundles.labels</base-name>
<var>lbl</var>
</resource-bundle>
</application>


Posts: 14905
Location: Cybertron

Can you try;

<f:facet name="header">
    <h:outputText value="#{lbl.myrequests_list_id}" />
</f:facet>
PrimeFaces Lead


Posts: 4
I tried it it works greate
there is no problem to use it like that
is there a reason for it ?
thanks a lot for the quick and good reply
you are great


Posts: 14905
Location: Cybertron

Ah, I missed the part you said h:outputText works.

As I remember. without RichFaces, PrimeFaces can display those properly as well but when RichFaces is around, it prevents PrimeFaces to display these values unless it is displayed with h:outputText.
PrimeFaces Lead


Posts: 4
Ok got it thanks again


Posts: 14905
Location: Cybertron

But this was happening in ajax requests, need to double check. In our app, we have bundles and PrimeFaces with no issues.
PrimeFaces Lead


Return to General