achtal wrote:
> Dear ladies and gentlemen,
>
> my college Joachim Sautter communicated with you, but perhaps he didn't
> describe the problem exactly.
After having read your description, I discovered that this question
is not about FDF! Thank you for using Occam's razor so that we can
finally provide you with an answer!
> One of this manipulations is to create a new
> textfield (called
> ofs_Sonst_Daten) in the form and to give this field a value.
I understood that you were adding a field, and that it didn't show
up in the FDFs, but what I missed, was that the question wasn't
really about FDF, but about the fact that the value was missing.
Your problem is caused by a change introduced on January 31, 2007:
"If a field is required, the value should not be set":
if ((options & REQUIRED) == 0 && !"".equals(text))
field.setValueAsString(text);
The reason for this change can be found here:
http://thread.gmane.org/gmane.comp.java.lib.itext.general/28633/focus=28646
> So the question is: How can I create (on the server-side) a (new) textfield
> and give the field
> a value so that the value appears in the V-attribute of the field
> dictionary?
Drop the REQUIRED flag; it doesn't make sense because:
1. the field HAS a value (the one you filled in)
2. the end user can't change that value (you made it 'read only')
> I sent you the two example-forms.
I had to make a small standalone example to find out what was happening.
I hope you'll do the same if you have similar problems in the future.
--
This answer is provided by 1T3XT BVBA
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar