You won't have any new XFA functionality in the near future. Unless you have 
a xml workflow and really need to use Designer, use standard acroforms.

Paulo

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Friday, July 06, 2007 4:27 PM
Subject: Re: [iText-questions] Designer & RadioButton work-around?


>
> OK, I have made some progress but still not quite where I would like.  I 
> have discovered you need to do the following:
>
>          Document xfaDoc = acroFields.getXfa().getDomDocument();
>          /* Add entry node below to appropriate forms */
>          acroFields.getXfa().setDomDocument(modifiedXfaDoc);
>          acroFields.getXfa().setXfa(stamper.getWriter());
>
> I also learned that the AcroFord button you are adding needs to align 
> (naming wise) to where you are placing in the Xfa XML.  So in this case I 
> have created a button using the name: 
> NewAccountForm[0].Page1[0].submitPost[0]
>
> Then in the XML I had to insert a node into the 
> xdp:xdp/[EMAIL PROTECTED]'NewAccountForm']/[EMAIL PROTECTED]'Page1'] with XML:
> <field name='submitPost'>
>  <event activity='click'>
>     <submit format='formdata' 
> target='http://localhost:8080/myapp/myservlet' encoded='UTF-8' />
>  </event>
> </field>
>
> If I switch the format, in some cases it posts and others it isn't.  In 
> any case I can't figure out the combination that delivers the same result 
> to my servlet which was:
> PdfAction.createSubmitForm(argButtonAction, null /* All Fields */, 
> PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_INCLUDE_NO_VALUE_FIELDS )
>
> Does anyone have suggestions on how I can format my XML to deliver this 
> type of result?  Also I have noticed a number of changes in SVN relating 
> to form processing and XFA, so do you guys recommend I stick away from the 
> XFA API stuff until the next release since it will probably be in flux 
> until all functionality has been added?
>
> Sorry for the long e-mail again ;-)
> Shane


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to