import of component classes fails
Posted: 29 Aug 2018, 18:06
I installed the Serenity theme, and everything worked just fine. This was in Eclipse v. 4.7 (Oxygen).
Hard drive crashed. Had 'eclipse-workspace' folder backed up, but had to reinstall Eclipse on new HD. Found newer version of Eclipse, so installed it, which is v. 4.8 (Photon).
Copied backed up version of eclipse-workspace to new installation. Now, the project seems to be unable to locate specific primefaces classes. Specific error messages, found in the SerenityMenuRenderer.java, are:
The import org.primefaces.component.menu.AbstractMenu cannot be resolved
and
The import org.primefaces.component.api.Widget cannot be resolved
I've tried everything I can think of:
I have the primefaces-6.2.jar in the classpath (as a Maven dependency).
In faces-config.xml I have the component as follows:
<component>
<component-type>org.primefaces.component.SerenityMenu</component-type>
<component-class>org.primefaces.serenity.component.SerenityMenu</component-class>
</component>
What happened between Eclipse 4.7 and 4.8 to break this? What am I doing wrong? (Thanks in advance.)
Hard drive crashed. Had 'eclipse-workspace' folder backed up, but had to reinstall Eclipse on new HD. Found newer version of Eclipse, so installed it, which is v. 4.8 (Photon).
Copied backed up version of eclipse-workspace to new installation. Now, the project seems to be unable to locate specific primefaces classes. Specific error messages, found in the SerenityMenuRenderer.java, are:
The import org.primefaces.component.menu.AbstractMenu cannot be resolved
and
The import org.primefaces.component.api.Widget cannot be resolved
I've tried everything I can think of:
I have the primefaces-6.2.jar in the classpath (as a Maven dependency).
In faces-config.xml I have the component as follows:
<component>
<component-type>org.primefaces.component.SerenityMenu</component-type>
<component-class>org.primefaces.serenity.component.SerenityMenu</component-class>
</component>
What happened between Eclipse 4.7 and 4.8 to break this? What am I doing wrong? (Thanks in advance.)