jakartaee / faces

Jakarta Faces
Other
102 stars 54 forks source link

Provide portable way to attach behaviors to a composite / base implementation for behaviors #1420

Open eclipse-faces-bot opened 8 years ago

eclipse-faces-bot commented 8 years ago

Implementing behaviors in a component library is currently not as easy as implementing components.

1) There is no abstract behavior base available 2) No common way to handle state saving like the StateHelper 3) No common way to attach a behavior to a component 4) No common, portable and easy way to attach a behavior to a composite

It would be a great goal to create a abstract base for behaviors, which fixes the common problems. In PrimeFaces, i developed it via:

https://github.com/primefaces/primefaces/blob/6_0/src/main/java/org/primefaces/behavior/base/AbstractBehavior.java

https://github.com/primefaces/primefaces/blob/6_0/src/main/java/org/primefaces/behavior/base/AbstractBehaviorHandler.java

Example implemtation of p:ajax: https://github.com/primefaces/primefaces/blob/6_0/src/main/java/org/primefaces/behavior/ajax/AjaxBehavior.java https://github.com/primefaces/primefaces/blob/6_0/src/main/java/org/primefaces/behavior/ajax/AjaxBehaviorHandler.java

Affected Versions

[2.2]

eclipse-faces-bot commented 5 years ago
eclipse-faces-bot commented 8 years ago

@glassfishrobot Commented Reported by tandraschko

eclipse-faces-bot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1420