You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by octoberdan <da...@october5th.net> on 2006/03/20 16:48:23 UTC

Property can't be found that's definitely there!

I'm getting a really weird exception that I don't beleive I should be
getting.

javax.faces.el.PropertyNotFoundException: Bean: java.util.HashMap$Values,
property: shortName

Here's the jsf:
(take a look at the t:columns)
&lt;body&gt;
	&lt;f:view&gt;
		&lt;t:dataTable id="projectsDataTable" var="project"
value="#{projectBacker.projects}"&gt;
			&lt;t:column id="projectNameColumn"&gt;
				&lt;f:facet name="header"&gt;&lt;h:outputText
value="Status"/&gt;&lt;/f:facet&gt;
				&lt;h:outputText value="#{project.status}"/&gt;
			&lt;/t:column&gt;
			&lt;t:column id="projectNameColumn"&gt;
				&lt;f:facet name="header"&gt;&lt;h:outputText value="Project
Name"/&gt;&lt;/f:facet&gt;
				&lt;h:outputText value="#{project.name}"/&gt;
			&lt;/t:column&gt;
			&lt;t:columns value="#{developerBacker.developers}" var="developer"
id="shortNameColumns"&gt;
				&lt;f:facet name="header"&gt;&lt;h:outputText
value="#{developer.shortName}"/&gt;&lt;/f:facet&gt;
				&lt;h:outputText value="#{developer.shortName}"/&gt;
			&lt;/t:columns&gt;
			&lt;t:column id="dueDateColumn"&gt;
				&lt;f:facet name="header"&gt;&lt;h:outputText value="Date
Due"/&gt;&lt;/f:facet&gt;
				&lt;h:outputText value="#{project.dueDate}"/&gt;
			&lt;/t:column&gt;
			&lt;t:column id="modifiedColumn"&gt;
				&lt;f:facet name="header"&gt;&lt;h:outputText value="Last
Modified"/&gt;&lt;/f:facet&gt;
				&lt;h:outputText value="#{project.lastModified} by
#{project.lastModifier}"/&gt;
			&lt;/t:column&gt;
		&lt;/t:dataTable&gt;
	&lt;/f:view&gt;
&lt;/body&gt;

 
I've confirmed that the t:columns is iterating through the list and the
variable is in fact a Developer. I did this by h :o utputTexting the
developer variable.
 
Developer is a simple public class that contains the following
	public String getShortName() {
		return shortName;
	}
 
 
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}


 
Any help would be endlessly appreciated.
- Octoberdan
--
View this message in context: http://www.nabble.com/Property-can%27t-be-found-that%27s-definitely-there%21-t1311944.html#a3495762
Sent from the MyFaces - Users forum at Nabble.com.