[JBoss JIRA] Updated: (RF-10093) CDK: NPE when element fires of @JsfComponent is used.
by Konstantin Mishin (JIRA)
[ https://issues.jboss.org/browse/RF-10093?page=com.atlassian.jira.plugin.s... ]
Konstantin Mishin updated RF-10093:
-----------------------------------
Attachment: patch.txt
> 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
> Attachments: patch.txt
>
>
> 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
14 years
[JBoss JIRA] Created: (RF-9987) rich:treeModelRecursiveAdaptor - programmatic model able to support isLeaf() condition on Node
by Lukas Fryc (JIRA)
rich:treeModelRecursiveAdaptor - programmatic model able to support isLeaf() condition on Node
----------------------------------------------------------------------------------------------
Key: RF-9987
URL: https://issues.jboss.org/browse/RF-9987
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.Milestone5
Reporter: Lukas Fryc
With current implementation, you can only model your class similarly to following class:
public class Node {
int number;
List<Node> nodes;
List<Integer> leaves;
public Node(int number) {
this.number = number;
}
public int getNumber() {
return number;
}
public List<Node> getNodes() {
return nodes;
}
public List<Integer> getLeaves() {
return leaves;
}
}
I suggest to introduce mechanism for defining tree model without the need for getLeaves() function and replacing it with boolean isLeaf() method.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years