jsf - First JavaServerFaces effort -




I am trying to run JSF pages with value from Bean:
Test XHTML:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: h = "http://java.sun.com/jsf/html" & gt; & Lt; H: top & gt; & Lt; Title & gt; Simple JSF Facelet page & lt; / Title & gt; & Lt; / H: top & gt; & Lt; A: Body & gt; & Lt; P & gt; Text: # {testBean.text} & lt; / P & gt; & Lt; / H: Body & gt; & Lt; / Html & gt;  

Testben:

  @ nominated @ sessionsseconds public class TestBen serializable {Private string text; Public TestBean () {text = "text" + new date (); } Public string getText () {return text; } Public Zero Set Text (String Text) {this.text = text; }}  

But when I run this page on zebus, I only get "text:". Page Source:

  & lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head & gt; & Lt; Title & gt; Common JSF Facet Page & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P & gt; Text: & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Where can the problem be? I jboss-as-7.1.1 I am using the Final and the Intelligence IDEA.
Thank you!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -