[
https://issues.jboss.org/browse/RF-10052?page=com.atlassian.jira.plugin.s...
]
Peter Rader commented on RF-10052:
----------------------------------
Nick,
sure i can:
#### START JAVA
package ...;
import javax.faces.convert.Converter;
public class MyConverter implements Converter {
public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
String id = arg1.getClientId(arg0);
System.out.println("As Object: "+id);
return null;
}
public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
String id = arg1.getClientId(arg0);
System.out.println("As String: "+id);
return null;
}
}
#### END JAVA
#### START XHTML
<a4j:form id="form">
<rich:ListShuttle converter="MyConverter" value="..."
id="ListShuttle" />
</a4j:form>
#### END XHTML
The Console output will be:
As String: form:ListShuttle:0 <--- The uicomponent's ID differs from
declaration (see XHTML snipplet on top)!
As Object: form:ListShuttle
ListShuttle has imprecise clientId
----------------------------------
Key: RF-10052
URL:
https://issues.jboss.org/browse/RF-10052
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-misc
Affects Versions: 3.3.3.Final
Environment: winxp jboss 4.3
Reporter: Peter Rader
Assignee: Nick Belaevski
Priority: Minor
If i implement an custom Converter for my rich:listShuttle:
- in method "getAsString" the result of getClientId contains the suffix
":0"
- in method "getAsObject" the result of getClientId does not contains the
suffix ":0"
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira