aspose file tools*
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
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}"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: generate UI with binding-attribute