Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.18 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:h="http://xmlns.jcp.org/jsf/html">
  5.     <h:head>
  6.         <title>Facelet Title</title>
  7.     </h:head>
  8.     <h:body>
  9.         <br/><br/>
  10.         <h:form>
  11.             <h:commandButton action="result" value="value one"/>
  12.             <h:commandButton action="result" value="value two"/>
  13.             <h:commandButton action="result" value="value three"/>
  14.             <h:outputText value="#{hCjsf.getsome}"/>  - после добавления этой строки возникает ошибка.  
  15.         </h:form>    
  16.     </h:body>
  17.    
  18. </html>
  19.  
  20. //-------------------------------------------------
  21.  
  22.  
  23. package packForTestT;
  24.  
  25. import javax.faces.bean.ManagedBean;
  26. import javax.faces.bean.RequestScoped;
  27.  
  28. @ManagedBean
  29. @RequestScoped
  30. public class HCjsf {
  31.  
  32.     HiberHelper helper;
  33.    
  34.     public HCjsf() {
  35.         helper = new HiberHelper();
  36.     }
  37.    
  38.     public String getsome() {  - это пытаюсь получить
  39.         return "WORKED";
  40.     }
  41.    
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement