From: <die...@us...> - 2013-06-14 13:38:09
|
Revision: 4254 http://openutils.svn.sourceforge.net/openutils/?rev=4254&view=rev Author: diego_schivo Date: 2013-06-14 13:38:05 +0000 (Fri, 14 Jun 2013) Log Message: ----------- CONTROLS-54 config.modules.controls.controls.dependentSelectList.xml Added Paths: ----------- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectList.java magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListAndRadioGroup.java magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListSaveHandler.java magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogRadioGroup.java magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectList.ftl magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectListAndRadioGroup.ftl magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/radioGroup.ftl magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dependentSelectList.xml magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogDependentSelectListAndRadioGroup.xml magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogRadioGroup.xml Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectList.java =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectList.java (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectList.java 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,194 @@ +/** + * + * Controls module for Magnolia CMS (http://www.openmindlab.com/lab/products/controls.html) + * Copyright(C) 2008-2012, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.gui.dialog.DialogControl; +import info.magnolia.cms.util.NodeDataUtil; +import info.magnolia.objectfactory.Classes; +import info.magnolia.objectfactory.MgnlInstantiationException; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author diego + */ +public class DialogDependentSelectList extends ConfigurableFreemarkerDialog +{ + + private SelectOptionsProvider selectOptionsProvider; + + private List<String> treePathValues; + + private List<Map<String, String>> selectOptionsList; + + private Boolean leaf; + + /** + * Returns the selectOptionsProvider. + * @return the selectOptionsProvider + */ + public SelectOptionsProvider getSelectOptionsProvider() + { + if (selectOptionsProvider == null) + { + String className = getConfigValue("selectOptionsProvider"); + if (StringUtils.isNotEmpty(className)) + { + try + { + selectOptionsProvider = Classes.newInstance(className); + } + catch (MgnlInstantiationException e) + { + log.error("can't create select options provider", e); + } + catch (ClassNotFoundException e) + { + log.error("can't create select options provider", e); + } + } + } + return selectOptionsProvider; + } + + /** + * Returns the treePathValues. + * @return the treePathValues + */ + public List<String> getTreePathValues() + { + if (treePathValues == null) + { + treePathValues = new ArrayList<String>(); + if (StringUtils.isEmpty(getRequest().getParameter("dependentSelectListCK"))) + { + if (getStorageNode() != null) + { + String treePathValue; + while (!StringUtils.isEmpty(treePathValue = NodeDataUtil.getString(getStorageNode(), getName() + + "Select" + + treePathValues.size()))) + { + treePathValues.add(treePathValue); + } + } + } + else + { + String treePathValue; + while (!StringUtils.isEmpty(treePathValue = getRequest().getParameter( + getName() + "Select" + treePathValues.size()))) + { + treePathValues.add(treePathValue); + } + } + } + return treePathValues; + } + + /** + * Returns the selectOptionsList. + * @return the selectOptionsList + */ + public List<Map<String, String>> getSelectOptionsList() + { + if (selectOptionsList == null) + { + selectOptionsList = new ArrayList<Map<String, String>>(); + leaf = Boolean.FALSE; + int length = getTreePathValues().size(); + for (int i = 0; i <= length; i++) + { + Map<String, String> options = getSelectOptionsProvider().getSelectOptions( + getTreePathValues().subList(0, i).toArray(new String[i]), + this); + if (options.isEmpty()) + { + leaf = Boolean.TRUE; + break; + } + selectOptionsList.add(options); + } + } + return selectOptionsList; + } + + /** + * Returns the leaf. + * @return the leaf + */ + public Boolean getLeaf() + { + if (leaf == null) + { + getSelectOptionsList(); + } + return leaf; + } + + /** + * {@inheritDoc} + */ + @Override + protected String getPath() + { + return "dialogs/dependentSelectList.ftl"; + } + + /** + * {@inheritDoc} + */ + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + } + + /** + * {@inheritDoc} + */ + @Override + protected void addToParameters(Map<String, Object> parameters) + { + super.addToParameters(parameters); + parameters.put("treePathValues", getTreePathValues()); + parameters.put("selectOptionsList", getSelectOptionsList()); + parameters.put("leaf", getLeaf()); + } + + public interface SelectOptionsProvider + { + + public Map<String, String> getSelectOptions(String[] treePathValues, DialogControl dialogControl); + } +} Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectList.java ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListAndRadioGroup.java =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListAndRadioGroup.java (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListAndRadioGroup.java 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,132 @@ +/** + * + * Controls module for Magnolia CMS (http://www.openmindlab.com/lab/products/controls.html) + * Copyright(C) 2008-2012, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.gui.dialog.DialogControl; + +import java.util.Map; + +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog; + + +/** + * @author diego + */ +public class DialogDependentSelectListAndRadioGroup extends ConfigurableFreemarkerDialog +{ + + private DialogDependentSelectList dependentSelectList; + + private DialogRadioGroup radioGroup; + + /** + * + */ + public DialogDependentSelectListAndRadioGroup() + { + } + + /** + * Returns the dependentSelectList. + * @return the dependentSelectList + */ + public DialogDependentSelectList getDependentSelectList() + { + if (dependentSelectList == null) + { + dependentSelectList = new DialogDependentSelectList(); + } + return dependentSelectList; + } + + /** + * Returns the radioGroup. + * @return the radioGroup + */ + public DialogRadioGroup getRadioGroup() + { + if (radioGroup == null) + { + radioGroup = new DialogRadioGroup() + { + + /** + * {@inheritDoc} + */ + @Override + protected DialogControl getThisDialogControl() + { + return DialogDependentSelectListAndRadioGroup.this; + } + + }; + } + return radioGroup; + } + + /** + * {@inheritDoc} + */ + @Override + public void setName(String s) + { + super.setName(s); + getDependentSelectList().setName(s); + getRadioGroup().setName(s); + } + + /** + * {@inheritDoc} + */ + @Override + protected String getPath() + { + return "dialogs/dependentSelectListAndRadioGroup.ftl"; + } + + /** + * {@inheritDoc} + */ + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + getDependentSelectList().init(request, response, websiteNode, configNode); + getRadioGroup().init(request, response, websiteNode, configNode); + } + + /** + * {@inheritDoc} + */ + @Override + protected void addToParameters(Map<String, Object> parameters) + { + super.addToParameters(parameters); + getDependentSelectList().addToParameters(parameters); + getRadioGroup().addToParameters(parameters); + } + +} Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListAndRadioGroup.java ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListSaveHandler.java =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListSaveHandler.java (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListSaveHandler.java 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,59 @@ +/** + * + * Controls module for Magnolia CMS (http://www.openmindlab.com/lab/products/controls.html) + * Copyright(C) 2008-2012, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import info.magnolia.cms.beans.runtime.MultipartForm; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.NodeDataUtil; +import info.magnolia.module.admininterface.FieldSaveHandler; + +import javax.jcr.RepositoryException; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author diego + */ +public class DialogDependentSelectListSaveHandler implements FieldSaveHandler +{ + + /** + * {@inheritDoc} + */ + public void save(Content parentNode, Content configNode, String name, MultipartForm form, int type, int valueType, + int isRichEditValue, int encoding) throws RepositoryException, AccessDeniedException + { + String selectName, selectValue; + int i = 0; + while (!StringUtils.isEmpty(selectValue = form.getParameter(selectName = name + "Select" + i++))) + { + NodeDataUtil.getOrCreateAndSet(parentNode, selectName, selectValue); + } + while (parentNode.hasNodeData(selectName)) + { + parentNode.deleteNodeData(selectName); + selectName = name + "Select" + i++; + } + NodeDataUtil.getOrCreateAndSet(parentNode, name, form.getParameter(name)); + } + +} Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogDependentSelectListSaveHandler.java ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogRadioGroup.java =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogRadioGroup.java (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogRadioGroup.java 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,128 @@ +/** + * + * Controls module for Magnolia CMS (http://www.openmindlab.com/lab/products/controls.html) + * Copyright(C) 2008-2012, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.gui.dialog.DialogControl; +import info.magnolia.objectfactory.Classes; +import info.magnolia.objectfactory.MgnlInstantiationException; + +import java.util.Map; + +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author diego + */ +public class DialogRadioGroup extends ConfigurableFreemarkerDialog +{ + + private RadioOptionsProvider radioOptionsProvider; + + private Map<String, String> radioOptions; + + /** + * Returns the radioOptionsProvider. + * @return the radioOptionsProvider + */ + public RadioOptionsProvider getRadioOptionsProvider() + { + if (radioOptionsProvider == null) + { + String className = getConfigValue("radioOptionsProvider"); + if (StringUtils.isNotEmpty(className)) + { + try + { + radioOptionsProvider = Classes.newInstance(className); + } + catch (MgnlInstantiationException e) + { + log.error("can't create radio options provider", e); + } + catch (ClassNotFoundException e) + { + log.error("can't create radio options provider", e); + } + } + } + return radioOptionsProvider; + } + + /** + * Returns the radioOptions. + * @return the radioOptions + */ + public Map<String, String> getRadioOptions() + { + if (radioOptions == null) + { + radioOptions = getRadioOptionsProvider().getRadioOptions(getThisDialogControl()); + } + return radioOptions; + } + + /** + * {@inheritDoc} + */ + @Override + protected String getPath() + { + return "dialogs/radioGroup.ftl"; + } + + protected DialogControl getThisDialogControl() + { + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + } + + /** + * {@inheritDoc} + */ + @Override + protected void addToParameters(Map<String, Object> parameters) + { + super.addToParameters(parameters); + parameters.put("radioOptions", getRadioOptions()); + } + + public interface RadioOptionsProvider + { + + public Map<String, String> getRadioOptions(DialogControl dialogControl); + } +} Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogRadioGroup.java ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectList.ftl =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectList.ftl (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectList.ftl 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,35 @@ +[#list selectOptionsList as options] +[#assign paramSelect]${name}Select${options_index}[/#assign] +<select style="width:100%;" class="mgnlDialogControlSelect" id="${paramSelect}" name="${paramSelect}"> + <option value="">- select -</option> + [#list options?keys as key] + <option value="${key?html!}"[#if key = request.getParameter(paramSelect)!] selected="selected"[/#if]>${options[key]!}</option> + [/#list] +</select> +[/#list] +[#assign refresh = request.getParameter("dependentSelectListCK")?has_content] +[#if !refresh] +<input type="hidden" name="${name}" value="${value?html}" /> +<script type="text/javascript"> +(function($){ + function init(){ + var dialogBoxInput = $('label[for="${name}"]').closest("tr").find("td.mgnlDialogBoxInput"); + var selects = dialogBoxInput.find('select[name!="${name}"]'); + selects.change(function(){ + var $this = $(this); + var data = $("#mgnlPath,#mgnlParagraph,#mgnlRepository,#mgnlLocale,#mgnlRichE,#mgnlRichEPaste").add(selects); + $.get($("#mgnlFormMain").attr("action"), data.serialize() + "&dependentSelectListCK=" + new Date().getTime(), function(data){ + $(data).find('label[for="${name}"]').closest("tr").find("td.mgnlDialogBoxInput").replaceAll(dialogBoxInput); + init(); + }); + }); + } + + $(function(){ + init(); + }); +})(jQuery); +</script> +[#else] +<input type="hidden" name="${name}" value="[#if leaf]${request.getParameter(paramSelect)?html!}[/#if]" /> +[/#if] Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectListAndRadioGroup.ftl =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectListAndRadioGroup.ftl (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/dependentSelectListAndRadioGroup.ftl 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,41 @@ +[#list selectOptionsList as options] +[#assign paramSelect]${name}Select${options_index}[/#assign] +<select style="width:100%;" class="mgnlDialogControlSelect" id="${paramSelect}" name="${paramSelect}"> + <option value="">- select -</option> + [#list options?keys as key] + <option value="${key?html!}"[#if key = treePathValues[options_index]!] selected="selected"[/#if]>${options[key]!}</option> + [/#list] +</select> +[/#list] +[#assign refresh = request.getParameter("dependentSelectListCK")?has_content] +[#assign found = false] +[#list radioOptions?keys as key] + [#assign checked = (!refresh && key = value!) || (refresh && key = request.getParameter(name)!)] + [#assign found = found || checked] +<input type="radio" id="${name}_${key?html!}" name="${name}" value="${key?html!}"[#if checked] checked="checked"[/#if] />${radioOptions[key]!}<br /> +[/#list] +[#if !refresh] + [#if !found] +<input type="hidden" name="${name}" value="${value?html}" /> + [/#if] +<script type="text/javascript"> +(function($){ + function init(){ + var dialogBoxInput = $('label[for="${name}"]').closest("tr").find("td.mgnlDialogBoxInput"); + var selects = dialogBoxInput.find('select[name!="${name}"]'); + selects.change(function(){ + var $this = $(this); + var data = $("#mgnlPath,#mgnlParagraph,#mgnlRepository,#mgnlLocale,#mgnlRichE,#mgnlRichEPaste").add(selects); + $.get($("#mgnlFormMain").attr("action"), data.serialize() + "&dependentSelectListCK=" + new Date().getTime(), function(data){ + $(data).find('label[for="${name}"]').closest("tr").find("td.mgnlDialogBoxInput").replaceAll(dialogBoxInput); + init(); + }); + }); + } + + $(function(){ + init(); + }); +})(jQuery); +</script> +[/#if] Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/radioGroup.ftl =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/radioGroup.ftl (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/radioGroup.ftl 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,3 @@ +[#list radioOptions?keys as key] +<input type="radio" id="${name}_${key?html!}" name="${name}" value="${key?html!}"[#if key = value!] checked="checked"[/#if] />${radioOptions[key]!}<br /> +[/#list] Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dependentSelectList.xml =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dependentSelectList.xml (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dependentSelectList.xml 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="dependentSelectList" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>46b21a36-f8c2-4193-b23e-17f06de93932</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.dialog.DialogDependentSelectList</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-06-07T18:15:12.496+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2013-06-14T15:32:49.701+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dependentSelectList.xml ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/xml \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogDependentSelectListAndRadioGroup.xml =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogDependentSelectListAndRadioGroup.xml (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogDependentSelectListAndRadioGroup.xml 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="dialogDependentSelectListAndRadioGroup" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>9c9b6148-f018-49f9-b674-102b1f4318eb</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.dialog.DialogDependentSelectListAndRadioGroup</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-06-07T18:15:12.496+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2013-06-14T15:33:36.393+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogDependentSelectListAndRadioGroup.xml ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/xml \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogRadioGroup.xml =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogRadioGroup.xml (rev 0) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogRadioGroup.xml 2013-06-14 13:38:05 UTC (rev 4254) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="dialogRadioGroup" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>6c13516f-7746-4c0f-8bee-a2a463816e4e</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.dialog.DialogRadioGroup</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-06-07T18:15:12.496+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2013-06-14T15:33:15.234+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.dialogRadioGroup.xml ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/xml \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |