From jira-events at lists.jboss.org Thu Sep 11 16:48:21 2008 Content-Type: multipart/mixed; boundary="===============1355215486504962126==" MIME-Version: 1.0 From: Shadow Creeper (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-4458) a4j:commandButton disabled attribute is checked prematurely Date: Thu, 11 Sep 2008 16:48:20 -0400 Message-ID: <26445875.1221166100819.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 12767995.1221164960868.JavaMail.jira@cloud.prod.atl2.jboss.com --===============1355215486504962126== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4458?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12429204#a= ction_12429204 ] = Shadow Creeper commented on RF-4458: ------------------------------------ Also, as a side note, the MyFaces does work as expected (= just replace a4j:commandButton above with h:commandButton to test). Thanks. -Shadow > a4j:commandButton disabled attribute is checked prematurely > ----------------------------------------------------------- > > Key: RF-4458 > URL: https://jira.jboss.org/jira/browse/RF-4458 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.2 > Environment: Tested on JBoss 4.0.5 with Facelets 1.1.14, MyFaces = 1.2.3 and RichFaces 3.2.2.GA > Browsers tested Firefox 3.0.1 and IE 7(.0.5730.13) > Reporter: Shadow Creeper > > If disabled was true, the expected behavior (not allowed to click on disa= bled element) is seen. > If disabled was false, the EL will be rechecked after click but before ac= tionListener is run. > Expected behavior: > If disabled was false, then the button should work without checking disab= led EL unless and until the button is told to reRender. > test.xhtml: > > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:a4j=3D"https://ajax4jsf.dev.java.net/ajax" > xmlns:ui=3D"http://java.sun.com/jsf/facelets"> > > > disabled attribute test > > >
> > disabled=3D"#{TestBean.loggingBooleanCheck}" > styleClass=3D"entry" > actionListener=3D"#{TestBean.actionMethod}" > value=3D"Test"/> > >
> > > TestBean methods: > public void actionMethod ( ActionEvent ignored ) > { > System.out.println( "Running action" ); > } > public boolean isLoggingBooleanCheck () > { > System.out.println( "Checking disabled value" ); > return false; > } -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1355215486504962126==--