Clear button appears on readonly inputfield

UI Components for JSF
Post Reply
tdevos
Posts: 60
Joined: 29 Mar 2011, 09:12

23 Jun 2014, 15:36

If you create an input field like this:

Code: Select all

<p:inputText id="myId" value="#{myBean.myValue}" readonly="true" />
Then the clear button is rendered on this inputText. Clicking this button clears out the value, even on a readonly field.

Seems like a bug.

User avatar
daorte
Posts: 35
Joined: 14 Feb 2012, 18:43
Location: Spain

06 Oct 2014, 21:50

Hi!

I don't know if this is a bug or the real behavior, but i use a textArea as a workaround

Code: Select all

<p:inputTextarea value="#{yourBean.yourValue}" readonly="true" autoResize="false" rows="1" style="resize: none !important;"/>
Hope this help!
PrimeFaces 5.1
WildFly 8.2

rhianna
Posts: 1
Joined: 20 Apr 2015, 06:56

20 Apr 2015, 07:02

Note I am using the primefaces.mobile.THEME and the jar is in the classpath. Do theme even work with primefaces mobile

seems like lots of people are having difficult time of this. In primefaces 3.5 worked extremely easy now it is extremely difficult

Any help is truly appreciated
Sign up with certkillerccna for getting incredible online test king courses 350-018 dumps and We also provide best www.tabor.edu and selftestengine with guaranteed success in Florida Institute of Technology

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests