From 53953db75c8ec2df2f4e4f26cbd2687c6c5ebca7 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 6 Oct 2016 03:48:46 +0200 Subject: [PATCH] Added missing include method. --- src/fr/devinsy/xidyn/pages/Page.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/fr/devinsy/xidyn/pages/Page.java b/src/fr/devinsy/xidyn/pages/Page.java index 795d829..73d251d 100644 --- a/src/fr/devinsy/xidyn/pages/Page.java +++ b/src/fr/devinsy/xidyn/pages/Page.java @@ -261,6 +261,22 @@ public class Page extends TagDataManager } } + /** + * + * @param id + * @param page + * @throws Exception + */ + public void includePage(final String id, final URL source) throws Exception + { + if ((id != null) && (source != null)) + { + Page page = PageFactory.instance().create(source); + + include(id, page); + } + } + /** * * @return