I have one file with multiple file included on that
<ui:include src="file1.xhtml" />
<ui:include src="file2.xhtml" />
<ui:include src="file3.xhtml" />
<ui:include src="file4.xhtml" />
Once submitting file, I am fetching the Managed bean of all the included file and calling the save method
FacesContext ctx = FacesContext.getCurrentInstance();
File1ManagedBean fmb =(File1ManagedBean)ctx.getApplication().evaluateExpressionGet(ctx, "#{file1ManagedBean}", File1ManagedBean.class);
fmb.saveApplication();
Now in this file I have another button called "Add Another Member" which will repeat those included file again.That thing I am not able to do. I have tried with ui:repeat and but the problem is I am loading same managed bean twice and both are copying the same values. So, how could I achieve the same functionality