[
https://issues.apache.org/jira/browse/MYFACES-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-2670.
-------------------------------------
Fix Version/s: 2.0.1-SNAPSHOT
Resolution: Fixed
> Components on facets are not removed programatically by PSS algorithm
> ----------------------------------------------------------------------
>
> Key: MYFACES-2670
> URL: https://issues.apache.org/jira/browse/MYFACES-2670
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.0
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Fix For: 2.0.1-SNAPSHOT
>
>
> We have the following algorithm to remove components programatically on PSS:
> List<String> clientIdsRemoved = getClientIdsRemoved(view);
>
> if (clientIdsRemoved != null)
> {
> for (String clientId : clientIdsRemoved)
> {
> view.invokeOnComponent(context, clientId, new
> ContextCallback()
> {
> public void
> invokeContextCallback(FacesContext context,
> UIComponent target)
> {
> if (target.getParent() != null)
> {
>
> target.getParent().getChildren().remove(target);
> }
> }
> });
> }
> }
> It is possible have a child on a facet, so that code will not work on that
> case. The code must take into account that scenario and if no child is
> removed, try to locate and remove from facets map
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.