Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Integration Docx4j inside a LC ES4 Component

Avatar

Avatar
Level 1
tommyc11112341
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
tommyc11112341
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
View profile
tommyc11112341
Level 1

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
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

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
Level 1
tommyc11112341
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
tommyc11112341
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
View profile
tommyc11112341
Level 1

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.