GithubHelp home page GithubHelp logo

primefaces-test's Introduction

PrimeFaces icon

PrimeFaces Test

This is a sample maven project that uses Latest PrimeFaces Release version. If you have a PrimeFaces issue, please download or fork this project. Then, you should change these files by yourself so that PrimeFaces Team can see your problem. Finally, you can send a link or attach the project. Please make sure that project is runnable with the command below.

You can execute the sample with mvn jetty:run command and hit http://localhost:8080/ to run the page.

JSF Versions


Per default the application uses Mojarra 2.2.x. You can also use other versions with the available maven profiles: myfaces22, myfaces23, myfaces23next, mojarra23

mvn clean jetty:run -Pmyfaces22

mvn clean jetty:run -Pmyfaces23

mvn clean jetty:run -Pmyfaces23next

mvn clean jetty:run -Pmojarra22

mvn clean jetty:run -Pmojarra23

Server Port


By default the application runs on port 8080 but if you would like to use a different port you can pass -Djetty.port=5000 like:

mvn clean jetty:run -Djetty.port=5000

Jakarta EE10 Version


The branch jakarta contains a PrimeFaces Test setup to run again Jakarta EE10 profile using Jetty 11. You can also use other versions with the available maven profiles: mojarra40, myfaces40

mvn clean jetty:run -mojarra40

mvn clean jetty:run -myfaces40

JPA Lazy Datatable


The branch jpa contains a PrimeFaces Test setup to run with JPA using the JPA LazyDatatable advanced example.

Visual Studio Code Quickstart


See the quickstart guide for running in Visual Studio Code for more information.

primefaces-test's People

Contributors

cagataycivici avatar dependabot[bot] avatar flipwarthog avatar jepsar avatar jxmai avatar melloware avatar mertsincan avatar onursenture avatar tandraschko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

primefaces-test's Issues

Can't resolve dependencies since CDI

I'm having this problem since I synced with the last version of primefaces-test, and I've tried with 2 different networks, same problem:

[WARNING] The POM for org.apache.geronimo.specs:geronimo-jcdi_2.0_spec:jar:1.0.1 is missing, no dependency information available
[WARNING] The POM for org.apache.geronimo.specs:geronimo-interceptor_1.2_spec:jar:1.0 is missing, no dependency information available
[WARNING] The POM for org.apache.geronimo.specs:geronimo-annotation_1.3_spec:jar:1.0 is missing, no dependency information available
[WARNING] The POM for javax.faces:jsf-api:jar:2.0 is missing, no dependency information available
[WARNING] The POM for org.apache.openwebbeans:openwebbeans-impl:jar:2.0.5 is missing, no dependency information available
[WARNING] The POM for org.apache.openwebbeans:openwebbeans-jsf:jar:2.0.5 is missing, no dependency information available
[WARNING] The POM for org.apache.openwebbeans:openwebbeans-web:jar:2.0.5 is missing, no dependency information available
[WARNING] The POM for org.apache.openwebbeans:openwebbeans-el22:jar:2.0.5 is missing, no dependency information available

ClassNotFoundExceptions in jakarta branch

It is currently not possible (for me) to run the current jakarta branch:

>mvn clean jetty:run -Pmyfaces40
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 20
[INFO]
[INFO] -------------------< org.primefaces:primefaces-test >-------------------
[INFO] Building primefaces-test 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ primefaces-test ---
[INFO]
[INFO] >>> jetty:12.0.3:run (default-cli) > test-compile @ primefaces-test >>>
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ primefaces-test ---
[INFO] skip non existing resourceDirectory C:\Users\username\Downloads\primefaces-test-jakarta\src\main\resources
[INFO] Copying 1 resource from src\main\webapp\WEB-INF to target
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ primefaces-test ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 3 source files with javac [debug release 11] to target\classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ primefaces-test ---
[INFO] skip non existing resourceDirectory C:\Users\username\Downloads\primefaces-test-jakarta\src\test\resources
[INFO]
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ primefaces-test ---
[INFO] No sources to compile
[INFO]
[INFO] <<< jetty:12.0.3:run (default-cli) < test-compile @ primefaces-test <<<
[INFO]
[INFO]
[INFO] --- jetty:12.0.3:run (default-cli) @ primefaces-test ---
[INFO] Configuring Jetty for project: primefaces-test
[INFO] Classes = C:\Users\username\Downloads\primefaces-test-jakarta\target\classes
[INFO] Context path = /primefaces-test
[INFO] Tmp directory = C:\Users\username\Downloads\primefaces-test-jakarta\target\tmp
[INFO] web.xml file = file:///C:/Users/username/Downloads/primefaces-test-jakarta/target/web.xml
[INFO] Webapp directory = C:\Users\username\Downloads\primefaces-test-jakarta\src\main\webapp
[INFO] Web defaults = org/eclipse/jetty/ee10/webapp/webdefault-ee10.xml
[INFO] Web overrides =  none
[INFO] jetty-12.0.3; built: 2023-10-27T03:25:22.284Z; git: a873259fd5af141dedaa6c7fa8fe8fbdedce0d61; jvm 17.0.5+8-LTS
[WARNING] The XML schema [XMLSchema.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
[WARNING] The XML schema [datatypes.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
[WARNING] The XML schema [xml.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
[INFO] CdiSpiDecorator enabled in [email protected]@4c513c2c{/primefaces-test,/primefaces-test,b=[file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-impl/4.0.1/myfaces-impl-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-api/4.0.1/myfaces-api-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/primefaces/primefaces/13.0.3/primefaces-13.0.3-jakarta.jar!/META-INF/resources/],a=STOPPED,h=oeje10s.SessionHandler@3068a1c9{STOPPED}}{file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/}
Nov. 22, 2023 11:21:51 AM org.jboss.weld.environment.servlet.EnhancedListener onStartup
INFO: WELD-ENV-001008: Initialize Weld using ServletContainerInitializer
Nov. 22, 2023 11:21:51 AM org.jboss.weld.bootstrap.WeldStartup <clinit>
INFO: WELD-000900: 5.1.2 (Final)
Nov. 22, 2023 11:21:52 AM org.jboss.weld.bootstrap.WeldStartup startContainer
INFO: WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
Nov. 22, 2023 11:21:52 AM org.jboss.weld.event.ExtensionObserverMethodImpl checkRequiredTypeAnnotations
INFO: WELD-000411: Observer method [BackedAnnotatedMethod] org.apache.myfaces.config.annotation.CdiAnnotationProviderExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
Nov. 22, 2023 11:21:52 AM org.jboss.weld.environment.jetty.JettyContainer initialize
INFO: WELD-ENV-001213: Jetty CDI SPI support detected, CDI injection will be available in Listeners, Servlets and Filters.
Nov. 22, 2023 11:21:53 AM org.apache.myfaces.webapp.MyFacesContainerInitializer onStartup
INFORMATION: Using org.apache.myfaces.webapp.MyFacesContainerInitializer
[INFO] Session workerName=node0
[INFO] Started oeje10mp.MavenWebAppContext@4c513c2c{/primefaces-test,/primefaces-test,b=[file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-impl/4.0.1/myfaces-impl-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-api/4.0.1/myfaces-api-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/primefaces/primefaces/13.0.3/primefaces-13.0.3-jakarta.jar!/META-INF/resources/],a=AVAILABLE,h=oeje10s.SessionHandler@3068a1c9{STARTED}}{file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/}
Nov. 22, 2023 11:21:53 AM org.apache.myfaces.config.DefaultFacesConfigurationProvider getWebAppFacesConfig
INFORMATION: Reading config /WEB-INF/faces-config.xml
Nov. 22, 2023 11:21:53 AM org.apache.myfaces.util.ExternalSpecifications lambda$static$1
INFORMATION: MyFaces Core CDI support enabled
Nov. 22, 2023 11:21:53 AM org.apache.myfaces.util.ExternalSpecifications lambda$static$0
INFORMATION: MyFaces Core Bean Validation support disabled
Nov. 22, 2023 11:21:53 AM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFORMATION: Running on PrimeFaces 13.0.3
Nov. 22, 2023 11:21:53 AM org.apache.myfaces.webapp.FacesInitializerImpl initFaces
INFORMATION: MyFaces Core has started, it took [817] ms.
[INFO] Started oeje10mp.MavenWebAppContext@4c513c2c{/primefaces-test,/primefaces-test,b=[file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-impl/4.0.1/myfaces-impl-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-api/4.0.1/myfaces-api-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/primefaces/primefaces/13.0.3/primefaces-13.0.3-jakarta.jar!/META-INF/resources/],a=AVAILABLE,h=oeje10s.SessionHandler@3068a1c9{STARTED}}{file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/}
[INFO] Started ServerConnector@4094adba{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
[INFO] Started oejs.Server@77a33246{STARTING}[12.0.3,sto=0] @7788ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.210 s (Wall Clock)
[INFO] Finished at: 2023-11-22T11:21:54+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty.ee10:jetty-ee10-maven-plugin:12.0.3:run (default-cli) on project primefaces-test: Error starting jetty: Error forming scan list: java.nio.file.NoSuchFileException: C:\Users\username\Downloads\primefaces-test-jakarta\src\main\conf\jetty-env.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[←[1;34mINFO←[m] Stopped oejs.Server@77a33246{STOPPING}[12.0.3,sto=0]
[←[1;34mINFO←[m] Stopped oeje10mp.MavenWebAppContext@4c513c2c{/primefaces-test,/primefaces-test,b=[file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-impl/4.0.1/myfaces-impl-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/apache/myfaces/core/myfaces-api/4.0.1/myfaces-api-4.0.1.jar!/META-INF/resources/, jar:file:///C:/Users/username/.m2/repository/org/primefaces/primefaces/13.0.3/primefaces-13.0.3-jakarta.jar!/META-INF/resources/],a=AVAILABLE,h=oeje10s.SessionHandler@3068a1c9{STOPPED}}{file:///C:/Users/username/Downloads/primefaces-test-jakarta/src/main/webapp/}
[←[1;34mINFO←[m] Stopped ServerConnector@4094adba{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Exception in thread "JettyShutdownThread" java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
        at org.eclipse.jetty.io.ManagedSelector.doStop(ManagedSelector.java:135)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
        at org.eclipse.jetty.io.SelectorManager.doStop(SelectorManager.java:280)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
        at org.eclipse.jetty.server.AbstractConnector.doStop(AbstractConnector.java:370)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStop(AbstractNetworkConnector.java:82)
        at org.eclipse.jetty.server.ServerConnector.doStop(ServerConnector.java:241)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
        at org.eclipse.jetty.ee10.maven.plugin.MavenServerConnector.doStop(MavenServerConnector.java:113)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
        at org.eclipse.jetty.server.Server.doStop(Server.java:658)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
        at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:136)
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ManagedSelector$CloseConnections
                ... 17 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
                ... 17 more
        Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/compression/CompressionPool$Entry
                at org.eclipse.jetty.util.compression.CompressionPool.doStop(CompressionPool.java:112)
                at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
                at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
                at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
                at org.eclipse.jetty.server.Handler$Abstract.doStop(Handler.java:480)
                at org.eclipse.jetty.server.Server.doStop(Server.java:669)
                ... 2 more
                Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/compression/CompressionPool$Entry
                        ... 8 more
                Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/ee10/plus/webapp/EnvConfiguration$Dumper
                        at org.eclipse.jetty.ee10.plus.webapp.EnvConfiguration.deconfigure(EnvConfiguration.java:153)
                        at org.eclipse.jetty.ee10.webapp.WebAppContext.stopContext(WebAppContext.java:1235)
                        at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStop(ServletContextHandler.java:1074)
                        at org.eclipse.jetty.ee10.maven.plugin.MavenWebAppContext.doStop(MavenWebAppContext.java:352)
                        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
                        at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
                        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
                        at org.eclipse.jetty.server.Handler$Abstract.doStop(Handler.java:480)
                        ... 7 more
                Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.ee10.plus.webapp.EnvConfiguration$Dumper
                        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
                        ... 15 more
                Suppressed: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ReservedThreadExecutor$ReservedThread
                        at org.eclipse.jetty.util.thread.ReservedThreadExecutor.doStop(ReservedThreadExecutor.java:196)
                        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
                        at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
                        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
                        at org.eclipse.jetty.util.thread.QueuedThreadPool.doStop(QueuedThreadPool.java:236)
                        ... 7 more
                Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread
                        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
                        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
                        ... 12 more
        Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.compression.CompressionPool$Entry
                at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
                at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
                at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
                at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
                ... 8 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.ManagedSelector$CloseConnections
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 17 more

Enable PrimeFaces Features

By default we should enable PF features so we can test how the app should really be tested. PR coming to add the following:

    <!-- Enable FontAwesome -->
    <context-param>  
        <param-name>primefaces.FONT_AWESOME</param-name>  
        <param-value>true</param-value>  
    </context-param> 

    <!-- Enable PrimeFaces BeanValidation to HTML -->
    <context-param>
        <param-name>primefaces.TRANSFORM_METADATA</param-name>
        <param-value>true</param-value>
    </context-param>
    
    <!-- Enable PrimeFaces Script optimization to render scripts after DOM loads -->
    <context-param>
        <param-name>primefaces.MOVE_SCRIPTS_TO_BOTTOM</param-name>
        <param-value>true</param-value>
    </context-param>
    
    <!-- Enable PrimeFaces partial ajax submit to reduce network traffic  -->
    <context-param>
        <param-name>primefaces.SUBMIT</param-name>
        <param-value>partial</param-value>
    </context-param>

f:selectItem itemLabel selected won't always be displayed in 'p:column h

I have created '<p:selectManyCheckbox id="carColumns" value="#{carService.selectedItems}"> as five versions of 'selectManyCheckbox' .

Each of 'Year, Brand, Colour, Price, Sold' as 'f:selectItem itemLabel="xxxxx" itemValue="xxxxx"/> (see the five)

My 'p:dataTable' show each of the 'Year, Brand, Colour, Price, Sold' are five as:
CODE: SELECT ALL

<p:column headerText="Year" sortBy="#{car.year}" rendered="#{carService.yearColumnRendered}">
<h:outputText value="#{car.year}"/>
</p:column>
As each of the 'Year, Brand, Colour, Price, Sold' are selected (all the 100 for each) are displayed. If I then un-click one of the 'p:dataTable' then the list is removed. When I try to click the list of it won't show it again.

i.e Selected 'Brand', clicks it and in 'p:column headerText' and shows the 100 rows of 'Brand'. I un-click the 'Brands' they all disappear. When I click on ''Brand'' they are not shown this time.

primefaces-test-master.zip

Cant enable JSF 2.3 features, mainly EL and CDI artifacts injection

I'm trying to use the code below to activate JSF 2.3 and exception is thrown

java.lang.RuntimeException: javax.faces.FacesException: Unable to find CDI BeanManager

package org.primefaces.test;

import javax.faces.annotation.FacesConfig;
import javax.faces.annotation.FacesConfig.Version;

@FacesConfig(version = Version.JSF_2_3)
public class JSFConfigurator {
}

Make JSF "provided"

Deploying to Wildfly, I was getting this error:
The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined

and it went away when I added scope provided for the org.glassfish:javax.faces:2.2.7 dependency

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.