First of all congratulation for your hard work
I want to use your maven plugin and all the feature comming with, on my project. I face a problem with some hardcoded value in your plugin.
I start to fix the problems but as I want to share my solutions with you I need your advice:
======================
Issue1 : I'm not able to give the OPTIMIZED_PACKAGE value:
Code: Select all
if(isJSF2()) {
writer.write("\tprivate static final String OPTIMIZED_PACKAGE = \"org.primefaces.component.\";\n");
}
I'dont really understand the need of this value. The only use is in the method 'handleAttribute' present in each component.
Code: Select all
String cname = this.getClass().getName();
if(cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) {
setAttributes = new ArrayList<String>(6);
this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
}
If yes why not allow to give the OPTIMIZED_PACKAGE in the same file we give the COMPONENT_FAMILY ? or build the value like this
Code: Select all
if(isJSF2()) {
writer.write("\tprivate static final String OPTIMIZED_PACKAGE = \"" + component.getComponentFamily() + ".\";\n");
}
I face two other issue with the Widget Interface and AjaxComponent. I can't use my own.. Value are hard-coded in org.primefaces.jsfplugin.digester.Component.
I will share with you my investigation in a second post later.