java - JSF2: add ui:include to binding object's children -
I have a UIComponent
which is linked to the backing bean. For example:
For example:
>& lt; P: tab & gt; & Lt; Ui: Include src = "/ page.xhtml" /> & Lt; / P: Tab & gt;
I want to make it in my backing bean:
So basically I'm looking for the UIComponent class related to UI: This is included, so I can add it as a child in the property of my tab.
Thank you!
Update:
Now I am trying with Facelt. Index: Include Facelet :)
I have read this thread 20 times and I could not find the solution first So, I've got my additional comment after this in the right way:
fashseconducted face Context = FacesContext.getCurrentInstance (); FaceletFactory defaultfactor = ApplicationAssociate.getInstance (facesContext.getExternalContext ()). GetFaceletFactory (); Face facelet = defaultfiniti.jetfelet (xhtml url);
Then I have created a Facelift handler to add component.
Another solution was:
faceTest faceTitText = (faceText) face dialog. .getAttributes () get (FaceletContext.FACELET_CONTEXT_KEY); FaceletContext.includeFacelet (originalcompany, xhtml url);
Comments
Post a Comment