2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Tom Eugelink - tbee XML logic? 2004-05-13 22:48 I am a bit confused about the semantics of the XML used. From a user perspective, if I want a textfield somewhere I would expect to have to enter something like: <textfield x="0" y="4" width="50" height="15" textAlignment="Right" class="java.lang.String" > <![CDATA[$F{name}]]> </textfield> Straight forward, I think. But instead I have to enter 3x as much "code". <textField> <reportElement x="0" y="4" width="50" height="15" /> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"> <![CDATA[$F{name}]]> </textFieldExpression> </textField> Why? By: Mark Engstrom - me2kme RE: XML logic? 2004-05-14 01:20 In it's simplest form you don't need the CDATA element. That reduces it a bit. <textField> <reportElement x="0" y="4" width="50" height="15" /> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String">$F{name} </textFieldExpression> </textField> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now