Proposal Calendar component with readOnlyInputText="false"

UI Components for JSF
Post Reply
aleajax
Posts: 10
Joined: 28 Feb 2010, 11:17

08 Mar 2010, 19:00

Now the tag readOnlyInputText is true for default but this has the big disadvantage that after choosing a date is no longer possible to reset the field.
Mistake during the input happen often with customers ..., so i think could be better avoid attacks panic from the start. :mrgreen:

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Mar 2010, 02:50

Yes, you are definitely right, any suggestions?

aleajax
Posts: 10
Joined: 28 Feb 2010, 11:17

09 Mar 2010, 08:53

My suggestion will be change the default from true to false directly on the code on that component.
Perhaps on CalendarTag.java
public void release(){
....
this._readOnlyInputText = false;
}
This time i haven't tried if this change is correct or not.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Mar 2010, 17:27

Makes sense actually, yes.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests