jsf 2 - JSF 2.0 getAttributes for resource bundle values is null -


We have recently upgraded JSF 1.x to JSF 2.x

We One is up and running for 2 years The problem we are facing is:

We have code below in JSF

   & Lt; F: attribute name = "label" value = "# {giams bundle ['lbl.request.summary.desc.validation']}" /> & Lt; / H: inputText>   

We use the necessary converter to get the label value below

  string elementLabel = (string) component.getAttributes (). Get ("label");   

But component label is reverse null. It is not able to get the value when we define the resource bundle name, but when we add a string to F, the attribute tag

please help.

This works fine for me only in Mojarra 2.1.27. However, since you are setting the attribute of an existing component feature, other implementations can not handle naming in the same order.

To fix, I use an existing label attribute:

  & lt; h: inputText id = "descriptionText" required = "true" value = "# {scenarioDesc}" label = "$ {giams bundle [lbl.request.summary.desc.validation ']}" converter = "required converter" / & gt;   

Or, use a different attribute name from 'label'.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -