Hello everybody! Can I use import enum in Ivy Designer? Example: like show case of primefaces extension http://www.primefaces.org/showcase-ext/sections/utils/importEnum.jsf Thanks & Regards, asked 29.07.2015 at 05:58 Hap Em |
To make it work you have to ensure, that <pe:importenum> can access the enum class it references in the type attribute. Unfortunately ivy currently only supports the access to converters and managed beans from ivy projects. So the pe:importEnum will raise a classNotFoundException if your enum is defined in an ivyProject. To work around this problem you could copy the compiled enum class into the global webapp classes container: designer/webapps/ivy/WEB-INF/classes or if you already have it in a JAR put it into designer/webapps/ivy/WEB-INF/lib. A big drawback of this solution is, that you no longer can have different version of this classes in multiple PMVs. The class is global available for any PMV in your application. And of course you have to deploy it manually on the server side. To support java sources which will be compiled directly into this global webapp classes you could do the following:
This adventurous project configuration can be inspected within this demo project: demoPrimeImportEnum-globalClasses_51.iar answered 30.07.2015 at 13:39 Reguel Werme... ♦♦ Alex Suter ♦♦ Hello Reguel, Thank you very much for your support! But, the solution is not flexible for us (just like a work around) I hope that ivy can support like we do in eclipse! :) Regards,
(07.09.2015 at 14:28)
Hap Em
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 29.07.2015 at 05:58
Seen: 4,662 times
Last updated: 07.03.2018 at 10:32