Wrong setter called by jsf -
my problem is:
the first setter not second setter call, not undestand? lets go
my managed bean:
public class managedbean { public pessoa getpersonbyparam(string a){ return hash.get(a); } }
my page:
<h:inputtext value="#{mbean.getpersonbyparam(param).name}"> </h:inputtext>
my model:
public class person { private long id; private string name; // getter / setter }
my stack:
servlet.service() servlet faces servlet threw exception: javax.el.propertynotfoundexception:/time.xhtml @37,82 value="# {mbean.getpersonbyparam(param).name}": /time.xhtml @35,74 value="# {mbean.getpersonbyparam(param).name}": class 'br.com.diario.test.managedbean' not have property 'getpersonbyparam'.
any idea?
from el expression can access array, hashmap , treemap. better if declare hashmap property, way can access in xhtml page. example
java code
public class managedbean { hashmap<string, person> hash = new hashmap<string, person>(); public hashmap<string, person> gethash(){ return hash; } }
xhtml code
<h:inputtext value="#{mbean.hash[param].name}" />
Comments
Post a Comment