[richfaces-issues] [JBoss JIRA] Commented: (RF-7206) SimpleTogglePanel's opened attribute only works with String bean properties
Versed Petulant (JIRA)
jira-events at lists.jboss.org
Mon Jan 18 05:33:48 EST 2010
[ https://jira.jboss.org/jira/browse/RF-7206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12506558#action_12506558 ]
Versed Petulant commented on RF-7206:
-------------------------------------
I have updated hibernate to versions 3.3.2.GA (Core) and 3.4.0.GA (Annotations, EntityManager), but I have the same problem when the SimpleTogglePanel is closed and I submit the page.
When I write it like opened="#{myBean.booleanProp == true}, then the error message changes to:
/some.xhtml @115,7 opened="#{myBean.booleanProp == true}": Illegal Syntax for Set Operation
The same for: opened="#{myBean.stringProp = 'true'}.
opened="#{myBean.stringProp = 'true'} works fine.
> 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