Skip to main content

Posts

14. Primefaces Dialog Framework beginner's problem

0. Introduction After struggling about for some days, I noticed that documentation has to be read! (Evidently) But this documentation  needs some revision, spacially what matters Dialog Framework. I have forgotten to enclose this code in my faces-config.xml file! <application> <action-listener> org.primefaces.application.DialogActionListener </action-listener> <navigation-handler> org.primefaces.application.DialogNavigationHandler </navigation-handler> <view-handler> org.primefaces.application.DialogViewHandler </view-handler> </application> Now everything works as scheduled when copying the Primeface code in the Primefaces Show . This is a beginner's error! Sorry and happy coding!
Recent posts

12. Migrating a JSF to Maven. Possible problems

Some problems may occur: 1 . If you are copying a project folder from a source into an elder project, be carefull that some different classes may share the same   @Named (value = " shared name ") . If you run the project, the server may not been able to start up! The error is SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/OpenWebMaven]] You should go over and see some clue of the error: Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous . Name lang resolves to beans: [Managed Bean [class openadmin.util.lang.LangType] with qualifiers [@Default @Any @Named], Managed Bean [class openadmin.util.lang.LangTypeEdu] with qualifiers [@Default @Any @Named]] ----------------------------------------------------------------------------------- 2 . If you

11. JSF.. What about Java 9?

This post NEEDS has been UPDATED !!! Java 9 is a bit more complicated to install than java 8, and needs Eclipse Oxygen v2 or higher. But take into account that it is adviseable to install Eclipse after installing Java 9!!! 1. Installing Java 1.9 Lets follow the steps of Shahrukh Aslam . 1 2 3 4 5 6 7 8 9 10 11 #download repository sudo add-apt-repository ppa:webupd8team/java #update reposotory sudo apt-get update #install sudo apt install oracle-java9-installer #make this java version default sudo apt install oracle-java9-set-default To see all the java versions installed try: sudo update - alternatives -- config java To verify the java version, from a terminal try  java -v ersion  . If you don't get java 9, you should add the following lines to the  /home/ your-user-name /.bashsr  file.   export JAVA_HOME =/ usr / lib / jvm / java - 9 - oracle export PATH = $JAVA_HOME / bin : $PATH 2. Install eclipse Oxygen 2 And install again Lombok