Examples of markInitialState()


Examples of javax.faces.component.UIComponent.markInitialState()

            parent.getChildren().add(outputScript);
           
            if (((AbstractFaceletContext)ctx).isMarkInitialState())
            {
                //Call it only if we are using partial state saving
                outputScript.markInitialState();
            }           
            facesContext.getAttributes().put(STANDARD_JSF_AJAX_LIBRARY_LOADED, Boolean.TRUE);
        }
    }
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                        {
                            currentHandler.applyAttachedObject(context, component);
                        }
                        if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                        {
                            component.markInitialState();
                        }
                    }
                }
                else if ((currentTarget instanceof BehaviorHolderAttachedObjectTarget &&
                        currentHandler instanceof BehaviorHolderAttachedObjectHandler))
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                    currentHandler.applyAttachedObject(context, component);
                                }
                            }
                            if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                            {
                                component.markInitialState();
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                mctx.clearMethodExpressionAttribute(innerComponent, attributeName);

                                retargetMethodExpressions(context, innerComponent);
                                if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                {
                                    innerComponent.markInitialState();
                                }
                            }
                            else
                            {
                                if ("action".equals(attributeName))
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                    {
                                        ((ActionSource2)innerComponent).setActionExpression(methodExpression);
                                    }
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                    {
                                        innerComponent.markInitialState();
                                    }
                                }
                                else if ("actionListener".equals(attributeName))
                                {
                                    //First try to remove any prevous target if any
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                    }
                                    ((ActionSource2) innerComponent).addActionListener(actionListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, actionListener);
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                    {
                                        innerComponent.markInitialState();
                                    }
                                }
                                else if ("validator".equals(attributeName))
                                {
                                    //First try to remove any prevous target if any
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                    }
                                    ((EditableValueHolder) innerComponent).addValidator(validator);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, validator);
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                    {
                                        innerComponent.markInitialState();
                                    }
                                }
                                else if ("valueChangeListener".equals(attributeName))
                                {
                                    ValueChangeListener o = (ValueChangeListener) mctx.removeMethodExpressionTargeted(innerComponent, attributeName);
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                    }
                                    ((EditableValueHolder) innerComponent).addValueChangeListener(valueChangeListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, valueChangeListener);
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                    {
                                        innerComponent.markInitialState();
                                    }
                                }
                            }
                        }
                    }
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                mctx.clearMethodExpressionAttribute(innerComponent, attributeName);

                                retargetMethodExpressions(context, innerComponent);
                                if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                {
                                    innerComponent.markInitialState();
                                }
                            }
                            else
                            {
                                //Put the retarget
View Full Code Here

Examples of javax.faces.component.UIComponent.markInitialState()

                                {
                                    innerComponent.getAttributes().put(attributeName, methodExpression);
                                }
                                if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
                                {
                                    innerComponent.markInitialState();
                                }
                            }
                        }
                        //Store the method expression to the topLevelComponent to allow reference it through EL
                        if (!ccAttrMeRedirection)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.