[
https://issues.jboss.org/browse/RF-10093?page=com.atlassian.jira.plugin.s...
]
Alexander Smirnov commented on RF-10093:
----------------------------------------
Resolved by changing 'fires' attribute syntax:
@JsfComponent(....
fires={@Event(TestEvent.class),(a)Event(value=ValueChangeEvent.class,listener=ValueChangeListener.class)},
For events from dependent libraries, it's necessary to explicitly define listener
interface.
CDK: NPE when element fires of @JsfComponent is used.
-----------------------------------------------------
Key: RF-10093
URL:
https://issues.jboss.org/browse/RF-10093
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: cdk
Affects Versions: 4.0.0.Milestone4, 4.0.0.Milestone5
Reporter: Konstantin Mishin
Assignee: Alexander Smirnov
Fix For: 4.0.0.CR1
Attachments: patch.txt
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
Seem problem is appeared only when @Event and @JsfComponent are used in different
projects.
Maven output:
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.NullPointerException
at java.util.TreeMap.put(TreeMap.java:541)
at java.util.TreeSet.add(TreeSet.java:238)
at
org.richfaces.cdk.generate.freemarker.ModelElementBaseTemplateModel.getImportClasses(ModelElementBaseTemplateModel.java:137)
at
org.richfaces.cdk.generate.freemarker.ModelElementBaseTemplateModel.get(ModelElementBaseTemplateModel.java:111)
at freemarker.core.Environment.getGlobalVariable(Environment.java:976)
at freemarker.core.Environment.getVariable(Environment.java:962)
at freemarker.core.Identifier._getAsTemplateModel(Identifier.java:70)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:87)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.include(Environment.java:1375)
at freemarker.core.Include.accept(Include.java:155)
at freemarker.core.Environment.visit(Environment.java:196)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira