when type on xhtml page samthing that:
<h:inputtext id="name" value="#{user.name}" validator="#{user.validatename}"> <f:ajax event="keyup" render="errorname"/> </h:inputtext> for validator attribute when press ctrl+space eclipse give me drop down menu names of backed bean methods. that: user.validatename() red circle ath satrt of line , user.validatename without bracket starts line green circle. frst validator not work bath second works. manning of 2 line, meaning red circle or green circle, mean sign <class or <>something?
in general red private member green public
in case of jsf page editor.
- green
<sign means property read propertly, means no setter method provided property - green
<, red>sign means property both read-write. - red
>means property write property. - green
< classreturn actuallclassof managedbean.
suppose have class follows
public class loginbean { private string username = "username"; private string password = "password"; public string getusername() { return username; } public void setusername(string username) { this.username = username; } public string getpassword() { return password; } /*public void setpassword(string password) { this.password = password; }*/ } then
passwordhave green<because setter method not there , read onlyusernamehave green<, red>because read/write due setter getter methods
Comments
Post a Comment