[JBoss JIRA] (RF-11558) showcase - rich:notify - sample Attributes of Notify - in some configuration it is not possible to close notification
by Juraj Huska (Created) (JIRA)
showcase - rich:notify - sample Attributes of Notify - in some configuration it is not possible to close notification
---------------------------------------------------------------------------------------------------------------------
Key: RF-11558
URL: https://issues.jboss.org/browse/RF-11558
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: showcase
Affects Versions: 4.1.0.Milestone3
Environment: app: richfaces-showcase-4.1.0.20111014-M3
all containers
all browsers
Reporter: Juraj Huska
Priority: Minor
In one specific configuration it is not possible to close notify component, despite that it said so in the notify message.
These attributes needs to be set to achieve this:
It has to be unchecked "show close button" and checked "sticky".
On the notification is written this:
This message is sticky, it will stay here until you close it.
However this behavior can be desired( user wants to have notifications which are not possible to close, to not to forget on them ....).
So IMHO this can be solved in three ways:
1. alter the notification text in this configurations of attributes on something like: This message is sticky, it will stay here until you refresh the page"
2. forbid such a behavior with always checked "show close button" when "sticky" is checked
3. change code of notify in the way that it can not be set
Personally I like second way the most.
--
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] (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-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-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