[richfaces-issues] [JBoss JIRA] (RF-13162) Add support for the default-behavior faces-config property-extension to the CDK @Attribute annotation

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Sep 3 20:03:06 EDT 2013


    [ https://issues.jboss.org/browse/RF-13162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801356#comment-12801356 ] 

Brian Leathem commented on RF-13162:
------------------------------------

We have 2 options moving forward:

1) Drop support for the <default-behavior> element from the RichFaces CDK
2) Modify the RichFaces CDK faces-config generator to output the correct <behavior> and <default-behavior> elements when the CDK attribute model's default event property is set.

I'm leaning towards 1), but I'm reluctant to "lose" information in the process.  However the number of components that currently use the <default-behavior> element in their faces-config property definitions is vanishingly small, so we could easily track adding the information in a long-lived jira task; to be implemented should the need arise.

[~lfryc] WDYT?
                
> 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-4.5.0.Alpha2
>
>
> 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


More information about the richfaces-issues mailing list