Thanks for the quick reploy Isomorphic, that works perfectly. Here is what I did:
Code:
field = new DataSourceTextField( "AIRPORT", "Airport ID", 60 );
TextItem ti = new TextItem();
ti.setCharacterCasing( CharacterCasing.UPPER );
field.setEditorType( ti );
We are using a FilterBuilder in our project, and we would like to be able to specify that some of the input fields be uppercase only.
I've looked at the FilterBuilder API, and I don't see a way to get at the underlying FormItems so that I can set a FormItemInputTransformer on them, or likewise a way to get at the underlying TextItems to call setCharacterCasing().
I've also looked at the DataSourceTextField's that are part of the DataSource we are using with the FilterBuilder, and I don't see anything there either.
Leave a comment: