PrimeFaces components are not rendered in browser in spite of dependency being present

前端 未结 4 2128
北海茫月
北海茫月 2021-01-14 16:45

I\'m developing a JSF web application with PrimeFaces 3.5 on Eclipse 4.3. There are no compiletime or runtime errors and the application deploys successfully. However, I can

4条回答
  •  盖世英雄少女心
    2021-01-14 17:37

    1.
    When ever you are referring to Managed Bean properties from JSF components, use correct syntax for JSF EL statements.

    #{bean_name.property}
    

    In your code you are forgetting to provide #{}.
    For example at line #15 in login.xhtml use :

    
    

    2.
    You are keeping inside . Its not a good practice.
    Keep out side .
    Actual structure would be:

    
    
    
    
         
            
            
    
         
           
         
    
    

    3.
    You may be getting exception in ManagedBean LoginBean.java class.
    Please post the code instead of screenshots.

提交回复
热议问题