[JBoss JIRA] (RF-11546) collapsiblePanel does not reevaluate expanded attribute on ajax render
by u j (Created) (JIRA)
collapsiblePanel does not reevaluate expanded attribute on ajax render
----------------------------------------------------------------------
Key: RF-11546
URL: https://issues.jboss.org/browse/RF-11546
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component
Affects Versions: 4.0.0.Final
Reporter: u j
If a rich:collapsiblePanel is rerendered via ajax, the expanded attribute is not re-evaluated.
<rich:collapsiblePanel toggleListener="#{bean.toggle}"
expanded="#{bean.open}" switchType="ajax"
onswitch="#{bean.render ? 'load();' : ''} >
The bean.render method is called, the open method is not (verified with the debugger).
So e.g. the panel is opened by click, some other action changes the (session) bean property open to false and then an action ajax-rerenders the panel, the panel is still open instead of closed.
Only on a page GET reload is the panel closed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11410) CommandButton in ExtentedDataTable
by Florian Schoedel (JIRA)
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 data tables. Each Datatable contains a column for a button to perform an action. (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 behavior to the add / remove btns. I want to monitor my component for selection 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:
-----
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:r="http://richfaces.org/rich"
xmlns:a="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:o="http://java.sun.com/jsf/composite/ezcomp"
xmlns:cc="http://java.sun.com/jsf/composite" >
<!-- INTERFACE -->
<cc:interface componentType="MultiplePersonSelectionComponent">
<cc:attribute name="all" type="java.util.List" />
<cc:attribute name="selection" type="java.util.List" />
<cc:clientBehavior name="addPerson" event="action" targets="allPersonTable:addBtn" />
<cc:clientBehavior name="removePerson" event="action" targets="selectedPersonTable:removeBtn" />
<cc:attribute name="refresh" type="java.lang.String" default=""/>
</cc:interface>
<!-- IMPLEMENTATION -->
<cc:implementation>
<div id="#{cc.clientId}" style="width: 100%">
<h:panelGrid columns="2" width="100%" columnClasses="pnlTop, pnlTop">
<r:panel header="Alle Personen" id="all" style="text-align: center;">
<r:extendedDataTable
value="#{cc.attrs.all}"
var="p"
id="allPersonTable"
selectionMode="none"
rows="10"
>
<f:facet name="header">
<r:dataScroller for="allPersonTable" maxPages="5" id="dataScrollerTop" />
</f:facet>
<f:facet name="footer">
<r:dataScroller for="allPersonTable" maxPages="5" id="dataScrollerBottom"/>
</f:facet>
<r:column
filterExpression="#{fn:containsIgnoreCase(p.firstName,cc.allFirstName)}"
sortBy="#{p.firstName}"
sortOrder="#{cc.allFirstNameSortOrder}"
>
<f:facet name="header">
<h:panelGrid columns="1" style="width:100%;" columnClasses="colTop">
<h:commandLink action="#{cc.sortAllByFirstName}" >
<a:ajax render="allPersonTable@body" />
<h:outputText value="Vorname" />
</h:commandLink>
<h:inputText value="#{cc.allFirstName}"
id="firstnameFilter"
style="width: 75px;"
>
<a:ajax event="keyup"
render="allPersonTable@body "
execute="@this"
/>
<a:ajax event="blur"
render="dataScrollerTop dataScrollerBottom"
execute="@this"
/>
</h:inputText>
</h:panelGrid>
</f:facet>
<h:outputText value="#{p.firstName}" />
</r:column>
<r:column
filterExpression="#{fn:containsIgnoreCase(p.lastName,cc.allLastName)}"
sortBy="#{p.lastName}"
sortOrder="#{cc.allLastNameSortOrder}">
<f:facet name="header">
<h:panelGrid columns="1"
style="width: 100%;"
columnClasses="colTop">
<h:commandLink action="#{cc.sortAllByLastName}" >
<a:ajax render="allPersonTable@body" />
<h:outputText value="Nachname" />
</h:commandLink>
<h:inputText value="#{cc.allLastName}"
id="lastnameFilter"
style="width:75px;"
>
<a:ajax event="keyup"
render="allPersonTable@body "
execute="@this"
/>
</h:inputText>
</h:panelGrid>
</f:facet>
<h:outputText value="#{p.lastName}" />
</r:column>
<r:column>
<f:facet name="header">
<h:outputText value="Auswahl" />
</f:facet>
<h:panelGroup id="addBtnGroup">
<h:commandButton value="add"
action="#{cc.add(p)}"
disabled="#{cc.attrs.selection.contains(p)}"
id="addBtn" >
<f:ajax event="action"
render=":#{cc.clientId}:selectedPersonTable @this #{cc.attrs.refresh}"
/>
</h:commandButton>
</h:panelGroup>
</r:column>
</r:extendedDataTable>
</r:panel>
<r:panel header="Auswahl" id="selection" style="text-align: center;">
<r:extendedDataTable
value="#{cc.attrs.selection}"
var="p" id="selectedPersonTable"
rows="10" style="width: 100%"
selectionMode="none">
<f:facet name="header">
<r:dataScroller for="selectedPersonTable" id="selectedDataScrollerTop" maxPages="5" />
</f:facet>
<f:facet name="footer">
<r:dataScroller for="selectedPersonTable" id="selectedDataScrollerBottom" maxPages="5" />
</f:facet>
<r:column
filterExpression="#{fn:containsIgnoreCase(p.firstName,cc.selectedFirstName)}"
sortBy="#{p.firstName}"
sortOrder="#{cc.selectedFirstNameSortOrder}"
>
<f:facet name="header">
<h:panelGrid columns="1" style="width:100%;" columnClasses="colTop">
<h:commandLink action="#{cc.sortSelectedByFirstName}" >
<a:ajax render="selectedPersonTable@body" />
<h:outputText value="Vorname" />
</h:commandLink>
<h:inputText value="#{cc.selectedFirstName}"
id="firstnameFilter"
style="width: 75px;"
>
<a:ajax event="keyup"
render="selectedPersonTable@body "
execute="@this"
/>
<a:ajax event="blur"
render="selectedDataScrollerTop selectedDataScrollerBottom"
execute="@this"
/>
</h:inputText>
</h:panelGrid>
</f:facet>
<h:outputText value="#{p.firstName}" />
</r:column>
<r:column
filterExpression="#{fn:containsIgnoreCase(p.lastName,cc.selectedLastName)}"
sortBy="#{p.lastName}"
sortOrder="#{cc.selectedLastNameSortOrder}">
<f:facet name="header">
<h:panelGrid columns="1"
style="width: 100%;"
columnClasses="colTop">
<h:commandLink action="#{cc.sortSelectedByLastName}" >
<a:ajax render="selectedPersonTable@body" />
<h:outputText value="Nachname" />
</h:commandLink>
<h:inputText value="#{cc.selectedLastName}"
id="lastnameFilter"
style="width:75px;"
>
<a:ajax event="keyup"
render="selectedPersonTable@body "
execute="@this"
/>
</h:inputText>
</h:panelGrid>
</f:facet>
<h:outputText value="#{p.lastName}" />
</r:column>
<r:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<h:panelGroup id="removeBtnGroup">
<h:commandButton value="remove"
action="#{cc.remove(p)}"
id="removeBtn" >
<f:ajax event="action"
render=":#{cc.clientId}:allPersonTable :#{cc.clientId}:selectedPersonTable #{cc.attrs.refresh}"
/>
</h:commandButton>
</h:panelGroup>
</r:column>
</r:extendedDataTable >
</r:panel>
</h:panelGrid>
</div>
</cc:implementation>
</html>
-----
And there's the place I use it:
-----
<o:MultiplePersonSelection all="#{ivb.persons}" selection="#{ivb.selection}"
refresh="">
<f:ajax event="addPerson" render=":myForm:listing" />
<f:ajax event="removePerson" render=":myForm:listing" />
</o:MultiplePersonSelection>
<h:panelGroup id="listing">
<h:dataTable value="#{ivb.selection}" var="p" id="liste">
<h:column>
#{p.firstName}
</h:column>
<h:column>
#{p.lastName}
</h:column>
</h:dataTable>
</h:panelGroup>
----
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11385) extendedDatatable selection doesn't work on MAC
by Ilya Dyoshin (JIRA)
extendedDatatable selection doesn't work on MAC
-----------------------------------------------
Key: RF-11385
URL: https://issues.jboss.org/browse/RF-11385
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.Final, 3.3.3.Final
Environment: Apple Mac with any browser (verified with Chrome 13.0.782.220, Firefox 6.0.2, Safari 5.1 (7534.48.3), Opera 11.51 (but in Opera it works as intended to work) )
Reporter: Ilya Dyoshin
Multiple selection in richfaces extendedDataTable doesn't works as intended to work on MAC. on MAC actually the "Command" button is the replacement of "Ctrl" in PC (mostly) - so multiple selection is done via "Command+Click" - but in richfaces extendedDataTable it doesn't work - you still have to "Ctrl+Click" - but with default MAC settings that produces "Right click" - leading to opening context menu.
However, if i hit "Ctrl+DblClick" it appears to be working on Chrome - but still opening context menus :(
Only in Opera 11.51 there is no problem (working the way it intended to work) "Command+Click" produces the expected result.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11393) Component Control - onbeforeoperation attribute
by Jan Papousek (JIRA)
Component Control - onbeforeoperation attribute
-----------------------------------------------
Key: RF-11393
URL: https://issues.jboss.org/browse/RF-11393
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-misc
Affects Versions: 4.1.0.Milestone2
Environment: RichFaces 4.1.0.20110910-M2 r.0d4276b62c8366e0eaa1b7cd1c350d373e65ed79
Metamer 4.1.0.20110910-M2 r.22701
Mojarra 2.1.2-FCS
Apache Tomcat 7.0.16
OpenJDK Runtime Environment 1.6.0_22-b22 @ Linux
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
RichFaces 4.1.0.20110910-M2 r.0d4276b62c8366e0eaa1b7cd1c350d373e65ed79
Metamer 4.1.0.20110910-M2 r.22701
Apache MyFaces JSF-2.1 Core Impl 2.1.1
Apache Tomcat 7.0.16
OpenJDK Runtime Environment 1.6.0_22-b22 @Linux
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Reporter: Jan Papousek
When the attribute *onbeforeoperation* is set to e.g. _alert('something')_ and the operation is called, nothing happens. This can be reproduced in Metamer: /faces/components/richComponentControl/simple.xhtml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11327) Inplace Input - typing a space into the input field
by Jan Papousek (JIRA)
Inplace Input - typing a space into the input field
---------------------------------------------------
Key: RF-11327
URL: https://issues.jboss.org/browse/RF-11327
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component
Affects Versions: 4.1.0.Milestone1
Environment: RichFaces 4.1.0-SNAPSHOT r.d0f9c11eb0dacc1444c0a3182b12567e28aef6bc
Metamer 4.1.0-SNAPSHOT r.22654
Mojarra 2.1.2-FCS
Apache Tomcat 6.0.32
OpenJDK Runtime Environment 1.6.0_22-b22 @ Linux
Firefox 5.0 @ Linux x86_64
Reporter: Jan Papousek
After typing a space into the inplace input and clicking with the mouse out of the input, the user can't change the context of the inplace input. This can be reproduced in Metamer - faces/components/richInplaceInput/simple.xhtml.
The same behaviour occurs using both Mojarra 2.1 or MyFaces.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11180) select: selecting from unorder list selects the wrong item
by Yonatan Graber (JIRA)
select: selecting from unorder list selects the wrong item
----------------------------------------------------------
Key: RF-11180
URL: https://issues.jboss.org/browse/RF-11180
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-selects
Affects Versions: 4.0.0.Final
Environment: Win7_64 + Firefox 5, Chrome 11 andIE9
Reporter: Yonatan Graber
If rich:select relays on an items list which includes two items, one is a a prefix of the other, and the shorter one should be placed before the longer one in the list, you can't pick the shorter one (if manual input is enabled).
You should look at reproduction steps for an example, which is much more clearer than the general description of the issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (RF-11284) rich:autocomplete on Mojarra doesn't handle suggestions/selection correctly
by Ján Jamrich (JIRA)
rich:autocomplete on Mojarra doesn't handle suggestions/selection correctly
---------------------------------------------------------------------------
Key: RF-11284
URL: https://issues.jboss.org/browse/RF-11284
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.Milestone1
Environment: RichFaces 4.1.0.20110805-M1 r.10246d45dddd1d2aa2034317d5a832394cc919f9
Metamer 4.1.0.20110805-M1 r.22604
Mojarra 2.0.3-
JBoss AS 6.0.0.Final
Java(TM) SE Runtime Environment 1.6.0_26-b03 @ Linux
Chrome 12.0.742.112 @ Linux i686, IE7,
Reporter: Ján Jamrich
In the contrary with rich:autocomplete with MyFaces, there is not working suggestions or suggestion selection for autocomplete.
Common case is type some keys into autocomplete input, e.g. "al" and wait for display suggestions, in this case "Alabama, Alaska". Then pick one of them, and this item should appear in autocomplete input instead of typed characters (so that value start with upper case and so on), and this value appears in output element.
It is working correctly with autocomplete example without any changes (just open page faces/components/richAutocomplete/autocomplete.xhtml).
But when set any attribute value (such as layout to div, or minChars to 2 or something else), selection from autocomplete suggestions stop work.
Then is not possible to select item from suggestion, but when click (or select by narrovs and press enter) on an item, then suggestions disappears, but autocomplete input remain empty not the output is updated by selected value.
The workaround is invalidate session, but it causes clean attribute value (so then is not minChars or layout attribute set to any value).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years