eclipse - JST do not rendering -
good evening everybody.
this first approach java ee , jsf. created today project 1 xhtml page , should show string of value contained in table of database.
<!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://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:body> <h1>#{allperson.name}</h1> </h:body> </html>
what broswer shows me "#{allperson.name}". here code of managedbean
package view; import javax.ejb.ejb; import javax.faces.bean.managedbean; import javax.faces.bean.requestscoped; import session.manager1local; @managedbean @requestscoped public class allperson { @ejb private manager1local m; public string getname() { return m.getall()[0].getnome(); } }
i use:
eclipse kepler , glassfish 4.0
Comments
Post a Comment