0 Replies Latest reply on Mar 15, 2011 6:27 AM by kamal perera

    Passing a seam resource bundle message to a facelet

    kamal perera Newbie

      Hi,
      I'm trying to pass a resource bundle message as a parameter to a facelet. But the facelet only displays the key of the message. I tried both,




      <ui:include src="/controls/my-facelet.xhtml">
                         <ui:param name="value"
                           value="#{messages['testMessage']}" />
                     </ui:include>






      <ui:include src="/controls/my-facelet.xhtml">
                         <ui:param name="value"
                           value="#{messages.testMessage}" />
                     </ui:include>



      my facelet is,





      <ui:composition........>
       <h:graphicImage value="/image/msginfo.png" id="exp#{id}" />
         <rich:toolTip mode="client" for="exp#{id}">
            <h:panelGrid style="width:250px">
            <h:outputText value="#{value}" />
            </h:panelGrid>
         </rich:toolTip>
      </ui:composition>
      






      but neither of the above worked. when I printed the value in the facelet it displays as testMessage.


      Any help about this?


      Thanks