- This topic has 4 replies, 3 voices, and was last updated 10 years, 5 months ago by support-tony.
-
AuthorPosts
-
Chris ParsonsParticipantI am running through the JSF tutorial with MyEclipse 2013 and have got to the point where I have added a managed bean (UserBean) and am trying to add the password property to it, but I get a blank list box opened up in the dlaog – and cannot enter ‘password’ for the name of the property?
Have I missed something or is this a bug? Implication seems to be I should have added it somewhere else, but the managed bean property dialog has an ‘Add’ button leading tio this dialog which seems fairly obvious??
Chris
support-pradeepMemberChris,
Sorry that you are seeing this issue.
The “Property name” in the Add managed property is a read-only drop down. Based on the property class selected, the property name drop-down will be populated with property names.
You should first add getters and setters for userName and password manually in UserBean.java file and then in the Add managed property wizard select UserBean.java as the property class. After selecting the property class, userName and password will be populated in the property name drop down. You can follow the JSF tutorial from this step.
We already have a PR filed for this issue to make the appropriate changes in the JSF tutorial.
Let us know if you see any issues.
Chris ParsonsParticipantThank you, this has resolved the issue – but it seems odd that I can add the variable names to the UserBean class and get ME to automatically generate the getters and setters for me (albeit without the annotations)
Can this same functionality not be called from the faces-config.xml ‘ManagedBean’ dialog?
Seems a bit back to front to me, but I can live with it
Regards
Chris Parsons
support-pradeepMemberChris,
I have filed a PR for this and the dev team is looking into it.
Let us know if you see any further issues.
support-tonyKeymasterChris,
This problem has been fixed in our 2015 CI 1 release. For information about this release, please see this announcement.
Thanks for reporting the issue and sorry for the inconvenience it caused.
-
AuthorPosts