Integration Docx4j inside a LC ES4 Component

Avatar

Avatar

tommyc11112341

Avatar

tommyc11112341

tommyc11112341

05-05-2020

Hi I'm trying to integrate docx4j inside a custom component. The component works well but when I release the component on workbench docx4j doesn't work as I except. There is any resource somewhere for integrating docx4j in a Livecycle component?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

11-05-2020

The very first thing, in this case, to be checked should be that the dependency that you inject outside the workbench to make it work will those be available to the component when it runs on the server. @tommyc11112341 

 http://aem.matelli.org/livecycle-es4-custom-component-creation/

Answers (1)

Answers (1)

Avatar

Avatar

tommyc11112341

Avatar

tommyc11112341

tommyc11112341

22-05-2020

Hi @Mayank_Gandhi I follow this steps:

 

1. Create the components in a standard way

2. Docx4j last version 8.1.6 and I use the ReferenceImpl

3. Inserted Docx4j in a dedicated folder in the project /lib/dependencies

4. Update the build script of Ant

5. Update the component.xml with all dependencies (in particular the creation of Jar file section)

 

The best way I find is using the ReferenceImpl of Docx4j. If you need more steps let me know.