To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=62418 Issue #:|62418 Summary:|SDK example ControlValidation broken Component:|sdk Version:|680m156 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|samples Assigned to:|fs Reported by:|jsc
------- Additional comments from [EMAIL PROTECTED] Wed Feb 22 02:29:36 -0800 2006 ------- In the SDK example forms/ControlValidation the two samples Date and Time validation are broken. It seems that the internal conversion of Date and Time from VCL to form controls is broken. In VCL it is a representation with longs and in form controls it should be com.sun.star.util.Date | Time. And in the examples you should use the com.sun.star.uno.AnyConverter to get the Any value because using a simple cast won't work in all cases. The Any value can be wrapped in com.sun.star.uno.Any instead of java.lang.Object directly and in this case the cast won't work. for exmaple: com.sun.star.util.Date date = (com.sun.star.util.Date)com.sun.star.uno.AnyConverter(com.sun.star.util.Date.class, _value)); --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]