[
https://issues.apache.org/jira/browse/TRINIDAD-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643223#action_12643223
]
Harald Kuhn commented on TRINIDAD-1220:
---------------------------------------
Hi Bernd,
in order to get the Lifecycle to work - as expected - we had to comment the
following lines of codes (in
org.apache.myfaces.trinidadinternal.lifecycle.ApplyRequestValuesExecutor.java):
// after a normal decode check for partialTargets
final RequestContext requestContext = RequestContext.getCurrentInstance();
if (!(facesContext.getResponseComplete() ||
facesContext.getRenderResponse())
&& requestContext.isPartialRequest(facesContext))
{
UIComponent source = facesContext.getViewRoot()
.findComponent(facesContext.getExternalContext().getRequestParameterMap().get("source"));
if (source != null)
{
List<String> list = new ArrayList<String>();
Set<UIComponent> components =
requestContext.getPartialTargets(source);
for (UIComponent component : components)
{
list.add(component.getClientId(facesContext));
}
if (list.size() > 0)
{
PartialLifecycleUtils.setPartialTargets(facesContext,
list.toArray(new String[list.size()]));
}
}
}
Without this part of the code our application runs as before.
And the problems with unapplied CSS-styles seems to be gone.
> Partial Lifecycle for Trinidad
> ------------------------------
>
> Key: TRINIDAD-1220
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1220
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Components
> Affects Versions: 1.2.9-core
> Reporter: Bernd Bohmann
> Assignee: Bernd Bohmann
> Attachments: TRINIDAD-1220-trinidad-impl.patch
>
>
> The Partial Lifecycle is implemented in the following way:
> 1. Normal restore view
> 2. If the requestMap contains a non empty partialTarget parameter list.
> Invoke process decode on each partial target with invokeOnComponent.
> Invoke decode on form and source //TODO form and source can be
> contained in partialTargets
> else
> Invoke process decode
> Collect the possible partialTargets clientIds from
> requestContext.getPartialTargets(source) and store in the partialTarget list.
> 3. Invoke process validations on the partialsTargets or on the ViewRoot
> 4. Invoke update model on the partialsTargets or on the ViewRoot
> 5. Invoke application
> 6. RenderResponse with normal Trinidad PPR //TODO evaluate partial rendering
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.