This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes generate UI with binding-attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "generate UI with binding-attribute" Watch "generate UI with binding-attribute" New topic
Author

generate UI with binding-attribute

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I want to generate a HTML-PanelGrid in JAVA:



and reference this in a JSF-Page:



but I get the following stacktrace:



What is wrong?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Originally posted by nimo frey:
and reference this in a JSF-Page:



but I get the following stacktrace:




Do you see the difference? Which one is correct? Fix it accordingly.
Bassam Al-Sarori
Greenhorn

Joined: Aug 23, 2008
Posts: 10
code:
javax.el.PropertyNotWritableException: /grid.xhtml @279,45 binding="bean.htmlPanelGrid": Illegal Syntax for Set Operation


This is because your bean class does not have a set and get method for the property htmlPanelGrid.

You should have a set and get methods (maybe setHtmlPanelGrid(HtmlPanelGrid htmlPanelGrid) and getHtmlPanelGrid()).
Bassam Al-Sarori
Greenhorn

Joined: Aug 23, 2008
Posts: 10
And the syntax in your jsf page should be binding="#{bean.htmlPanelGrid}"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generate UI with binding-attribute
 
Similar Threads
programmatic HTmlCommandLink action with parameters not working
dynamic panel grid binding
How to create BINDING of command link with backing bean
Dynamic UI generation problem while opening popup
Calendar display