I am trying to set the displayValueOnly property to true for a textarea component in the backing bean Java code. But it does not work. The widget is still displayed. The same works when I give t:inputTextArea directly in the JSP. All the components that I am creating in the backing bean are from org.apache.myfaces.component.html.ext package. Is this the correct package to use the displayValueOnly? I need to create components in the backing bean since I do not know the number of components until run time. The textarea is embedded in a panelGrid which is also from the same package.
I could not know the difference. When I tried, both approaches seemed to create the component. Could you please explain how one should decide upon choosing an approach to creating the components given a situation. But in either of the approaches, the displayValueOnly is still not working.
Thanks in advance.
Joined: Feb 23, 2007
were you able to solve your issue? I'm having the same problem here. I just posted a bug to Apache because I cannot see any way to get this working.
subject: MyFaces displayValueOnly from Java does not work