[richfaces-issues] [JBoss JIRA] Created: (RF-2295) Recieving error while rendering the rcih suggestion box
prashant verma (JIRA)
jira-events at lists.jboss.org
Tue Feb 19 01:42:26 EST 2008
Recieving error while rendering the rcih suggestion box
-------------------------------------------------------
Key: RF-2295
URL: http://jira.jboss.com/jira/browse/RF-2295
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Environment: JDK1.5, Jboss Portal 2.4.1, Jboss App Server 4.0.5,
Reporter: prashant verma
Priority: Critical
I am recieving this err when I try to incorporate rich:suggestion box in the Jboss Portal
11:18:16,195 ERROR [MyFacesMultipartPortlet] processAction() error=the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded; charset=UTF-8
Here is the JSP code in the page
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
.......
<h:form id="StudyCoverForm" enctype="multipart/form-data">
...............................
<h:outputText styleClass="jsf-output-text" value="Rich Suggetion Example" />
<h:panelGroup>
<h:inputText value="#{bean.text}" id="suggest" />
<rich:suggestionbox for="suggest" suggestionAction="#{bean.autocomplete}" var="result" height="100" width="100">
<h:column>
<h:outputText value="#{result}"/>
</h:column>
</rich:suggestionbox>
</h:panelGroup>
.............................
end of the page
here is the bean code
-------------------------------------
import java.util.ArrayList;
import java.util.List;
public class Bean {
private List<String> Values;
private String text;
public Bean() {
}
public String getText() {
if (text != null) {
text = text.toUpperCase();
}
return text;
}
public void setText(String text) {
this.text = text;
}
public List autocomplete(Object event) {
System.out.println("inside autocomplete");
Values= new ArrayList<String>();
if (Values.size() == 0) {
for (int i = 0; i < 10; i++) {
Values.add(i+"");
}
}
return this.Values;
}
}
-------------------------------------
faces config has entries for this
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>com.ge.aviation.drb.bean.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>text</property-name>
<value/>
</managed-property>
<managed-property>
<property-name>Values</property-name>
<value/>
</managed-property>
</managed-bean>
Thanks in Advance
Please suggest and Help
Prashant Verma
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list