Re: initclass bug
[email protected] Sat, 21 May 2005 11:39:33 +0200
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> schrieb am 20.05.05 19:34:57: > > Hi, > > I am trying to use an initclass like the following: > > <formattedtextfield columns="5" > initclass="java.text.SimpleDateFormat(hh)"/> No, the initclass does not accept arguments. The docu states "Class to deliver initialization object", your argument is not only a class name. You may use the following mechanism to get your format into the formattedtextfield: Create a class like MyDateFormatProvider. Write a single public static method named getInstance and return the desired format (either each time a new instance or store it somewhere). Hope it helps, Frank