[richfaces-issues] [JBoss JIRA] Commented: (RF-7206) SimpleTogglePanel's opened attribute only works with String bean properties
Yennick Trevels (JIRA)
jira-events at lists.jboss.org
Wed Dec 16 05:09:33 EST 2009
[ https://jira.jboss.org/jira/browse/RF-7206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12500266#action_12500266 ]
Yennick Trevels commented on RF-7206:
-------------------------------------
I'm using version 3.3.2.SR1, and I'm having the same problem.
Changing the following code:
public void setOpened(boolean opened) {
setValue(new Boolean(opened).toString());
}
to
public void setOpened(boolean opened) {
setValue(new Boolean(opened));
}
fixed the issue for me.
> SimpleTogglePanel's opened attribute only works with String bean properties
> ---------------------------------------------------------------------------
>
> Key: RF-7206
> URL: https://jira.jboss.org/jira/browse/RF-7206
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 3.3.1
> Environment: JRE 6, Tomcat 6
> Reporter: Matthew Lieder
> Assignee: Nick Belaevski
> Priority: Minor
> Fix For: Future
>
>
> Given the bean
> public class MyBean {
> public boolean getBooleanProp() {
> return true;
> }
>
> public void setBooleanProp(boolean prop) {}
> public boolean getStringProp() {
> return "true";
> }
>
> public void setStringProp(String prop) {}
> }
> and the XHTML
> <rich:simpleTogglePanel label="Close Me" switchType="client" opened="#{myBean.booleanProp}">
> Blah blah blah
> </rich:simpleTogglePanel>
> I get the following error if I close the tab panel and then submit the page:
> /test.xhtml @646,220 opened="#{myBean.booleanProp}": java.lang.IllegalArgumentException: argument type mismatch
> If I change the opened attribute to #{myBean.stringProp} however, then it works fine.
> The problem seems to narrow down to the following method in UISimpleTogglePanel:
> public void setOpened(boolean opened) {
> setValue(new Boolean(opened).toString());
> }
--
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
More information about the richfaces-issues
mailing list