Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > more JSF woes Cannot get value for expression

Reply
Thread Tools

more JSF woes Cannot get value for expression

 
 
timasmith@hotmail.com
Guest
Posts: n/a
 
      08-15-2006
This is so difficult to troubleshoot, I am going at a snails pace.
Next issue.

I can go from the login page to a list of products page via a bean
method.

I duplicated the same code - but of course the next jsp doesnt work
with the following error:

javax.servlet.ServletException: Cannot get value for expression
'#{artifactTreeBean.artifactList}'
javax.faces.webapp.FacesServlet.service(FacesServl et.java:121)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)

************************************************** ***************************
Where on earth is the originating error - not in the JBoss server.log,
thats the only error above.
************************************************** ***************************

artifacttree.jsp
h:dataTable
value="#{artifactTreeBean.artifactList}"
var="artifact"
>


<h:column>
<f:facet name="header">
<hutputText value="Product" />
</f:facet>
<h:commandLink action="artifacttree">
<hutputText value="#{artifact.artifactName}" />
</h:commandLink>
</h:column>

</h:dataTable>


faces-config.xml
<managed-bean>
<managed-bean-name>artifactTreeBean</managed-bean-name>

<managed-bean-class>com.myproject.artifact.ArtifactTreeBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

<navigation-case>
<from-outcome>artifacttree</from-outcome>
<to-view-id>/pages/artifact/artifacttree.jsp</to-view-id>
</navigation-case>


public class ArtifactTreeBean extends BaseBean {

private List artifactList = null;

public ArtifactTreeBean() {
super();
}
... populate the artifactList in the getter - should not throw an
error...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C++ 42 11-04-2008 12:39 PM
JSF javax.servlet.ServletException: Cannot get value for expression '#{customerService.dummyString}' alexjaquet@gmail.com Java 2 08-25-2006 03:28 PM
Include JSF page within another JSF page BlackIce Java 1 07-05-2006 11:24 PM
JSF debugging / JSF newsgroup Sebastian Fey Java 1 04-07-2006 08:52 PM
[JSF]Need to deploy a jsf application on SunApplicationServer. dudu Java 0 03-03-2006 12:09 PM



Advertisments