Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='UTF-8' ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://xmlns.jcp.org/jsf/html">
- <h:head>
- <title>Facelet Title</title>
- </h:head>
- <h:body>
- <br/><br/>
- <h:form>
- <h:commandButton action="result" value="value one"/>
- <h:commandButton action="result" value="value two"/>
- <h:commandButton action="result" value="value three"/>
- <h:outputText value="#{hCjsf.getsome}"/> - после добавления этой строки возникает ошибка.
- </h:form>
- </h:body>
- </html>
- //-------------------------------------------------
- package packForTestT;
- import javax.faces.bean.ManagedBean;
- import javax.faces.bean.RequestScoped;
- @ManagedBean
- @RequestScoped
- public class HCjsf {
- HiberHelper helper;
- public HCjsf() {
- helper = new HiberHelper();
- }
- public String getsome() { - это пытаюсь получить
- return "WORKED";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement