[
https://issues.jboss.org/browse/RF-11651?page=com.atlassian.jira.plugin.s...
]
Artur Mioduszewski edited comment on RF-11651 at 4/18/12 8:02 AM:
------------------------------------------------------------------
Curently I have tried with Richfaces example input-demo-4.2.0-SNAPSHOT (exact version:
4.2.0-20120214):
I have modified a bit code:
{code}
package org.richfaces.demo;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ValueChangeEvent;
import java.io.Serializable;
@SessionScoped
@ManagedBean(name = "inputBean")
public class InputBean implements Serializable
{
private static final long serialVersionUID = -1471664178358603340L;
private String value;
public String getValue()
{
return value;
}
public String getDupa()
{
return "Dupa";
}
public void setValue(String value)
{
this.value = value;
}
public void valueChanged(ValueChangeEvent event)
{
System.out.println("Begin of value listener change |
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ");
}
}
{code}
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:in="http://richfaces.org/input"
xmlns:misc="http://richfaces.org/misc"
xmlns:a4j="http://richfaces.org/a4j">
<f:view contentType="text/html" />
<h:head>
<title>InplaceSelect</title>
</h:head>
<h:body>
<h:form id="form">
<div id="scroll" style="width: 500px; height:260px;
overflow:auto;" >
<fieldset>
<legend>InplaceSelect Test App</legend>
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take
another big prize. Former zzzzzzzzz
<br/>
#{inputBean.dupa}
<br/>
<in:inplaceSelect id='ii' defaultLabel="hello!"
value="#{inputBean.value}" openOnEdit="true"
saveOnSelect="false"
activeClass="activeClass"
changedClass="changedClass"
disabledClass="disabledClass"
styleClass="styleClass"
disabled="false"
valueChangeListener="#{inputBean.valueChanged}"
<f:selectItem itemLabel="Label#1"
itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
<f:selectItem itemLabel="Label#3" itemValue="Value#3"/>
<f:selectItem itemLabel="Label#4" itemValue="Value#4"/>
<f:selectItem itemLabel="Label#5" itemValue="Value#5"/>
<f:selectItem itemLabel="Label#6" itemValue="Value#6"/>
<f:selectItem itemLabel="Label#7" itemValue="Value#7"/>
<f:selectItem itemLabel="Label#8" itemValue="Value#8"/>
<f:selectItem itemLabel="Label#9" itemValue="Value#9"/>
<f:selectItem itemLabel="Label#10" itemValue="Value#10"/>
<f:selectItem itemLabel="Label#11" itemValue="Value#11"/>
<f:selectItem itemLabel="Label#12" itemValue="Value#12"/>
<f:selectItem itemLabel="Label#13" itemValue="Value#13"/>
<f:selectItem itemLabel="Label#14" itemValue="Value#14"/>
</in:inplaceSelect>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That
would give McCain added momentum heading into a debate Wednesday and next week's Super
Tuesday contests
</fieldset>
<ul>
<li><h:commandButton
value="submit"></h:commandButton></li>
<li> <h:commandButton value="ShowPopup"
onclick="#{misc:component('ii')}.showPopup(); return
false;"/></li>
<li></li>
</ul>
</div>
<h:panelGroup id="out">
<h:outputText value="Entered Value: #{inputBean.value}"/>
</h:panelGroup>
<!--a4j:poll render="is" interval="2000" />
<in:inplaceSelect id='is' defaultLabel="Edit Text"
value="#{inputBean.value}" openOnEdit="true"
saveOnSelect="false">
<f:selectItem itemLabel="Label#1" itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
</in:inplaceSelect-->
</h:form>
</h:body>
</html>
{code}
was (Author: kliczko):
Curently I have tried with Richfaces example input-demo-4.2.0-SNAPSHOT (exact version:
4.2.0-20120214):
I have modified a bit code:
{code}
package org.richfaces.demo;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ValueChangeEvent;
import java.io.Serializable;
@SessionScoped
@ManagedBean(name = "inputBean")
public class InputBean implements Serializable
{
private static final long serialVersionUID = -1471664178358603340L;
private String value;
public String getValue()
{
return value;
}
public String getDupa()
{
return "Dupa";
}
public void setValue(String value)
{
this.value = value;
}
public void valueChanged(ValueChangeEvent event)
{
System.out.println("Begin of value listener change |
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ");
}
}
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:in="http://richfaces.org/input"
xmlns:misc="http://richfaces.org/misc"
xmlns:a4j="http://richfaces.org/a4j">
<f:view contentType="text/html" />
<h:head>
<title>InplaceSelect</title>
</h:head>
<h:body>
<h:form id="form">
<div id="scroll" style="width: 500px; height:260px;
overflow:auto;" >
<fieldset>
<legend>InplaceSelect Test App</legend>
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take
another big prize. Former zzzzzzzzz
<br/>
#{inputBean.dupa}
<br/>
<in:inplaceSelect id='ii' defaultLabel="hello!"
value="#{inputBean.value}" openOnEdit="true"
saveOnSelect="false"
activeClass="activeClass"
changedClass="changedClass"
disabledClass="disabledClass"
styleClass="styleClass"
disabled="false"
valueChangeListener="#{inputBean.valueChanged}"
<f:selectItem itemLabel="Label#1"
itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
<f:selectItem itemLabel="Label#3" itemValue="Value#3"/>
<f:selectItem itemLabel="Label#4" itemValue="Value#4"/>
<f:selectItem itemLabel="Label#5" itemValue="Value#5"/>
<f:selectItem itemLabel="Label#6" itemValue="Value#6"/>
<f:selectItem itemLabel="Label#7" itemValue="Value#7"/>
<f:selectItem itemLabel="Label#8" itemValue="Value#8"/>
<f:selectItem itemLabel="Label#9" itemValue="Value#9"/>
<f:selectItem itemLabel="Label#10" itemValue="Value#10"/>
<f:selectItem itemLabel="Label#11" itemValue="Value#11"/>
<f:selectItem itemLabel="Label#12" itemValue="Value#12"/>
<f:selectItem itemLabel="Label#13" itemValue="Value#13"/>
<f:selectItem itemLabel="Label#14" itemValue="Value#14"/>
</in:inplaceSelect>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That
would give McCain added momentum heading into a debate Wednesday and next week's Super
Tuesday contests
</fieldset>
<ul>
<li><h:commandButton
value="submit"></h:commandButton></li>
<li> <h:commandButton value="ShowPopup"
onclick="#{misc:component('ii')}.showPopup(); return
false;"/></li>
<li></li>
</ul>
</div>
<h:panelGroup id="out">
<h:outputText value="Entered Value: #{inputBean.value}"/>
</h:panelGroup>
<!--a4j:poll render="is" interval="2000" />
<in:inplaceSelect id='is' defaultLabel="Edit Text"
value="#{inputBean.value}" openOnEdit="true"
saveOnSelect="false">
<f:selectItem itemLabel="Label#1" itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
</in:inplaceSelect-->
</h:form>
</h:body>
</html>
{code}
{code}
InplaceSelect: valueChangeListener does not work on version:
4.1.0.20110910-M2
-------------------------------------------------------------------------------
Key: RF-11651
URL:
https://issues.jboss.org/browse/RF-11651
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-selects
Affects Versions: 4.1.0.Milestone2
Environment: Mojarra 2.1.5, jboss-6.0.0.Final
Used Richfaces example: input-demo-4.2.0-SNAPSHOT (exact version: 4.2.0-20120214)
Reporter: Artur Mioduszewski
Assignee: Pavol Pitonak
{code}
<rich:inplaceSelect id="inplaceSelectID"
valueChangeListener="#{inplaceSelect.valueChangeListener}" ..... />
{code}
{code}
public void valueChangeListener(ValueChangeEvent event){
System.out.println("InplaceSelect.valueChangeListener()"); }
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira