[JBoss JIRA] Created: (RF-8733) FacesException when a4j:ajax wraps several elements
by Pavol Pitonak (JIRA)
FacesException when a4j:ajax wraps several elements
---------------------------------------------------
Key: RF-8733
URL: https://jira.jboss.org/browse/RF-8733
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-a4j-core
Affects Versions: 4.0.0.Alpha2
Environment: JBoss 6 M2, Tomcat 6.0.26, OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-38.b18.fc12-i386), RichFaces 4.0.0.Alpha2
Reporter: Pavol Pitonak
1. deploy core-demo 4.0.0.Alpha2
2. navigate to http://localhost:8080/core-demo/ajax.jsf
3. put e.g. "a" into 2nd, 3rd or 4th text input on the page
result: exception is thrown, below is a log from Tomcat
<a:ajax event="keyup" execute="@this" render="text1" status="ilStatus" listener="#{supportBean.behaviorListener}">
<h:inputText value="#{supportBean.text1}" />
<h:inputText value="#{supportBean.text1}" />
<h:inputText value="#{supportBean.text1}" />
</a:ajax>
2010-06-07 11:02:04,908 DEBUG [org.richfaces.demo.PhaseTracker] Phase RESTORE_VIEW 1 started
2010-06-07 11:02:04,929 DEBUG [org.richfaces.demo.PhaseTracker] Phase RESTORE_VIEW 1 completed by 20ms
2010-06-07 11:02:04,929 DEBUG [org.richfaces.demo.PhaseTracker] Phase APPLY_REQUEST_VALUES 2 started
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase APPLY_REQUEST_VALUES 2 completed by 1ms
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase PROCESS_VALIDATIONS 3 started
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase PROCESS_VALIDATIONS 3 completed by 0ms
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase UPDATE_MODEL_VALUES 4 started
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase UPDATE_MODEL_VALUES 4 completed by 1ms
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase INVOKE_APPLICATION 5 started
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase INVOKE_APPLICATION 5 completed by 0ms
javax.faces.FacesException
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.NullPointerException
at org.ajax4jsf.component.behavior.MethodExpressionAjaxBehaviorListener.processAjaxBehavior(MethodExpressionAjaxBehaviorListener.java:77)
at javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)
at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:98)
at org.ajax4jsf.component.behavior.AjaxBehavior.broadcast(AjaxBehavior.java:296)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:763)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (RF-4293) comboBox: using component with s:convertEntity leads to displaying id list instead of object property in label for s:selectItems.
by Mikhail Vitenkov (JIRA)
comboBox: using component with s:convertEntity leads to displaying id list instead of object property in label for s:selectItems.
---------------------------------------------------------------------------------------------------------------------------------
Key: RF-4293
URL: https://jira.jboss.org/jira/browse/RF-4293
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: jboss 4.2.1.GA, seam 2.0.2, richfaces 3.2.2.BETA5(IE6, IE7, FF 3.1, Safari 3.1, Opera 9.51)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Create "Car" entity with two attributes("id" & "name") following way:
@Entity(name="car")
public class Car {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Car(int id){
this.id = id;
this.name = "name_" + id;
}
@Id
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
#2. Add rich:comboBox on the page.
<rich:comboBox id="lstIndustry1" defaultLabel="Select your industry">
<s:selectItems value="#{combobox.selectItems}" var="ind" label="#{ind.name}"/>
<s:convertEntity />
</rich:comboBox>
selectItems is ArrayList<Car> defined in "combobox" bean:
private ArrayList<Car> selectItems;
public Combobox(){
this.selectItems = new ArrayList<Car>();
for(int i = 0; i < 100; i++){
selectItems.add(new Car(i));
}
}
#3. Naviagate on the page, contained rich:comboBox.
#4. Open component's pop up list & verify items' labels.
Actual behavior:
Instead of Car's "name" property list fo ids displayed. Replace rich:comboBox with h:selectOneMenu - everything works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months