Re: tag in Struts-Faces

2004-06-25 Thread Josh Porter
I get the following exception:
javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209) 
with root cause listed as
javax.faces.el.EvaluationException: java.lang.NullPointerException
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UIData.getValue(UIData.java:527)
at javax.faces.component.UIData.getDataModel(UIData.java:848)
at javax.faces.component.UIData.setRowIndex(UIData.java:379)
at javax.faces.component.UIData.iterate(UIData.java:890) 
Caused by: java.lang.NullPointerException
at 
org.apache.struts.faces.application.PropertyResolverImpl.getValue(PropertyResolverImpl.java:146)
at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
at 
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
... 53 more

Matthias Wessendorf wrote:
Do you get any exceptions on submitting a form?
regards,
 

-Original Message-
From: Josh Porter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 11:37 PM
To: [EMAIL PROTECTED]
Subject:  tag in Struts-Faces

I am trying to develop a web application using Struts, Tiles, and 
JavaServer Faces, connected by the Struts-Faces integration 
library. I 
can't seem to make the  tag work.

The code I wrote looks like:

The /search action is configured in struts-config.xml to forward to a 
search results tile.

The code renders like this:


where start.jsp is the page the form is on. This happens with other 
forms too; when the  tag is rendered, the action attribute is 
directed back on the current page.

I read the following article, which proposed sort of a hack to solve 
this problem:
--> http://www-106.ibm.com/developerworks/library/j-integrate/
except this was written last September for an older version of 
Struts-Faces, and some of the code it tells you to change is 
different 
now. I couldn't get this to work.

How do I get around this problem? It seems like something 
pretty basic, 
so I apologize if this is something that's been well covered already, 
but I couldn't find information about it anywhere.

-- Josh
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tag in Struts-Faces

2004-06-24 Thread Josh Porter
I am trying to develop a web application using Struts, Tiles, and 
JavaServer Faces, connected by the Struts-Faces integration library. I 
can't seem to make the  tag work.

The code I wrote looks like:

The /search action is configured in struts-config.xml to forward to a 
search results tile.

The code renders like this:

where start.jsp is the page the form is on. This happens with other 
forms too; when the  tag is rendered, the action attribute is 
directed back on the current page.

I read the following article, which proposed sort of a hack to solve 
this problem:
--> http://www-106.ibm.com/developerworks/library/j-integrate/
except this was written last September for an older version of 
Struts-Faces, and some of the code it tells you to change is different 
now. I couldn't get this to work.

How do I get around this problem? It seems like something pretty basic, 
so I apologize if this is something that's been well covered already, 
but I couldn't find information about it anywhere.

-- Josh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]