Specification missing list of retargetable handlers #922
Comments
Reported by nick_belaevski |
ppitonak said: |
File: 20120904-1737-i_spec_922.patch |
Marked as fixed on Tuesday, September 4th 2012, 6:47:12 pm |
lu4242 said: AttachedObjectHandler.ATTACHED_OBJECT_HANDLERS_KEY With this description: "... The key in the value set of the composite component BeanDescriptor, The spec issue is this: http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-922 In few words, that constant does not have any sense and should be removed. The idea behind AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY is keep a In order to be included in AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY But AttachedObjectHandler.ATTACHED_OBJECT_HANDLERS_KEY is a complete
<myCCLib:customButton ...> Generates a list of AttachedObjectHandler with the actionListener TagHandler. <myCCLib:customButton ... /> Does not generate any list. Ignoring the first reason, the right place to put this information is not
public void retargetAttachedObjects(FacesContext context, This method is just executed once, because you can't add a The right thing to do is create a method in ViewDeclarationLanguage like this: public void addAttachedObjectHandler(FacesContext context, In this way you can do what #922 wants: allow create |
tandraschko said: |
@edburns said:
|
tandraschko said: You mentioned the AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY as answer to Cagatay's mail but thats not a solution for that. In Mojarra a AttachedObjectHandler can be attached via: In MyFaces it can be done via: Leo's proposed solution to add |
tandraschko said: |
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-922 |
There is no way to access retargetable handlers list in JSF. Mojarra uses 'javax.faces.RetargetableHandlers' attribute, while MyFaces has org.apache.myfaces.view.facelets.FaceletCompositionContext.getAttachedObjectHandlers(UIComponent) method. IMO, JSF specification should clarify this.
Affected Versions
[2.0]
The text was updated successfully, but these errors were encountered: