From jira-events at lists.jboss.org Sat Sep 17 16:35:26 2011 Content-Type: multipart/mixed; boundary="===============3249903644112067939==" MIME-Version: 1.0 From: Florian Schoedel (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-11410) CommandButton in ExtentedDataTable Date: Sat, 17 Sep 2011 16:35:26 -0400 Message-ID: <1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> --===============3249903644112067939== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CommandButton in ExtentedDataTable ---------------------------------- Key: RF-11410 URL: https://issues.jboss.org/browse/RF-11410 Project: RichFaces Issue Type: Bug Security Level: Public (Everyone can see) Components: component Affects Versions: 4.0.0.Final Environment: java 1.6.0_26 glassfish 3.1 Mojarra 2.1.0 (FCS 2.1.0-b11) Seam Faces 3.0.1.Final Reporter: Florian Schoedel I've created a composite component which contains two richfaces extented da= ta tables. Each Datatable contains a column for a button to perform an acti= on. (in the left datatable there is an 'add' button, on the right datatable= a 'remove' button). Everything works fine until I try to attach a client b= ehavior to the add / remove btns. I want to monitor my component for select= ion and removal of any value from the calling page. The client behavior is triggered as expected, but the method behind the add= and remove btns is executed twice! This also happens which actionListener = attribute instead of action attribute. = I've replaced richfaces ext. DataTable by h:dataTable and everything works = fine. = Here is the xml of my composite component: ----- =
= = =
----- And there's the place I use it: = ----- = #{p.firstName} #{p.lastName} ---- -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3249903644112067939==-- From jira-events at lists.jboss.org Sat Sep 17 16:53:26 2011 Content-Type: multipart/mixed; boundary="===============1587501933191527127==" MIME-Version: 1.0 From: Florian Schoedel (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 17 Sep 2011 16:53:26 -0400 Message-ID: <201509036.53848.1316292806348.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============1587501933191527127== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Florian Schoedel updated RF-11410: ---------------------------------- Summary: CommandButton in ExtendedDataTable; Action for comma= ndButton is executed twice. (was: CommandButton in ExtentedDataTable) Affects Version/s: 4.1.0.Milestone1 (was: 4.0.0.Final) Component/s: compatibility (was: component) > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: compatibility > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Labels: new_and_noteworthy > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > > = >
> = > = > > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > render=3D":#{cc.clientId}:sel= ectedPersonTable @this #{cc.attrs.refresh}" > /> > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none"> > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > = > > >
>
> > ----- > And there's the place I use it: = > ----- > refresh=3D""> > > > = > > > > > #{p.firstName} > > > #{p.lastName} > > > > ---- -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1587501933191527127==-- From jira-events at lists.jboss.org Wed Sep 21 00:24:26 2011 Content-Type: multipart/mixed; boundary="===============4027195591764667053==" MIME-Version: 1.0 From: Brian Leathem (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Wed, 21 Sep 2011 00:24:26 -0400 Message-ID: <281326174.60976.1316579066278.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============4027195591764667053== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11410: ------------------------------- Description: = I've created a composite component which contains two richfaces extented da= ta tables. Each Datatable contains a column for a button to perform an acti= on. (in the left datatable there is an 'add' button, on the right datatable= a 'remove' button). Everything works fine until I try to attach a client b= ehavior to the add / remove btns. I want to monitor my component for select= ion and removal of any value from the calling page. The client behavior is triggered as expected, but the method behind the add= and remove btns is executed twice! This also happens which actionListener = attribute instead of action attribute. = I've replaced richfaces ext. DataTable by h:dataTable and everything works = fine. = Here is the xml of my composite component: ----- {code} =
= = =
{code} ----- And there's the place I use it: = ----- {code} = #{p.firstName} #{p.lastName} {code} ---- was: I've created a composite component which contains two richfaces extented da= ta tables. Each Datatable contains a column for a button to perform an acti= on. (in the left datatable there is an 'add' button, on the right datatable= a 'remove' button). Everything works fine until I try to attach a client b= ehavior to the add / remove btns. I want to monitor my component for select= ion and removal of any value from the calling page. The client behavior is triggered as expected, but the method behind the add= and remove btns is executed twice! This also happens which actionListener = attribute instead of action attribute. = I've replaced richfaces ext. DataTable by h:dataTable and everything works = fine. = Here is the xml of my composite component: ----- =
= = =
----- And there's the place I use it: = ----- = #{p.firstName} #{p.lastName} ---- > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: compatibility > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Labels: new_and_noteworthy > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > > = >
> = > = > > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > render=3D":#{cc.clientId}:sel= ectedPersonTable @this #{cc.attrs.refresh}" > /> > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none"> > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > = > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > refresh=3D""> > > > = > > > > > #{p.firstName} > > > #{p.lastName} > > > > {code} > ---- -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============4027195591764667053==-- From jira-events at lists.jboss.org Wed Sep 21 03:31:26 2011 Content-Type: multipart/mixed; boundary="===============7652574345848268245==" MIME-Version: 1.0 From: Florian Schoedel (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Wed, 21 Sep 2011 03:31:26 -0400 Message-ID: <1680725801.61231.1316590286232.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============7652574345848268245== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12629548#com= ment-12629548 ] = Florian Schoedel commented on RF-11410: --------------------------------------- the same thing also happens, if there is only one ext. datatable within an = own component > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: compatibility > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Labels: new_and_noteworthy > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > > = >
> = > = > > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > render=3D":#{cc.clientId}:sel= ectedPersonTable @this #{cc.attrs.refresh}" > /> > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none"> > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > = > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > refresh=3D""> > > > = > > > > > #{p.firstName} > > > #{p.lastName} > > > > {code} > ---- -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============7652574345848268245==-- From jira-events at lists.jboss.org Sat Oct 8 01:44:16 2011 Content-Type: multipart/mixed; boundary="===============1141727128571976614==" MIME-Version: 1.0 From: Brian Leathem (Updated) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 08 Oct 2011 01:44:16 -0400 Message-ID: <1044426930.14523.1318052656093.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============1141727128571976614== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11410: ------------------------------- Description: = I've created a composite component which contains two richfaces extented da= ta tables. Each Datatable contains a column for a button to perform an acti= on. (in the left datatable there is an 'add' button, on the right datatable= a 'remove' button). Everything works fine until I try to attach a client b= ehavior to the add / remove btns. I want to monitor my component for select= ion and removal of any value from the calling page. The client behavior is triggered as expected, but the method behind the add= and remove btns is executed twice! This also happens which actionListener = attribute instead of action attribute. = I've replaced richfaces ext. DataTable by h:dataTable and everything works = fine. = Here is the xml of my composite component: ----- {code}
{code} ----- And there's the place I use it: = ----- {code} #{p.firstName} #{p.lastName} {code} was: I've created a composite component which contains two richfaces extented da= ta tables. Each Datatable contains a column for a button to perform an acti= on. (in the left datatable there is an 'add' button, on the right datatable= a 'remove' button). Everything works fine until I try to attach a client b= ehavior to the add / remove btns. I want to monitor my component for select= ion and removal of any value from the calling page. The client behavior is triggered as expected, but the method behind the add= and remove btns is executed twice! This also happens which actionListener = attribute instead of action attribute. = I've replaced richfaces ext. DataTable by h:dataTable and everything works = fine. = Here is the xml of my composite component: ----- {code} =
= = =
{code} ----- And there's the place I use it: = ----- {code} = #{p.firstName} #{p.lastName} {code} ---- Labels: (was: new_and_noteworthy) = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: compatibility > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1141727128571976614==-- From jira-events at lists.jboss.org Sat Oct 8 01:46:16 2011 Content-Type: multipart/mixed; boundary="===============1716741294481376820==" MIME-Version: 1.0 From: Brian Leathem (Updated) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 08 Oct 2011 01:46:16 -0400 Message-ID: <1757285899.14527.1318052776160.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============1716741294481376820== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11410: ------------------------------- Component/s: component-tables (was: compatibility) = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1716741294481376820==-- From jira-events at lists.jboss.org Sat Oct 8 01:48:16 2011 Content-Type: multipart/mixed; boundary="===============3701283687791606498==" MIME-Version: 1.0 From: Brian Leathem (Commented) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 08 Oct 2011 01:48:15 -0400 Message-ID: <12975059.14529.1318052895967.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3701283687791606498== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12633269#com= ment-12633269 ] = Brian Leathem commented on RF-11410: ------------------------------------ Could you please provide a simplified example demonstrating this problem? = Please also include any backing bean code required to actually run the simp= le example. = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3701283687791606498==-- From jira-events at lists.jboss.org Sat Oct 8 06:48:16 2011 Content-Type: multipart/mixed; boundary="===============5671619612629694581==" MIME-Version: 1.0 From: Florian Schoedel (Updated) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 08 Oct 2011 06:48:16 -0400 Message-ID: <1848294008.14625.1318070896187.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============5671619612629694581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Florian Schoedel updated RF-11410: ---------------------------------- Attachment: rfExtDatatableBug.zip netbeans / maven / web /cdi project with demonstration of the described pro= blem. = the demonstration page is http://localhost:8080/rfExtDatatableBug/faces/dem= onstration.xhtml = you have to view your server console to see the effect = = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Attachments: rfExtDatatableBug.zip > > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5671619612629694581==-- From jira-events at lists.jboss.org Sat Oct 8 11:45:16 2011 Content-Type: multipart/mixed; boundary="===============2575762973107775536==" MIME-Version: 1.0 From: Brian Leathem (Updated) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Sat, 08 Oct 2011 11:45:16 -0400 Message-ID: <49505881.14652.1318088716712.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============2575762973107775536== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11410: ------------------------------- Fix Version/s: 4.1.0.CR1 = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Fix For: 4.1.0.CR1 > > Attachments: rfExtDatatableBug.zip > > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============2575762973107775536==-- From jira-events at lists.jboss.org Mon Nov 14 17:22:41 2011 Content-Type: multipart/mixed; boundary="===============5043516448095893118==" MIME-Version: 1.0 From: Brian Leathem (Updated) (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11410) CommandButton in ExtendedDataTable; Action for commandButton is executed twice. Date: Mon, 14 Nov 2011 17:22:40 -0500 Message-ID: <1156161423.5689.1321309360856.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1315788748.53845.1316291726294.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============5043516448095893118== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11410?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11410: ------------------------------- Fix Version/s: 4.2.0.Tracking (was: 4.1.0.Tracking) = > CommandButton in ExtendedDataTable; Action for commandButton is executed = twice. > -------------------------------------------------------------------------= ------ > > Key: RF-11410 > URL: https://issues.jboss.org/browse/RF-11410 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.1.0.Milestone1 > Environment: java 1.6.0_26 > glassfish 3.1 > Mojarra 2.1.0 (FCS 2.1.0-b11) > Seam Faces 3.0.1.Final > Reporter: Florian Schoedel > Fix For: 4.2.0.Tracking > > Attachments: rfExtDatatableBug.zip > > > I've created a composite component which contains two richfaces extented = data tables. Each Datatable contains a column for a button to perform an ac= tion. (in the left datatable there is an 'add' button, on the right datatab= le a 'remove' button). Everything works fine until I try to attach a client= behavior to the add / remove btns. I want to monitor my component for sele= ction and removal of any value from the calling page. > The client behavior is triggered as expected, but the method behind the a= dd and remove btns is executed twice! This also happens which actionListene= r attribute instead of action attribute. = > I've replaced richfaces ext. DataTable by h:dataTable and everything work= s fine. = > Here is the xml of my composite component: > ----- > {code} > > > xmlns:r=3D"http://richfaces.org/rich" > xmlns:a=3D"http://richfaces.org/a4j" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:fn=3D"http://java.sun.com/jsp/jstl/functions" > xmlns:o=3D"http://java.sun.com/jsf/composite/ezcomp" > xmlns:cc=3D"http://java.sun.com/jsf/composite" > > > > > > > > > > > >
> > > value=3D"#{cc.attrs.all}" > var=3D"p" > id=3D"allPersonTable" = > selectionMode=3D"none" > rows=3D"10" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.allFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.allFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > render=3D"dataScrollerTop= dataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.allLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.allLastNameSortOrder}" > > > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"allPersonTable(= a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.add(p)}" > disabled=3D"#{cc.attrs.s= election.contains(p)}" > id=3D"addBtn" > > > > > > > > > value=3D"#{cc.attrs.selection}" > var=3D"p" id=3D"selectedPersonTable" > rows=3D"10" style=3D"width: 100%" > selectionMode=3D"none" > > > > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .firstName,cc.selectedFirstName)}" > sortBy=3D"#{p.firstName}" > sortOrder=3D"#{cc.selectedFirstNameSortOrder}" > > > > > > > > > id=3D"firstnameFilter" > style=3D"width: 75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > render=3D"selectedDataScr= ollerTop selectedDataScrollerBottom" > execute=3D"@this" > /> > > > > > > filterExpression=3D"#{fn:containsIgnoreCase(p= .lastName,cc.selectedLastName)}" > sortBy=3D"#{p.lastName}" > sortOrder=3D"#{cc.selectedLastNameSortOrder}"> > > style=3D"width: 100%;" > columnClasses=3D"colTop"> > > > > > id=3D"lastnameFilter" > style=3D"width:75px;" > > > render=3D"selectedPersonT= able(a)body " > execute=3D"@this" > /> > > > > > > > > > > > action=3D"#{cc.remove(= p)}" > id=3D"removeBtn" > > render=3D":#{cc.clientId}:all= PersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}" > /> > > > > > > >
>
> > {code} > ----- > And there's the place I use it: = > ----- > {code} > > > > > > > #{p.firstName} > #{p.lastName} > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5043516448095893118==--