Greetings: I notice sipx GUI seem not to trim leading blanks in data entry fields and validation will fail for numeric fields. This is a minor usability issue since It is not immediately clear to the user what the problem is if he accidentally entered leading blanks.
Is there any gotchas if you make the translator trim leading and trailing space for all numeric data-entry fields? Something like this... translator="translator:integer,trim=true" I will create a jira if there are not objections. Trailing blanks (or not numeric digits) don't cause a problems since they are ignored. See more details below... Thanks, Carson ===================================================================================== See relate jira http://track.sipfoundry.org/browse/XX-7380 Integer validation in sipx: Tapestry validator(for integer) accepting invalid input & not throwing validation error... we can add the "trim=true" to get Tapestry to trim leading and trailing blanks for us. However it seems the whole of sipx does not do this now and I am not sure if should start now. For this particular patch, in the AlarmTypes.html we would add the trim=true like this... <td jwcid="minthresh...@textfield" value="ognl:currentRow.minThreshold" translator="translator:integer,trim=true" validators="validators:required,min=1" displayName="message:threshold" /> "The author works for Avaya, Inc. ("Avaya") who is solely responsible for this email and its contents. All enquiries regarding this email should be addressed to Avaya, Inc. Nortel has provided the use of the Nortel email messaging system to Avaya in connection with this email solely for the purpose of connectivity and Nortel Networks Inc. has no liability for the email or its contents. Avaya's web site is http://www.avaya.com" "The author works for Avaya, Inc. ("Avaya") who is solely responsible for this email and its contents. All enquiries regarding this email should be addressed to Avaya, Inc. Nortel has provided the use of the Nortel email messaging system to Avaya in connection with this email solely for the purpose of connectivity and Nortel Networks Inc. has no liability for the email or its contents. Avaya's web site is http://www.avaya.com"
_______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
