By Date: <-- -->
By Thread: <-- -->

Problem with hidden fields



Use a hidden text field. 

> -----Original Message-----
> From: itext-questions-admin (at) lists.sourceforge.net 
> [mailto:itext-questions-admin (at) lists.sourceforge.net] On 
> Behalf Of Udo Rader
> Sent: Thursday, February 09, 2006 3:24 PM
> To: itext-questions (at) lists.sourceforge.net
> Subject: [iText-questions] Problem with hidden fields
> 
> Hi,
> 
> so here comes another problem I stumbled upon. After 
> inserting a hidden
> field, the data submitted does not contain any fields. Here's 
> again what
> I am doing:
> 
> ----------CUT----------
> pdfWriter_.getAcroForm().addSingleLineTextField( 
> 				"foo", 
> 				"somevalue", 
> 				base_font, 
> 				text.getFontSize(), 
> 				llx, 
> 				lly, 
> 				rux, 
> 				ruy );
> 
> pdfWriter_.getAcroForm().addHiddenField( "bar", "nothing" );
> 
> pdfWriter_.getAcroForm().addHtmlPostButton( 
> 				"sender" 
> 				label,
> 				null,
> 				url,
> 				base_font, 
> 				text.getFontSize(), 
> 				bllx, 
> 				blly,
> 				brux, 
> 				brul );
> ----------CUT----------
> 
> This way, the data transmitted doesn't contain neither
> the foo nor the bar value.
> 
> If I comment out the addHiddenField, the "foo" field data
> is transmitted.
> 
> So is this a bug or am I again missing something?
> 
> Thanks in advance
> 
> Udo Rader
> 
> -- 
> bestsolution.at EDV Systemhaus GmbH
> http://www.bestsolution.at
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions