New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specification missing list of retargetable handlers #922
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented 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 |
@glassfishrobot Commented |
@glassfishrobot Commented
|
@glassfishrobot Commented 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 |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
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: