[JBoss JIRA] (RF-13162) Add support for the default-behavior faces-config property-extension to the CDK @Attribute annotation
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13162?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13162:
-------------------------------
Fix Version/s: cdk-Tracking
(was: 5-Tracking)
> Add support for the default-behavior faces-config property-extension to the CDK @Attribute annotation
> -----------------------------------------------------------------------------------------------------
>
> Key: RF-13162
> URL: https://issues.jboss.org/browse/RF-13162
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: cdk
> Reporter: Brian Leathem
> Assignee: Brian Leathem
> Fix For: cdk-Tracking
>
>
> Consider the xml component property definition:
> {code:title=From command-button-props.xml}
> <property>
> <description>
> Javascript code executed when a pointer button is clicked over this element.
> </description>
> <display-name>Button Click Script</display-name>
> <icon />
> <property-name>onclick</property-name>
> <property-class>java.lang.String</property-class>
> <property-extension>
> <cdk:pass-through>false</cdk:pass-through>
> <cdk:event-name default="true">click</cdk:event-name>
> <cdk:event-name>action</cdk:event-name>
> <default-behavior>true</default-behavior>
> </property-extension>
> </property>
> {code}
> There is currently no way to define this using the CDK @Attribute annotation - the _<default-behavior>_ annotation property is absent.
> To resolve this issue (blocking RF-12952) we need to add support for specifying the _default-behavior_ to the @Attribute annotation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (RF-13118) Combination of tabPanel and accordion results in Javascript error
by Alexey Shakov (JIRA)
[ https://issues.jboss.org/browse/RF-13118?page=com.atlassian.jira.plugin.s... ]
Alexey Shakov commented on RF-13118:
------------------------------------
Sorry for a long delay, Brian.
This workarond is really very naive and doesn't fix the source of a problem...
> Combination of tabPanel and accordion results in Javascript error
> -----------------------------------------------------------------
>
> Key: RF-13118
> URL: https://issues.jboss.org/browse/RF-13118
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.3.3
> Environment: jdk1.7.0_21; apache-tomcat-7.0.42; Mojarra 2.1.24; Firefox;
> Reporter: Alexey Shakov
> Labels: low_hanging_fruit
> Fix For: 5-Tracking
>
>
> Test code:
> {code:xml}
> <?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:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
> xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
> xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
> <h:head>
> <!-- <h:outputScript name="accordionItem.js" library="org.richfaces" /> -->
> </h:head>
> <h:body>
> <c:if test="#{testBean.activeItem==null}">
> <c:set target="#{testBean}" property="activeItem" value="tab1" />
> </c:if>
>
> <h:form id="form" prependId="false">
> <h:panelGroup id="pg">
> <rich:tabPanel activeItem="#{testBean.activeItem}" id="tabPanel">
> <rich:tab header="tab1" name="tab1" render="tabPanel">
> <rich:accordion switchType="client">
> <rich:accordionItem header="Item1">
> <a4j:commandLink value="show tab2" action="#{testBean.put('activeItem','tab2')}" render="pg" execute="@this"/>
> </rich:accordionItem>
> <rich:accordionItem header="Item2">
> <a4j:commandLink value="show tab2" action="#{testBean.put('activeItem','tab2')}" render="pg" execute="@this"/>
> </rich:accordionItem>
> </rich:accordion>
> </rich:tab>
> <rich:tab header="tab2" name="tab2">
> <a4j:commandLink value="back" action="#{testBean.put('activeItem','tab1')}" render="pg" execute="@this"/>
> </rich:tab>
> </rich:tabPanel>
> </h:panelGroup>
> </h:form>
>
> </h:body>
> </html>
> {code}
> where testBean is a simple HashMap with session scope.
> So, the page contains a tab-panel with two tabs.
> First tab contains an accordion with some items. The accordion items have some menu-links inside. Click on one of this links causes second tab to be selected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (RF-13162) Add support for the default-behavior faces-config property-extension to the CDK @Attribute annotation
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-13162?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on RF-13162:
---------------------------------
[~bleathem], since this is CDK issue, we should rather target {{cdk_xyz}} versions, e.g. {{cdk-4.5.0.Alpha2}}
> Add support for the default-behavior faces-config property-extension to the CDK @Attribute annotation
> -----------------------------------------------------------------------------------------------------
>
> Key: RF-13162
> URL: https://issues.jboss.org/browse/RF-13162
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: cdk
> Reporter: Brian Leathem
> Assignee: Brian Leathem
> Fix For: 5-Tracking
>
>
> Consider the xml component property definition:
> {code:title=From command-button-props.xml}
> <property>
> <description>
> Javascript code executed when a pointer button is clicked over this element.
> </description>
> <display-name>Button Click Script</display-name>
> <icon />
> <property-name>onclick</property-name>
> <property-class>java.lang.String</property-class>
> <property-extension>
> <cdk:pass-through>false</cdk:pass-through>
> <cdk:event-name default="true">click</cdk:event-name>
> <cdk:event-name>action</cdk:event-name>
> <default-behavior>true</default-behavior>
> </property-extension>
> </property>
> {code}
> There is currently no way to define this using the CDK @Attribute annotation - the _<default-behavior>_ annotation property is absent.
> To resolve this issue (blocking RF-12952) we need to add support for specifying the _default-behavior_ to the @Attribute annotation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (RF-13167) disabled dropDownMenu is missing styleClass
by Christoph W. (JIRA)
[ https://issues.jboss.org/browse/RF-13167?page=com.atlassian.jira.plugin.s... ]
Christoph W. commented on RF-13167:
-----------------------------------
Sorry, JBoss has to much requirements for a contributor. Especially for contributor of one single line of code.
I can give it here:
{{String value = "rf-ddm-lbl " + (isDisabled ? "rf-ddm-dis " : "rf-ddm-unsel ") + convertToString(styleClass);}}
> disabled dropDownMenu is missing styleClass
> -------------------------------------------
>
> Key: RF-13167
> URL: https://issues.jboss.org/browse/RF-13167
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-menu
> Affects Versions: 4.3.3
> Reporter: Christoph W.
> Fix For: 5-Tracking
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is true then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
> Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
> Also a disabled component may be rendered (otherwise styling wont matter).
> It is easy to fix. How to:
> DropDownMenuRenderer.doEncodeEnd(...) contains following line:
> {{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
> If component is disabled styleClass must be added also.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (RF-13167) disabled dropDownMenu is missing styleClass
by Christoph W. (JIRA)
[ https://issues.jboss.org/browse/RF-13167?page=com.atlassian.jira.plugin.s... ]
Christoph W. updated RF-13167:
------------------------------
Description:
We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is true then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
Also a disabled component may be rendered (otherwise styling wont matter).
It is easy to fix. How to:
DropDownMenuRenderer.doEncodeEnd(...) contains following line:
{{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
If component is disabled styleClass must be added also.
was:
We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is false then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
Also a disabled component may be rendered (otherwise styling wont matter).
It is easy to fix. How to:
DropDownMenuRenderer.doEncodeEnd(...) contains following line:
{{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
If component is disabled styleClass must be added also.
> disabled dropDownMenu is missing styleClass
> -------------------------------------------
>
> Key: RF-13167
> URL: https://issues.jboss.org/browse/RF-13167
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-menu
> Affects Versions: 4.3.3
> Reporter: Christoph W.
> Fix For: 5-Tracking
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is true then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
> Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
> Also a disabled component may be rendered (otherwise styling wont matter).
> It is easy to fix. How to:
> DropDownMenuRenderer.doEncodeEnd(...) contains following line:
> {{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
> If component is disabled styleClass must be added also.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (RF-12292) "this" in oncomplete of a4j:commandButton returns window object.
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12292?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12292:
-------------------------------
Fix Version/s: 5.0.0.Alpha2
(was: 5-Tracking)
> "this" in oncomplete of a4j:commandButton returns window object.
> ----------------------------------------------------------------
>
> Key: RF-12292
> URL: https://issues.jboss.org/browse/RF-12292
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.2.2.Final
> Environment: Windows XP SP3, Weblogic 10.3.5, JSF 2.0.4, RF 4.2.2 Final
> Reporter: Nikolai Alexeev
> Priority: Minor
> Labels: a4j_commandbutton
> Fix For: 5.0.0.Alpha2
>
>
> When using "this" operator in oncomplete attribute of a4j:commandButton user gets window object instead of expected button object. In RF3 everything was as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months