From: <cs...@us...> - 2010-05-17 09:51:39
|
Revision: 2460 http://openutils.svn.sourceforge.net/openutils/?rev=2460&view=rev Author: cstrap Date: 2010-05-17 09:51:33 +0000 (Mon, 17 May 2010) Log Message: ----------- CONTROLS-27 Show thumb on grid improved, use always the uuid Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGrid.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js Added Paths: ----------- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/VirtualUriMappingMediaThumbOnGrid.java trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media/config.modules.media.virtualURIMapping.thumbDocumentMapping.xml Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGrid.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGrid.java 2010-05-17 09:51:12 UTC (rev 2459) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGrid.java 2010-05-17 09:51:33 UTC (rev 2460) @@ -111,10 +111,10 @@ .getString(colConfig, "valueType"), "uuid"); if ("uuid".equals(valueType)) { - Content node = ContentUtil.getContentByUUID("media", token); - if (node != null) + if (StringUtils.startsWith(token, "/")) { - token = node.getHandle(); + Content node = ContentUtil.getContentByUUID("media", token); + token = node != null ? node.getUUID() : token; } } } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-05-17 09:51:12 UTC (rev 2459) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-05-17 09:51:33 UTC (rev 2460) @@ -106,10 +106,10 @@ "valueType"), "uuid"); if ("uuid".equals(mediaValueType)) { - Content node = ContentUtil.getContent("media", token); - if (node != null) + if (StringUtils.startsWith(token, "/")) { - token = node.getUUID(); + Content node = ContentUtil.getContentByUUID("media", token); + token = node != null ? node.getUUID() : token; } } } Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-05-17 09:51:12 UTC (rev 2459) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-05-17 09:51:33 UTC (rev 2460) @@ -154,7 +154,7 @@ editor: new Ed(new MediaField({ })), renderer : function(v, p, record){ - return v ? '<img border="0" alt="" src="${request.contextPath}/mediaObject' + v + '/resolutions/thumbnail/data.jpg" [#if (colmap.previewWidth??)]width="${colmap.previewWidth}"[/#if] [#if (colmap.previewHeight??)]height="${colmap.previewHeight}"[/#if]/>' : v; + return v ? '<img border="0" alt="" src="${request.contextPath}/mediathumbnail/' + v + '" />' : v; } [#elseif (colmap.type?? && colmap.type = 'fckedit')] editor: new Ed(new FckEditorField({ Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js 2010-05-17 09:51:12 UTC (rev 2459) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js 2010-05-17 09:51:33 UTC (rev 2460) @@ -6,7 +6,7 @@ if (this.disabled) return; window.setNewMedia = function(nodeid, uuid, file, thumb){ - this.setValue(thumb.replace(/^.*\/mediaObject\/(.*)\/resolutions\/.*$/, '/$1')); + this.setValue(uuid); }.createDelegate(this); mgnlOpenWindow('/.magnolia/pages/mediaBrowser.html?nodeid=' + name + '&selectMedia=true&mgnlCK=' + mgnlGetCacheKiller(), 800, 500); } Added: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/VirtualUriMappingMediaThumbOnGrid.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/VirtualUriMappingMediaThumbOnGrid.java (rev 0) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/VirtualUriMappingMediaThumbOnGrid.java 2010-05-17 09:51:33 UTC (rev 2460) @@ -0,0 +1,59 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlmedia.media.virtualurimapping; + +import info.magnolia.cms.beans.config.VirtualURIMapping; +import info.magnolia.cms.core.Content; +import net.sourceforge.openutils.mgnlmedia.media.tags.el.MediaEl; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author cstrap + */ +public class VirtualUriMappingMediaThumbOnGrid implements VirtualURIMapping +{ + + private static String PREFIX_MAPPING = "/mediathumbnail/"; + + /** + * {@inheritDoc} + */ + public MappingResult mapURI(String uri) + { + + if (uri.startsWith(PREFIX_MAPPING)) + { + String uuid = StringUtils.substringAfter(uri, PREFIX_MAPPING); + Content media = MediaEl.node(uuid); + if (media != null) + { + MappingResult mr = new MappingResult(); + mr.setToURI("redirect:" + MediaEl.thumbnail(media)); + mr.setLevel(1); + return mr; + } + } + + return null; + } + +} \ No newline at end of file Property changes on: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/virtualurimapping/VirtualUriMappingMediaThumbOnGrid.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media/config.modules.media.virtualURIMapping.thumbDocumentMapping.xml =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media/config.modules.media.virtualURIMapping.thumbDocumentMapping.xml (rev 0) +++ trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media/config.modules.media.virtualURIMapping.thumbDocumentMapping.xml 2010-05-17 09:51:33 UTC (rev 2460) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="thumbDocumentMapping" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>13b23aa0-bf7e-47c4-a89b-3ce373f9d8c4</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmedia.media.virtualurimapping.VirtualUriMappingMediaThumbOnGrid</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="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-11-29T22:08:08.307+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-14T12:07:45.140+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T10:08:17.852+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> \ No newline at end of file Property changes on: trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media/config.modules.media.virtualURIMapping.thumbDocumentMapping.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2010-05-17 15:41:55
|
Revision: 2462 http://openutils.svn.sourceforge.net/openutils/?rev=2462&view=rev Author: cstrap Date: 2010-05-17 15:41:48 +0000 (Mon, 17 May 2010) Log Message: ----------- CRIT-13 Tests and rewrite parsing string Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/advanced/AdvancedCriteriaSearchTest.java trunk/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/website.00000.xml Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-05-17 10:25:48 UTC (rev 2461) +++ trunk/magnolia-test-webapp/pom.xml 2010-05-17 15:41:48 UTC (rev 2462) @@ -273,4 +273,4 @@ </snapshots> </repository> </repositories> -</project> \ No newline at end of file +</project> Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-05-17 10:25:48 UTC (rev 2461) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-05-17 15:41:48 UTC (rev 2462) @@ -20,6 +20,7 @@ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.utils; import org.apache.commons.lang.StringUtils; +import org.apache.lucene.queryParser.QueryParser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -105,36 +106,26 @@ return str; } - StringBuffer sb = new StringBuffer(str.length() * 2); - for (int i = 0; i < str.length(); i++) - { - char c = str.charAt(i); - if (c == '!' - || c == '(' - || c == ')' - || c == '*' - || c == ':' - || c == '^' - || c == '[' - || c == ']' - || c == '\"' - || c == '{' - || c == '}' - || c == '?' - || c == '-' - || c == '\\' - || c == '+') - { - sb.append('\\'); - } - else if (c == '\'') - { - sb.append('\''); - } - sb.append(c); - } + /* + * It seems that OR is a reserved word for jackrabbit/lucene, only if the search string start with word OR; if * + * OR is inside the text search string, search works (pe "Hello OR World"). Error on + * org.apache.jackrabbit.core.query.QueryImpl.execute() + * http://stackoverflow.com/questions/1311304/keyword-or-and-search-in-lucene + */ + String parseString = StringUtils.trimToEmpty(str).startsWith("OR ") + ? str.replaceFirst("\\bOR\\b", "or") + : StringUtils.trimToEmpty(str); - return sb.toString(); + /* + * http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Escaping%20Special%20Characters + * http://www.javalobby.org/java/forums/t86124.html + */ + String escapeChars = "[\\\\+\\-\\!\\(\\)\\:\\^\\]\\{\\}\\~\\*\\?]"; + parseString = parseString.replaceAll(escapeChars, "\\\\$0"); + parseString = parseString.replaceAll("\'", "\'\'"); + + return QueryParser.escape(parseString); + } /** Modified: trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/advanced/AdvancedCriteriaSearchTest.java =================================================================== --- trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/advanced/AdvancedCriteriaSearchTest.java 2010-05-17 10:25:48 UTC (rev 2461) +++ trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/advanced/AdvancedCriteriaSearchTest.java 2010-05-17 15:41:48 UTC (rev 2462) @@ -85,11 +85,13 @@ // jackrabbit 2? assertSortedResults(new String[]{ + "Frància", "Parigi (Francia)", "Parigi (Frància)", - "Frància", "Tallart, Camille d'Hostun, cónte di-", - "federale" }, result, "francia"); + "federale", + ":)", + "Faccina sorridente :)" }, result, "francia"); } @Test @@ -98,10 +100,10 @@ AdvancedResult advResult = search("francia", 2, 3); - Assert.assertEquals(advResult.getTotalSize(), 5); + Assert.assertEquals(advResult.getTotalSize(), 7); Collection< ? extends Content> result = collectCollectionFromResult(advResult); - assertSortedResults(new String[]{"Tallart, Camille d'Hostun, cónte di-", "federale" }, result, "francia"); + assertSortedResults(new String[]{"Tallart, Camille d'Hostun, cónte di-", "federale", ":)" }, result, "francia"); } @Test @@ -258,6 +260,123 @@ assertNumOfResults(0, result, "t-redirect"); } + @Test + public void testEscapeReservedKeyword() throws Exception + { + String searchText = "OR SONO"; + Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE); + criteria.setBasePath(StringUtils.EMPTY); + criteria.add(Restrictions.eq("@jcr:primaryType", "mgnl:content")); + criteria.add(Restrictions.contains("@title", searchText)); + try + { + AdvancedResult advResult = criteria.execute(); + assertNumOfResults(1, collectCollectionFromResult(advResult), searchText); + } + catch (JCRQueryException e) + { + Assert.fail("Search string not properly escaped. " + e.getMessage()); + } + } + + @Test + public void testEscapePipes() throws Exception + { + String searchText = "giovanni paolo ||"; + Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE); + criteria.setBasePath(StringUtils.EMPTY); + criteria.add(Restrictions.eq("@jcr:primaryType", "mgnl:content")); + criteria.add(Restrictions.contains("@title", searchText)); + try + { + AdvancedResult advResult = criteria.execute(); + assertNumOfResults(1, collectCollectionFromResult(advResult), searchText); + } + catch (JCRQueryException e) + { + Assert.fail("Search string not properly escaped. " + e.getMessage()); + } + } + + @Test + public void testEscapeUnconventionalKeywords() throws Exception + { + String searchText = "(ai:)(n)(uk)"; + + Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE); + criteria.setBasePath(StringUtils.EMPTY); + criteria.add(Restrictions.eq("@jcr:primaryType", "mgnl:content")); + criteria.add(Restrictions.contains("@title", searchText)); + try + { + AdvancedResult advResult = criteria.execute(); + assertNumOfResults(0, collectCollectionFromResult(advResult), searchText); + } + catch (JCRQueryException e) + { + Assert.fail("Search string not properly escaped. " + e.getMessage()); + } + } + + @Test + public void testEscapeUnconventionalKeywords0() throws Exception + { + String searchText = "(fr:)(n)"; + Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE); + criteria.setBasePath(StringUtils.EMPTY); +// criteria.add(Restrictions.eq("@jcr:primaryType", "mgnl:content")); +// criteria.add(Restrictions.contains("@title", searchText)); + + Disjunction disjunction = Restrictions.disjunction(); + disjunction.add(Restrictions.contains("@title", StringUtils.defaultString(searchText))); // serve per il + // boost! + disjunction.add(Restrictions.contains(".", StringUtils.defaultString(searchText))); + criteria.add(disjunction); + + try + { + AdvancedResult advResult = criteria.execute(); + assertNumOfResults(0, collectCollectionFromResult(advResult), searchText); + } + catch (JCRQueryException e) + { + Assert.fail("Search string not properly escaped. " + e.getMessage()); + } + } + + @Test + public void testExceptSmile() + { + String searchText = ":)"; + + AdvancedResult advResult = search(searchText, 1, 200); + Collection< ? extends Content> result = collectCollectionFromResult(advResult); + + assertNumOfResults(0, result, searchText); // Probabli it's not indexed or search doesn't work on fulltext + + } + + @Test + public void testEqualsSmile() + { + String searchText = ":)"; + + Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE); + criteria.setBasePath(StringUtils.EMPTY); + criteria.add(Restrictions.eq("@jcr:primaryType", "mgnl:content")); + criteria.add(Restrictions.eq("@title", searchText)); + try + { + AdvancedResult advResult = criteria.execute(); + assertNumOfResults(1, collectCollectionFromResult(advResult), searchText); + } + catch (JCRQueryException e) + { + Assert.fail("Search string not properly escaped. " + e.getMessage()); + } + + } + protected void assertNumOfResults(int expected, Collection< ? extends Content> result, String search) { if (result.size() != expected) @@ -329,7 +448,7 @@ { Disjunction disjunction = Restrictions.disjunction(); disjunction.add(Restrictions.contains("@title", StringUtils.defaultString(searchText))); // serve per il - // boost! + // boost! disjunction.add(Restrictions.contains(".", StringUtils.defaultString(searchText))); criteria.add(disjunction); } Modified: trunk/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/website.00000.xml =================================================================== --- trunk/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/website.00000.xml 2010-05-17 10:25:48 UTC (rev 2461) +++ trunk/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/website.00000.xml 2010-05-17 15:41:48 UTC (rev 2462) @@ -4086,4 +4086,1022 @@ </sv:node> </sv:node> </sv:node> + <sv:node sv:name="900398"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>11b91ea2-f223-4fbe-9ede-e8bd47ce05a6</sv:value> + </sv:property> + <sv:property sv:name="categories" sv:type="String"> + <sv:value>d5b12456-097a-3cdd-8f16-ded1343730e6</sv:value> + </sv:property> + <sv:property sv:name="idLemma" sv:type="String"> + <sv:value>900396</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value> OR SONO</sv:value> + </sv:property> + <sv:property sv:name="urlMappingId" sv:type="String"> + <sv:value>1072721</sv:value> + </sv:property> + <sv:property sv:name="urlMappingOtid" sv:type="String"> + <sv:value>GEDEA_frammischiare</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>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T16:35:42.498+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>t-lemma-enc</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="mainframe"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>18454936-adc4-4f67-bf15-997468b0c947</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="i1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>7aac1ab3-c7ea-4c85-96be-c89925d8ce31</sv:value> + </sv:property> + <sv:property sv:name="imagePosition" sv:type="String"> + <sv:value>L</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="lineSeparator" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="text" sv:type="String"> + <sv:value> + <p>v. tr. (coniug. come mischiare) [sec. XVII; fra (preposizione)+mischiare]. Mescolare insieme cose diverse. Rifl. fig., intromettersi, immischiarsi. +</p> + </sv:value> + </sv:property> + <sv:property sv:name="titleh2" sv:type="String"> + <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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-text-image</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="text_files"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5e917570-a7a9-4017-ad35-79680b377b2c</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:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="999"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>eb4b2594-0f13-46f5-9fe4-468accad809b</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="paths" sv:type="String"> + <sv:value>d5b12456-097a-3cdd-8f16-ded1343730e6 +</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-paths</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="columnDx"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>774ae47c-8268-4643-81fb-da455830dc2d</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="900399"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b21e749d-37b4-4eaf-910a-b6cd88e63857</sv:value> + </sv:property> + <sv:property sv:name="categories" sv:type="String"> + <sv:value>d5b12456-097a-3cdd-8f16-ded1343730e6</sv:value> + </sv:property> + <sv:property sv:name="idLemma" sv:type="String"> + <sv:value>900396</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>giovanni paolo ||</sv:value> + </sv:property> + <sv:property sv:name="urlMappingId" sv:type="String"> + <sv:value>1072721</sv:value> + </sv:property> + <sv:property sv:name="urlMappingOtid" sv:type="String"> + <sv:value>GEDEA_frammischiare</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>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T16:35:54.730+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>t-lemma-enc</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="mainframe"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>fa7d0652-e8da-4ece-a5d2-548a8ce2bb57</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="i1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>efd082ab-8cfc-4c5f-88b4-8a797314fed1</sv:value> + </sv:property> + <sv:property sv:name="imagePosition" sv:type="String"> + <sv:value>L</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="lineSeparator" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="text" sv:type="String"> + <sv:value> + <p>v. tr. (coniug. come mischiare) [sec. XVII; fra (preposizione)+mischiare]. Mescolare insieme cose diverse. Rifl. fig., intromettersi, immischiarsi. +</p> + </sv:value> + </sv:property> + <sv:property sv:name="titleh2" sv:type="String"> + <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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-text-image</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="text_files"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>62d490c6-ffa2-4681-987b-364c1d8061c4</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:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="999"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2e82a81e-a133-4af8-a95a-fb2bc2e2293f</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="paths" sv:type="String"> + <sv:value>d5b12456-097a-3cdd-8f16-ded1343730e6 +</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-paths</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="columnDx"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>28510ebd-d9e8-4709-abc6-ae81edab3b9c</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-05T13:01:35.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="1025979"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>07d93ae4-59dc-43f9-9ad4-a030acc4aeea</sv:value> + </sv:property> + <sv:property sv:name="categories" sv:type="String"> + <sv:value>7fddab60-4453-3c5a-872b-3200348b9f88</sv:value> + </sv:property> + <sv:property sv:name="idLemma" sv:type="String"> + <sv:value>1025978</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="startletter" sv:type="String"> + <sv:value>t</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>:)</sv:value> + </sv:property> + <sv:property sv:name="urlMappingId" sv:type="String"> + <sv:value>1164448</sv:value> + </sv:property> + <sv:property sv:name="urlMappingOtid" sv:type="String"> + <sv:value>GEDEA_tallart_camille_dhostun_conte_di_</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>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T16:36:02.299+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>t-lemma-enc</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="mainframe"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>4cc8b2f6-3f09-4d7a-a627-d5117109e2a0</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="i1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>d8acae8c-0fd5-474d-9b54-6b67357b2ce2</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="lineSeparator" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="text" sv:type="String"> + <sv:value><p>maresciallo di Francia (Lione 1652-Parigi 1728). Luogotenente generale (1693), batté a Spira il principe d'Assia (1703) ma fu a sua volta battuto a Höchstädt da <a href="${link:{uuid:{0a284491-cb4a-3ed4-b2b2-ac175e6e5d7a},repository:{gedea},handle:{/enciclopedia/Eugenio-di-Savoia},nodeData:{},extension:{html}}}">Eugenio di Savoia</a> e fatto prigioniero (1704). Nel 1717 entrò nel Consiglio di reggenza e nel 1726 divenne ministro di stato. +</p></sv:value> + </sv:property> + <sv:property sv:name="titleh2" sv:type="String"> + <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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-text-image</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="text_files"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>8aaab906-c253-468a-b816-d49491fd6a16</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:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="999"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b7a8e2db-34c9-4005-992b-ae7c21863b45</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="paths" sv:type="String"> + <sv:value>7fddab60-4453-3c5a-872b-3200348b9f88 +</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-paths</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="columnDx"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>053b79d8-de35-4c69-8581-5c09670cf994</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>0466043e-f3a7-4c38-86d2-6647943f0bcb</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="links" sv:type="String"> + <sv:value>Eugenio di Savoia 0a284491-cb4a-3ed4-b2b2-ac175e6e5d7a +</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Collegamenti</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-links</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="10259710"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>836300d6-3dc1-4a77-9f90-3e23bfd79c23</sv:value> + </sv:property> + <sv:property sv:name="categories" sv:type="String"> + <sv:value>7fddab60-4453-3c5a-872b-3200348b9f88</sv:value> + </sv:property> + <sv:property sv:name="idLemma" sv:type="String"> + <sv:value>1025978</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="startletter" sv:type="String"> + <sv:value>t</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Faccina sorridente :)</sv:value> + </sv:property> + <sv:property sv:name="urlMappingId" sv:type="String"> + <sv:value>1164448</sv:value> + </sv:property> + <sv:property sv:name="urlMappingOtid" sv:type="String"> + <sv:value>GEDEA_tallart_camille_dhostun_conte_di_</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>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T16:36:14.750+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>t-lemma-enc</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="mainframe"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>16462b74-0776-4a07-8cf5-dcba07c506be</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="i1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5a3caea6-ebb2-4ecc-a786-81319998ab8d</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="lineSeparator" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="text" sv:type="String"> + <sv:value><p>maresciallo di Francia (Lione 1652-Parigi 1728). Luogotenente generale (1693), batté a Spira il principe d'Assia (1703) ma fu a sua volta battuto a Höchstädt da <a href="${link:{uuid:{0a284491-cb4a-3ed4-b2b2-ac175e6e5d7a},repository:{gedea},handle:{/enciclopedia/Eugenio-di-Savoia},nodeData:{},extension:{html}}}">Eugenio di Savoia</a> e fatto prigioniero (1704). Nel 1717 entrò nel Consiglio di reggenza e nel 1726 divenne ministro di stato. +</p></sv:value> + </sv:property> + <sv:property sv:name="titleh2" sv:type="String"> + <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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-text-image</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="text_files"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>879d7398-e65c-420a-983d-7f45178a68ee</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:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="999"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>16a8488c-261e-447e-a178-02658b3c31fb</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="paths" sv:type="String"> + <sv:value>7fddab60-4453-3c5a-872b-3200348b9f88 +</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-paths</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + <sv:node sv:name="columnDx"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>3f9f902e-6634-4882-b928-4189cf12a468</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="1"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>f5a91b3c-ba3e-412b-a235-c4409262abe5</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="links" sv:type="String"> + <sv:value>Eugenio di Savoia 0a284491-cb4a-3ed4-b2b2-ac175e6e5d7a +</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Collegamenti</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:authorid" sv:type="String"> + <sv:value>import</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-02-02T02:02:42.001+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>p-box-links</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + </sv:node> </sv:node> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-18 06:49:51
|
Revision: 2463 http://openutils.svn.sourceforge.net/openutils/?rev=2463&view=rev Author: diego_schivo Date: 2010-05-18 06:49:43 +0000 (Tue, 18 May 2010) Log Message: ----------- openutils-mgnlexpressions Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/pom.xml Added Paths: ----------- trunk/openutils-mgnlexpressions/ trunk/openutils-mgnlexpressions/pom.xml trunk/openutils-mgnlexpressions/src/ trunk/openutils-mgnlexpressions/src/main/ trunk/openutils-mgnlexpressions/src/main/java/ trunk/openutils-mgnlexpressions/src/main/java/net/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ExpressionsModule.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/SamplesExtractionTask.java trunk/openutils-mgnlexpressions/src/main/resources/ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/expressions.xml trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/mgnlexpressions.tld trunk/openutils-mgnlexpressions/src/main/resources/dialog/ trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.controls.expression.xml trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.dialogs.samples-expression.xml trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.paragraphs.samples-expression.xml trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.templates.sampleExpressions.xml trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/website.sample-expressions.xml trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/paragraph-expression.jsp trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/template.jsp trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ExpressionField.config.js trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/elvalidate.gif trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/expression.gif trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/fckplugin.js trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/lang/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/lang/en.js Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-05-17 15:41:48 UTC (rev 2462) +++ trunk/magnolia-test-webapp/pom.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -194,6 +194,11 @@ <artifactId>openutils-elfunctions</artifactId> <version>1.1.2-SNAPSHOT</version> </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlexpressions</artifactId> + <version>0.0.1-SNAPSHOT</version> + </dependency> </dependencies> <dependencyManagement> <dependencies> Added: trunk/openutils-mgnlexpressions/pom.xml =================================================================== --- trunk/openutils-mgnlexpressions/pom.xml (rev 0) +++ trunk/openutils-mgnlexpressions/pom.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,145 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-parent</artifactId> + <version>1.4</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlexpressions</artifactId> + <name>Magnolia expressions module</name> + <version>0.0.1-SNAPSHOT</version> + <description>A magnolia module for evaluating jsp expressions at request time</description> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <url>http://www.openmindlab.com/lab/products/mgnlexpressions.html</url> + <issueManagement> + <system>jira</system> + <url>http://jira.openmindlab.com/browse/EXPRESSIONS</url> + </issueManagement> + <inceptionYear>2010</inceptionYear> + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnlexpressions</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnlexpressions</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk/openutils-mgnlexpressions</url> + </scm> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>bundle</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>/src/main/assembly/assembly-bundle.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <useManifestOnlyJar>false</useManifestOnlyJar> + </configuration> + </plugin> + </plugins> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>${magnolia.version}</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>${magnolia.version}</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlcontrols</artifactId> + <version>4.0.6</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <classifier>tests</classifier> + <scope>test</scope> + <version>${magnolia.version}</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.7</version> + <scope>test</scope> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia-cms.com</id> + <name>magnolia repository</name> + <url>http://repository.magnolia-cms.com/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + <properties> + <magnolia.version>4.3.1</magnolia.version> + </properties> +</project> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/pom.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,41 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.dialog; + +import net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ExpressionDialog extends ConfigurableFreemarkerDialog +{ + + /** + * {@inheritDoc} + */ + @Override + protected String getPath() + { + return "dialog/expression.ftl"; + } + +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,74 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.el; + +import java.lang.reflect.Method; +import java.util.HashMap; +import java.util.Map; + +import javax.servlet.jsp.JspException; +import javax.servlet.jsp.PageContext; + +import org.apache.commons.lang.StringUtils; +import org.apache.taglibs.standard.lang.jstl.Evaluator; +import org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ExpressionsElFunctions +{ + + /** + * Logger. + */ + private static Logger log = LoggerFactory.getLogger(ExpressionsElFunctions.class); + + private static Map<String, Method> EL_FUNCTIONS; + + static + { + EL_FUNCTIONS = new HashMap<String, Method>(); + try + { + EL_FUNCTIONS.put("mexpr:upperCase", StringUtils.class.getMethod("upperCase", String.class)); + } + catch (SecurityException e) + { + log.error(e.getMessage(), e); + } + catch (NoSuchMethodException e) + { + log.error(e.getMessage(), e); + } + } + + public static Object evaluate(String expression, PageContext pageContext) throws JspException + { + Evaluator evaluator = (Evaluator) ExpressionEvaluatorManager + .getEvaluatorByName(ExpressionEvaluatorManager.EVALUATOR_CLASS); + return evaluator.evaluate(null, expression, Boolean.class, null, pageContext, EL_FUNCTIONS, "mexpr"); + } + +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ExpressionsModule.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ExpressionsModule.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ExpressionsModule.java 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,60 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.module; + +import info.magnolia.module.ModuleLifecycle; +import info.magnolia.module.ModuleLifecycleContext; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ExpressionsModule implements ModuleLifecycle +{ + + /** + * Logger. + */ + private Logger log = LoggerFactory.getLogger(ExpressionsModule.class); + + /** + * {@inheritDoc} + */ + public void start(ModuleLifecycleContext moduleLifecycleContext) + { + log.info("Starting module expressions"); + + // Enable support for EL functions in expression editor + System.setProperty("javax.servlet.jsp.functions.allowed", "true"); + } + + /** + * {@inheritDoc} + */ + public void stop(ModuleLifecycleContext moduleLifecycleContext) + { + log.info("Stopping module expressions"); + } + +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/module/ExpressionsModule.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,53 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.setup; + +import info.magnolia.cms.core.SystemProperty; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.Task; +import it.openutils.mgnltasks.SimpleModuleVersionHandler; + +import java.util.ArrayList; +import java.util.List; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ExpressionsModuleVersionHandler extends SimpleModuleVersionHandler +{ + + /** + * {@inheritDoc} + */ + @Override + protected List<Task> getStartupTasks(InstallContext installContext) + { + List<Task> tasks = new ArrayList<Task>(); + + if (SystemProperty.getBooleanProperty(SystemProperty.MAGNOLIA_BOOTSTRAP_SAMPLES)) + { + tasks.add(new SamplesExtractionTask()); + } + + return tasks; + } +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/SamplesExtractionTask.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/SamplesExtractionTask.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/SamplesExtractionTask.java 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,90 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.setup; + +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.core.Path; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractTask; +import info.magnolia.module.delta.TaskExecutionException; +import info.magnolia.module.files.FileExtractionLogger; +import info.magnolia.module.files.FileExtractor; +import info.magnolia.module.files.MD5CheckingFileExtractor; + +import java.io.IOException; + +import org.apache.commons.lang.StringUtils; + + +/** + * Extract samples files to webapp root. + * @author fgiust + */ +public class SamplesExtractionTask extends AbstractTask +{ + + public SamplesExtractionTask() + { + super("Samples extraction", "Extracts jsp files for samples."); + } + + /** + * {@inheritDoc} + */ + public void execute(final InstallContext ctx) throws TaskExecutionException + { + final HierarchyManager hm = ctx.getConfigHierarchyManager(); + final MD5CheckingFileExtractor extractor = new MD5CheckingFileExtractor(new FileExtractionLogger() + { + + public void error(String message) + { + ctx.warn(message); + } + }, hm); + try + { + extractor.extractFiles(new FileExtractor.Transformer() + { + + public String accept(String resourcePath) + { + final boolean thisIsAFileWeWant = resourcePath.startsWith("/mgnl-files/") + && StringUtils.contains(resourcePath, "/samples-expressions/"); + if (!thisIsAFileWeWant) + { + return null; + } + final String relTargetPath = StringUtils.removeStart(resourcePath, "/mgnl-files/"); + return Path.getAbsoluteFileSystemPath(relTargetPath); + } + + }); + } + catch (IOException e) + { + throw new TaskExecutionException("Could not extract files for module " + + ctx.getCurrentModuleDefinition() + + ": " + + e.getMessage(), e); + } + } + +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/SamplesExtractionTask.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/expressions.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/expressions.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/expressions.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "module.dtd"> +<module> + <name>expressions</name> + <displayName>expressions</displayName> + <description>Openutils - Magnolia Expressions Library</description> + <class>net.sourceforge.openutils.mgnlexpressions.module.ExpressionsModule</class> + <versionHandler>net.sourceforge.openutils.mgnlexpressions.setup.ExpressionsModuleVersionHandler</versionHandler> + <version>${project.version}</version> +</module> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/META-INF/magnolia/expressions.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/mgnlexpressions.tld =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/mgnlexpressions.tld (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/mgnlexpressions.tld 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,14 @@ +<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" + version="2.0"> + <description>Magnolia expressions Tags and EL functions</description> + <display-name>Magnolia expressions Tags and EL functions</display-name> + <tlib-version>1.0</tlib-version> + <short-name>mexpr</short-name> + <uri>mgnlexpressions</uri> + <function> + <name>evaluate</name> + <function-class>net.sourceforge.openutils.mgnlexpressions.el.ExpressionsElFunctions</function-class> + <function-signature>java.lang.Object evaluate(java.lang.String, javax.servlet.jsp.PageContext)</function-signature> + </function> +</taglib> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/META-INF/tld/mgnlexpressions.tld ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,37 @@ +[#assign key = uuid?replace("-", "")] + +[#if !alreadyrendered] + <script type="text/javascript" src="${request.contextPath}/.resources/fckeditor/fckeditor.js"></script> + + <script type="text/javascript"> +function FCKeditor_OnComplete(oEditor){ + oEditor.Events.AttachEvent('OnAfterLinkedFieldUpdate', doLinkedFieldUpdate${key}); +} + </script> +[/#if] + + <script type="text/javascript"> +var sBasePath = '${request.contextPath}/.resources/fckeditor/'; +var oFCKeditor = new FCKeditor('${name}'); +oFCKeditor.BasePath = sBasePath; +oFCKeditor.Config['CustomConfigurationsPath'] = '${request.contextPath}/.resources/expressions/js/ExpressionField.config.js'; +oFCKeditor.Config['EnterMode'] = 'br'; +oFCKeditor.Config['ShiftEnterMode'] = 'br'; +oFCKeditor.ToolbarSet = 'Expression'; +oFCKeditor.Height = 200; +oFCKeditor.Value = "${value?html}"; +oFCKeditor.Create(); + +function doLinkedFieldUpdate${key}(oEditor) { + var oDOM = oEditor.EditorDocument; + var value; + if (document.all){ + value = oDOM.body.innerText; + } else { + var r = oDOM.createRange(); + r.selectNodeContents(oDOM.body); + value = r.toString(); + } + oEditor.LinkedField.value = value ; +} + </script> Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.controls.expression.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.controls.expression.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.controls.expression.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="expression" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>a52c6261-148c-4d86-a3ba-0ba7d955f203</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlexpressions.dialog.ExpressionDialog</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>2010-01-12T18:12:19.468+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:42:10.997+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.controls.expression.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.dialogs.samples-expression.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.dialogs.samples-expression.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.dialogs.samples-expression.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-expression" 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:uuid" sv:type="String"> + <sv:value>9d81e7ea-aa9f-4f6d-93ad-f256448d8934</sv:value> + </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnltestwebapp.lang.messages</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:43.213+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-04-28T23:43:10.557+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:28:59.221+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:title" sv:type="String"> + <sv:value/> + </sv:property> + </sv:node> + <sv:node sv:name="tabExpression"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>f12c70da-4b71-421c-a047-053006771028</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>tab</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Expression</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.217+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-06-19T14:49:08.436+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:29:14.471+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="expression"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>1f75840f-078c-465f-b2cc-c97f2f0aa1e4</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>expression</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Expression</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>String</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.357+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-07T14:56:33.437+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:29:36.003+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.dialogs.samples-expression.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.paragraphs.samples-expression.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.paragraphs.samples-expression.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.paragraphs.samples-expression.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-expression" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>c5df50f9-8fa2-40f7-8924-dde615945122</sv:value> + </sv:property> + <sv:property sv:name="description" sv:type="String"> + <sv:value>Sample expression paragraph</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-expressions/paragraph-expression.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Expression sample</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</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-09-25T12:45:26.721+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:31:52.770+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.paragraphs.samples-expression.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.templates.sampleExpressions.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.templates.sampleExpressions.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.templates.sampleExpressions.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sampleExpressions" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>18983ea3-5ac4-466b-87d7-9125923b2224</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-expressions/template.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Expressions sample template</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</sv:value> + </sv:property> + <sv:property sv:name="visible" sv:type="String"> + <sv:value>true</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-09-23T16:56:46.344+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T17:32:00.676+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.templates.sampleExpressions.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/website.sample-expressions.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/website.sample-expressions.xml (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/website.sample-expressions.xml 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,106 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sample-expressions" 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:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>c2495294-96b7-4452-80b8-f9aeac4aa8f9</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Expressions sample</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-17T17:33:59.147+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T18:26:25.811+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>sampleExpressions</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="main"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>217ca3e4-fbe5-48e0-919d-effa203d0775</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-17T17:49:39.831+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T18:26:25.811+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="0"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2f3cf9b8-b8e6-4bde-bac5-5e51328c36f3</sv:value> + </sv:property> + <sv:property sv:name="expression" sv:type="String"> + <sv:value>${'hello' eq 'world'}</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-17T17:49:39.831+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-17T18:26:25.811+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>samples-expression</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/website.sample-expressions.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/paragraph-expression.jsp =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/paragraph-expression.jsp (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/paragraph-expression.jsp 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,9 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" + xmlns:fn="urn:jsptld:http://java.sun.com/jsp/jstl/functions" xmlns:cmsu="urn:jsptld:cms-util-taglib" + xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:media="http://net.sourceforge.openutils/mgnlMedia" + xmlns:mu="mgnlutils" xmlns:mexpr="mgnlexpressions"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> + <cms:setNode var="node" /> + <p>${node.expression} = ${mexpr:evaluate(node.expression, pageContext)}</p> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/paragraph-expression.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/template.jsp =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/template.jsp (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/template.jsp 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,25 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:cmsu="urn:jsptld:cms-util-taglib" xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" + xmlns:media="http://net.sourceforge.openutils/mgnlMedia"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> + <jsp:text> + <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> + </jsp:text> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>${actpage.title}</title> + <cms:links /> + </head> + <body> + <h1>${actpage.title}</h1> + + <cms:contentNodeIterator contentNodeCollectionName="main"> + <cms:editBar /> + <cms:includeTemplate /> + </cms:contentNodeIterator> + <cms:newBar contentNodeCollectionName="main" paragraph="samples-expression" /> + </body> + </html> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/templates-expressions/template.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ExpressionField.config.js =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ExpressionField.config.js (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ExpressionField.config.js 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,5 @@ +FCKConfig.ToolbarSets['Expression'] = [ + ['Expression', 'ArithmeticOperator', 'LogicalOperator', 'UnaryOperator', 'RelationalOperator', 'ELValidate'] +]; + +FCKConfig.Plugins.Add('expression', 'en', '../../../.resources/expressions/js/fckeditor-plugins/'); Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/ExpressionField.config.js ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/elvalidate.gif =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/elvalidate.gif ___________________________________________________________________ Added: svn:mime-type + image/gif Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/expression.gif =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/expression.gif ___________________________________________________________________ Added: svn:mime-type + image/gif Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/fckplugin.js =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/fckplugin.js (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-resources/expressions/js/fckeditor-plugins/expression/fckplugin.js 2010-05-18 06:49:43 UTC (rev 2463) @@ -0,0 +1,144 @@ +var InsertOptionCommand = function(name, options){ + this.Name = name; + this.Options = options; +} + +InsertOptionCommand.prototype = { + Execute: function(optionName){ + FCKUndo.SaveUndoStep(); + FCK.InsertHtml(this.Options[optionName].value); + }, + GetState: function(){ + return FCK_TRISTATE_OFF; + } +}; + +var InsertOptionCombo = function(commandName, label, options){ + this.CommandName = commandName; + this.Label = label; + this.Options = options; + this.Style = FCK_TOOLBARITEM_ONLYTEXT; +} + +InsertOptionCombo.prototype = new FCKToolbarSpecialCombo; + +InsertOptionCombo.prototype.GetLabel = function(){ + return this.Label; +} + +InsertOptionCombo.prototype.CreateItems = function(targetSpecialCombo){ + for (var optionName in this.Options){ + targetSpecialCombo.AddItem(optionName, this.Options[optionName].caption); + } +} + +/* Expression button */ +FCKCommands.RegisterCommand('Expression', new FCKDialogCommand('Expression', FCKLang.ExpressionDlgTitle, FCKPlugins.Items['expression'].Path + '../../../../../.magnolia/pages/expression-picker.html', 640, 300)); +var oExpressionItem = new FCKToolbarButton('Expression', FCKLang.ExpressionBtn); +oExpressionItem.IconPath = FCKPlugins.Items['expression'].Path + 'expression.gif'; +oExpressionItem.Style = FCK_TOOLBARITEM_ICONTEXT; +FCKToolbarItems.RegisterItem('Expression', oExpressionItem); + +/* Arithmetic operators dropdown */ +var arithmeticOperatorOptions = { + 'add': { + caption: '+', + value: ' + ' + }, + 'sub': { + caption: '-', + value: ' - ' + }, + 'mul': { + caption: '*', + value: ' * ' + }, + 'div': { + caption: '/', + value: ' / ' + }, + 'mod': { + caption: '%', + value: ' % ' + } +}; +FCKCommands.RegisterCommand('ArithmeticOperator', new InsertOptionCommand('ArithmeticOperator', arithmeticOperatorOptions)); +FCKToolbarItems.RegisterItem('ArithmeticOperator', new InsertOptionCombo('ArithmeticOperator', 'Arithmetic', arithmeticOperatorOptions)); + +/* Logical operators dropdown */ +var logicalOperatorOptions = { + 'and': { + caption: 'and', + value: ' and ' + }, + 'or': { + caption: 'or', + value: ' or ' + } +}; +FCKCommands.RegisterCommand('LogicalOperator', new InsertOptionCommand('LogicalOperator', logicalOperatorOptions)); +FCKToolbarItems.RegisterItem('LogicalOperator', new InsertOptionCombo('LogicalOperator', 'Logical', logicalOperatorOptions)); + +/* Unary operators dropdown */ +var unaryOperatorOptions = { + 'not': { + caption: 'not', + value: '!' + }, + 'empty': { + caption: 'empty', + value: 'empty ' + } +}; +FCKCommands.RegisterCommand('UnaryOperator', new InsertOptionCommand('UnaryOperator', unaryOperatorOptions)); +FCKToolbarItems.RegisterItem('UnaryOperator', new InsertOptionCombo('UnaryOperator', 'Unary', unaryOperatorOptions)); + +/* Relational operators dropdown */ +var relationalOperatorOptions = { + 'eq': { + caption: '==', + value: ' == ' + }, + 'ne': { + caption: '!=', + value: ' != ' + }, + 'lt': { + caption: '<', + value: ' < ' + }, + 'gt': { + caption: '>', + value: ' > ' + }, + 'le': { + caption: '<=', + value: ' <= ' + }, + 'ge': { + caption: '>=', + value: ' >= ' + } +}; +FCKCommands.RegisterCommand('RelationalOperator', new InsertOptionCommand('RelationalOperator', relationalOperatorOptions)); +FCKToolbarItems.RegisterItem('RelationalOperator', new InsertOptionCombo('RelationalOperator', 'Relational', relationalOperatorOptions)); + +/* EL Validate button */ +var ELValidateCommand = function(name){ + this.Name = name; +} + +ELValidateCommand.prototype = { + Execute: function(optionName){ + alert(this.Name); + }, + GetState: function(){ + return FCK_TRISTATE_OFF; + } +}; + +FCKCommands.RegisterCommand('ELValidate', new FCKDialogCommand('ELValidate', 'EL Validate', FCKPlugins.Items['expression'].Path + '../../../../../.magnolia/pages/el-validate.html', 600, 300)); +var oELValidateItem = new FCKToolbarButton('ELValidate', 'Validate'); +oELValidateItem.IconPath = FCKPlugins.Items['expression'].Path + 'elvalidate.gif'; +oELValidateItem.Style = FCK_TOOLBARITEM_ICONTEXT; +FCKToolbarItems.RegisterItem('ELValidate', oELValidateItem); Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-reso... [truncated message content] |
From: <die...@us...> - 2010-05-18 07:31:16
|
Revision: 2464 http://openutils.svn.sourceforge.net/openutils/?rev=2464&view=rev Author: diego_schivo Date: 2010-05-18 07:31:09 +0000 (Tue, 18 May 2010) Log Message: ----------- openutils-mgnlexpressions Modified Paths: -------------- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java Added Paths: ----------- trunk/magnolia-test-webapp/src/main/webapp/WEB-INF/jsps/ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/FilesExtractionTask.java trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/evaluate.jsp trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/samples-expressions/ trunk/openutils-mgnlexpressions/src/test/ trunk/openutils-mgnlexpressions/src/test/java/ trunk/openutils-mgnlexpressions/src/test/resources/ Property Changed: ---------------- trunk/magnolia-test-webapp/src/main/webapp/templates/ trunk/openutils-mgnlexpressions/ Property changes on: trunk/magnolia-test-webapp/src/main/webapp/WEB-INF/jsps ___________________________________________________________________ Added: svn:ignore + expressions Property changes on: trunk/magnolia-test-webapp/src/main/webapp/templates ___________________________________________________________________ Modified: svn:ignore - samples samples-media dms samples-controls + samples samples-media dms samples-controls samples-expressions Property changes on: trunk/openutils-mgnlexpressions ___________________________________________________________________ Added: svn:ignore + target .checkstyle .classpath .settings .project Modified: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java 2010-05-18 06:49:43 UTC (rev 2463) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/el/ExpressionsElFunctions.java 2010-05-18 07:31:09 UTC (rev 2464) @@ -19,10 +19,16 @@ package net.sourceforge.openutils.mgnlexpressions.el; +import info.magnolia.context.MgnlContext; +import info.magnolia.context.WebContext; + +import java.io.IOException; +import java.io.StringWriter; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; +import javax.servlet.ServletException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; @@ -47,6 +53,11 @@ private static Map<String, Method> EL_FUNCTIONS; + /** + * + */ + public static final String EXPRESSION_ATTRIBUTE_NAME = ExpressionsElFunctions.class.getName() + ".expression"; + static { EL_FUNCTIONS = new HashMap<String, Method>(); @@ -71,4 +82,12 @@ return evaluator.evaluate(null, expression, Boolean.class, null, pageContext, EL_FUNCTIONS, "mexpr"); } + public static String evaluate(String expression) throws ServletException, IOException + { + WebContext wc = MgnlContext.getWebContext(); + wc.getRequest().setAttribute(EXPRESSION_ATTRIBUTE_NAME, expression); + StringWriter writer = new StringWriter(); + wc.include("/WEB-INF/jsps/expressions/evaluate.jsp", writer); + return writer.toString(); + } } Modified: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java 2010-05-18 06:49:43 UTC (rev 2463) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/ExpressionsModuleVersionHandler.java 2010-05-18 07:31:09 UTC (rev 2464) @@ -27,7 +27,9 @@ import java.util.ArrayList; import java.util.List; +import org.apache.commons.lang.StringUtils; + /** * @author dschivo * @version $Id$ @@ -43,9 +45,33 @@ { List<Task> tasks = new ArrayList<Task>(); + tasks.add(new FilesExtractionTask() + { + + /** + * {@inheritDoc} + */ + @Override + protected boolean accept(String resource) + { + return super.accept(resource) && StringUtils.contains(resource, "/WEB-INF/jsps/"); + } + }); + if (SystemProperty.getBooleanProperty(SystemProperty.MAGNOLIA_BOOTSTRAP_SAMPLES)) { - tasks.add(new SamplesExtractionTask()); + tasks.add(new FilesExtractionTask("Samples extraction", "Extracts jsp files for samples.") + { + + /** + * {@inheritDoc} + */ + @Override + protected boolean accept(String resource) + { + return super.accept(resource) && StringUtils.contains(resource, "/samples-expressions/"); + } + }); } return tasks; Added: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/FilesExtractionTask.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/FilesExtractionTask.java (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/FilesExtractionTask.java 2010-05-18 07:31:09 UTC (rev 2464) @@ -0,0 +1,98 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlexpressions.setup; + +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.core.Path; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractTask; +import info.magnolia.module.delta.TaskExecutionException; +import info.magnolia.module.files.FileExtractionLogger; +import info.magnolia.module.files.FileExtractor; +import info.magnolia.module.files.MD5CheckingFileExtractor; + +import java.io.IOException; + +import org.apache.commons.lang.StringUtils; + + +/** + * Extract files to webapp root. + * @author fgiust + * @author dschivo + */ +public class FilesExtractionTask extends AbstractTask +{ + + public FilesExtractionTask(String taskName, String taskDescription) + { + super(taskName, taskDescription); + } + + public FilesExtractionTask() + { + this("Files extraction", "Extracts files to webapp root."); + } + + /** + * {@inheritDoc} + */ + public void execute(final InstallContext ctx) throws TaskExecutionException + { + final HierarchyManager hm = ctx.getConfigHierarchyManager(); + final MD5CheckingFileExtractor extractor = new MD5CheckingFileExtractor(new FileExtractionLogger() + { + + public void error(String message) + { + ctx.warn(message); + } + }, hm); + try + { + extractor.extractFiles(new FileExtractor.Transformer() + { + + public String accept(String resourcePath) + { + if (!FilesExtractionTask.this.accept(resourcePath)) + { + return null; + } + final String relTargetPath = StringUtils.removeStart(resourcePath, "/mgnl-files/"); + return Path.getAbsoluteFileSystemPath(relTargetPath); + } + + }); + } + catch (IOException e) + { + throw new TaskExecutionException("Could not extract files for module " + + ctx.getCurrentModuleDefinition() + + ": " + + e.getMessage(), e); + } + } + + protected boolean accept(String resource) + { + return resource.startsWith("/mgnl-files/"); + } +} Property changes on: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/setup/FilesExtractionTask.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/evaluate.jsp =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/evaluate.jsp (rev 0) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/evaluate.jsp 2010-05-18 07:31:09 UTC (rev 2464) @@ -0,0 +1,12 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:cmsu="urn:jsptld:cms-util-taglib" xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:mexpr="mgnlexpressions"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="true" /> + <c:set var="expression" value="${'${'}${requestScope['net.sourceforge.openutils.mgnlexpressions.el.ExpressionsElFunctions.expression']}}" /> + <c:catch var="e"> + <![CDATA[${mexpr:evaluate(expression, pageContext)}]]> + </c:catch> + <c:if test="${not empty e}"> + <![CDATA[${e.cause.message}]]> + </c:if> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/WEB-INF/jsps/expressions/evaluate.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-18 12:13:32
|
Revision: 2476 http://openutils.svn.sourceforge.net/openutils/?rev=2476&view=rev Author: diego_schivo Date: 2010-05-18 12:12:03 +0000 (Tue, 18 May 2010) Log Message: ----------- openutils-mgnlcontextmenu Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/pom.xml Added Paths: ----------- trunk/openutils-mgnlcontextmenu/ trunk/openutils-mgnlcontextmenu/pom.xml trunk/openutils-mgnlcontextmenu/src/ trunk/openutils-mgnlcontextmenu/src/main/ trunk/openutils-mgnlcontextmenu/src/main/java/ trunk/openutils-mgnlcontextmenu/src/main/java/net/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ContextMenuModule.java trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java trunk/openutils-mgnlcontextmenu/src/main/resources/ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/contextmenu.xml trunk/openutils-mgnlcontextmenu/src/test/ trunk/openutils-mgnlcontextmenu/src/test/java/ trunk/openutils-mgnlcontextmenu/src/test/resources/ Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-05-18 12:10:46 UTC (rev 2475) +++ trunk/magnolia-test-webapp/pom.xml 2010-05-18 12:12:03 UTC (rev 2476) @@ -199,6 +199,11 @@ <artifactId>openutils-mgnlexpressions</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlcontextmenu</artifactId> + <version>0.0.1-SNAPSHOT</version> + </dependency> </dependencies> <dependencyManagement> <dependencies> Added: trunk/openutils-mgnlcontextmenu/pom.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/pom.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-18 12:12:03 UTC (rev 2476) @@ -0,0 +1,145 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-parent</artifactId> + <version>1.4</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlcontextmenu</artifactId> + <name>Magnolia context menu module</name> + <version>0.0.1-SNAPSHOT</version> + <description>A magnolia module for editing content via context menu</description> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <url>http://www.openmindlab.com/lab/products/mgnlcontextmenu.html</url> + <issueManagement> + <system>jira</system> + <url>http://jira.openmindlab.com/browse/CONTEXTMENU</url> + </issueManagement> + <inceptionYear>2010</inceptionYear> + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnlcontextmenu</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnlcontextmenu</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk/openutils-mgnlcontextmenu</url> + </scm> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>bundle</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>/src/main/assembly/assembly-bundle.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <useManifestOnlyJar>false</useManifestOnlyJar> + </configuration> + </plugin> + </plugins> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>${magnolia.version}</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>${magnolia.version}</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlcontrols</artifactId> + <version>4.0.6</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <classifier>tests</classifier> + <scope>test</scope> + <version>${magnolia.version}</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.7</version> + <scope>test</scope> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia-cms.com</id> + <name>magnolia repository</name> + <url>http://repository.magnolia-cms.com/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + <properties> + <magnolia.version>4.3.1</magnolia.version> + </properties> +</project> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/pom.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ContextMenuModule.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ContextMenuModule.java (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ContextMenuModule.java 2010-05-18 12:12:03 UTC (rev 2476) @@ -0,0 +1,59 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlcontextmenu.module; + +import info.magnolia.module.ModuleLifecycle; +import info.magnolia.module.ModuleLifecycleContext; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author dschivo + */ +public class ContextMenuModule implements ModuleLifecycle +{ + + /** + * Logger. + */ + private Logger log = LoggerFactory.getLogger(ContextMenuModule.class); + + /** + * {@inheritDoc} + */ + public void start(ModuleLifecycleContext moduleLifecycleContext) + { + log.info("Starting module contextmenu"); + + // Enable support for EL functions in expression editor + System.setProperty("javax.servlet.jsp.functions.allowed", "true"); + } + + /** + * {@inheritDoc} + */ + public void stop(ModuleLifecycleContext moduleLifecycleContext) + { + log.info("Stopping module contextmenu"); + } + +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/module/ContextMenuModule.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java 2010-05-18 12:12:03 UTC (rev 2476) @@ -0,0 +1,31 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlcontextmenu.setup; + +import it.openutils.mgnltasks.SimpleModuleVersionHandler; + + +/** + * @author dschivo + */ +public class ContextMenuModuleVersionHandler extends SimpleModuleVersionHandler +{ + +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/contextmenu.xml 2010-05-18 12:12:03 UTC (rev 2476) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "module.dtd"> +<module> + <name>contextmenu</name> + <displayName>contextmenu</displayName> + <description>Openutils - Magnolia Context Menu Library</description> + <class>net.sourceforge.openutils.mgnlcontextmenu.module.ContextMenuModule</class> + <versionHandler>net.sourceforge.openutils.mgnlcontextmenu.setup.ContextMenuModuleVersionHandler</versionHandler> + <version>${project.version}</version> +</module> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/magnolia/contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-05-18 12:10:46 UTC (rev 2475) +++ trunk/pom.xml 2010-05-18 12:12:03 UTC (rev 2476) @@ -48,6 +48,7 @@ <module>openutils-mgnlutils</module> <module>openutils-mgnltagcloud</module> <module>openutils-mgnlexpressions</module> + <module>openutils-mgnlcontextmenu</module> <module>magnolia-test-webapp</module> </modules> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-18 13:13:43
|
Revision: 2477 http://openutils.svn.sourceforge.net/openutils/?rev=2477&view=rev Author: diego_schivo Date: 2010-05-18 13:13:34 +0000 (Tue, 18 May 2010) Log Message: ----------- openutils-mgnlcontextmenu Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/pages/ExpressionValidator.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/tags/EvaluateTag.java Added Paths: ----------- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/EditContentInfo.java trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ContextMenuElFunctions.java trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/FilesExtractionTask.java trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/mgnlcontextmenu.tld trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-contextmenu.jsp trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/img/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/img/menu-text.png trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/jquery-1.4.2.min.js trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/jquery.contextMenu.js Property Changed: ---------------- trunk/magnolia-test-webapp/src/main/webapp/templates/ trunk/openutils-mgnlcontextmenu/ Property changes on: trunk/magnolia-test-webapp/src/main/webapp/templates ___________________________________________________________________ Modified: svn:ignore - samples samples-media dms samples-controls samples-expressions + samples samples-media dms samples-controls samples-expressions samples-contextmenu Property changes on: trunk/openutils-mgnlcontextmenu ___________________________________________________________________ Added: svn:ignore + .checkstyle .classpath .project .settings target Added: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/EditContentInfo.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/EditContentInfo.java (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/EditContentInfo.java 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,125 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlcontextmenu; + +/** + * @author dschivo + * @version $Id$ + */ +public class EditContentInfo +{ + + /** + * Content key + */ + private final String key; + + /** + * Paragraph's handle + */ + private final String path; + + /** + * HTML identifier of the element containing the content + */ + private final String elementId; + + /** + * Wrapper HTML tag to which attach context menu + */ + private String parentTrigger; + + /** + * Context menu type + */ + private String contextMenu; + + /** + * Enter mode for FCK editor + */ + private String enterMode; + + /** + * JavaScript function to call when context menu opens + */ + private String showCallback; + + public EditContentInfo(String key, String path, String elementId) + { + this.key = key; + this.path = path; + this.elementId = elementId; + } + + public String getKey() + { + return key; + } + + public String getPath() + { + return path; + } + + public String getElementId() + { + return elementId; + } + + public String getParentTrigger() + { + return parentTrigger; + } + + public void setParentTrigger(String parentTrigger) + { + this.parentTrigger = parentTrigger; + } + + public String getContextMenu() + { + return contextMenu; + } + + public void setContextMenu(String contextMenu) + { + this.contextMenu = contextMenu; + } + + public String getEnterMode() + { + return enterMode; + } + + public void setEnterMode(String enterMode) + { + this.enterMode = enterMode; + } + + public String getShowCallback() + { + return showCallback; + } + + public void setShowCallback(String showCallback) + { + this.showCallback = showCallback; + } +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/EditContentInfo.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ContextMenuElFunctions.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ContextMenuElFunctions.java (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ContextMenuElFunctions.java 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,103 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlcontextmenu.el; + +import info.magnolia.context.MgnlContext; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import javax.servlet.http.HttpServletRequest; + +import net.sourceforge.openutils.mgnlcontextmenu.EditContentInfo; + +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author dschivo + */ +public class ContextMenuElFunctions +{ + + /** + * Logger. + */ + private static Logger log = LoggerFactory.getLogger(ContextMenuElFunctions.class); + + private static final String EDIT_CONTENT_INFOS_KEY = ContextMenuElFunctions.class.getName() + ".editContentInfos"; + + @SuppressWarnings("unchecked") + public static EditContentInfo addEditContentInfo(String key, String path, String elementId) + { + HttpServletRequest request = MgnlContext.getWebContext().getRequest(); + List infos = (List) request.getAttribute(EDIT_CONTENT_INFOS_KEY); + if (infos == null) + { + infos = new ArrayList(); + request.setAttribute(EDIT_CONTENT_INFOS_KEY, infos); + } + EditContentInfo info = new EditContentInfo(key, path, elementId); + infos.add(info); + return info; + } + + @SuppressWarnings("unchecked") + public static List editContentInfos() + { + List infos = (List) MgnlContext.getWebContext().getRequest().getAttribute(EDIT_CONTENT_INFOS_KEY); + return infos != null ? infos : Collections.EMPTY_LIST; + } + + public static String editContentInfosJs() + { + StringBuilder sb = new StringBuilder(); + for (Object item : editContentInfos()) + { + if (sb.length() > 0) + { + sb.append(','); + } + EditContentInfo info = (EditContentInfo) item; + sb.append("'").append(info.getElementId()).append("'"); + sb.append(":{"); + if (!StringUtils.isEmpty(info.getParentTrigger())) + { + sb.append("'parentTrigger':'").append(info.getParentTrigger()).append("',"); + } + if (!StringUtils.isEmpty(info.getContextMenu())) + { + sb.append("'contextMenu':'").append(info.getContextMenu()).append("',"); + } + if (!StringUtils.isEmpty(info.getEnterMode())) + { + sb.append("'enterMode':'").append(info.getEnterMode()).append("',"); + } + sb.append("'key':'").append(info.getKey()).append("',"); + sb.append("'path':'").append(info.getPath()).append("'"); + sb.append('}'); + } + return "{" + sb + "}"; + } + +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/el/ContextMenuElFunctions.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java 2010-05-18 12:12:03 UTC (rev 2476) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/ContextMenuModuleVersionHandler.java 2010-05-18 13:13:34 UTC (rev 2477) @@ -19,13 +19,47 @@ package net.sourceforge.openutils.mgnlcontextmenu.setup; +import info.magnolia.cms.core.SystemProperty; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.Task; import it.openutils.mgnltasks.SimpleModuleVersionHandler; +import java.util.ArrayList; +import java.util.List; +import org.apache.commons.lang.StringUtils; + + /** * @author dschivo */ public class ContextMenuModuleVersionHandler extends SimpleModuleVersionHandler { + /** + * {@inheritDoc} + */ + @Override + protected List<Task> getStartupTasks(InstallContext installContext) + { + List<Task> tasks = new ArrayList<Task>(); + + if (SystemProperty.getBooleanProperty(SystemProperty.MAGNOLIA_BOOTSTRAP_SAMPLES)) + { + tasks.add(new FilesExtractionTask("Samples extraction", "Extracts jsp files for samples.") + { + + /** + * {@inheritDoc} + */ + @Override + protected boolean accept(String resource) + { + return super.accept(resource) && StringUtils.contains(resource, "/samples-contextmenu/"); + } + }); + } + + return tasks; + } } Added: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/FilesExtractionTask.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/FilesExtractionTask.java (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/FilesExtractionTask.java 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,98 @@ +/** + * + * Magnolia SimpleMedia Module (http://www.openmindlab.com/lab/products/media.html) + * Copyright (C)2008 - 2010, 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.mgnlcontextmenu.setup; + +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.core.Path; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractTask; +import info.magnolia.module.delta.TaskExecutionException; +import info.magnolia.module.files.FileExtractionLogger; +import info.magnolia.module.files.FileExtractor; +import info.magnolia.module.files.MD5CheckingFileExtractor; + +import java.io.IOException; + +import org.apache.commons.lang.StringUtils; + + +/** + * Extract files to webapp root. + * @author fgiust + * @author dschivo + */ +public class FilesExtractionTask extends AbstractTask +{ + + public FilesExtractionTask(String taskName, String taskDescription) + { + super(taskName, taskDescription); + } + + public FilesExtractionTask() + { + this("Files extraction", "Extracts files to webapp root."); + } + + /** + * {@inheritDoc} + */ + public void execute(final InstallContext ctx) throws TaskExecutionException + { + final HierarchyManager hm = ctx.getConfigHierarchyManager(); + final MD5CheckingFileExtractor extractor = new MD5CheckingFileExtractor(new FileExtractionLogger() + { + + public void error(String message) + { + ctx.warn(message); + } + }, hm); + try + { + extractor.extractFiles(new FileExtractor.Transformer() + { + + public String accept(String resourcePath) + { + if (!FilesExtractionTask.this.accept(resourcePath)) + { + return null; + } + final String relTargetPath = StringUtils.removeStart(resourcePath, "/mgnl-files/"); + return Path.getAbsoluteFileSystemPath(relTargetPath); + } + + }); + } + catch (IOException e) + { + throw new TaskExecutionException("Could not extract files for module " + + ctx.getCurrentModuleDefinition() + + ": " + + e.getMessage(), e); + } + } + + protected boolean accept(String resource) + { + return resource.startsWith("/mgnl-files/"); + } +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/setup/FilesExtractionTask.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/mgnlcontextmenu.tld =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/mgnlcontextmenu.tld (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/mgnlcontextmenu.tld 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,24 @@ +<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" + version="2.0"> + <description>Magnolia context menu Tags and EL functions</description> + <display-name>Magnolia context menu Tags and EL functions</display-name> + <tlib-version>1.0</tlib-version> + <short-name>mcmenu</short-name> + <uri>mgnlcontextmenu</uri> + <function> + <name>addEditContentInfo</name> + <function-class>net.sourceforge.openutils.mgnlcontextmenu.el.ContextMenuElFunctions</function-class> + <function-signature>nl.genialloyd.magnolia.el.EditMessageInfo addEditContentInfo(java.lang.String, java.lang.String, java.lang.String)</function-signature> + </function> + <function> + <name>editContentInfos</name> + <function-class>net.sourceforge.openutils.mgnlcontextmenu.el.ContextMenuElFunctions</function-class> + <function-signature>java.util.List editContentInfos()</function-signature> + </function> + <function> + <name>editContentInfosJs</name> + <function-class>net.sourceforge.openutils.mgnlcontextmenu.el.ContextMenuElFunctions</function-class> + <function-signature>java.lang.String editContentInfosJs()</function-signature> + </function> +</taglib> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/META-INF/tld/mgnlcontextmenu.tld ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu" 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:uuid" sv:type="String"> + <sv:value>32b4f187-530a-4977-ad1d-d804681a504f</sv:value> + </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnltestwebapp.lang.messages</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:43.213+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-04-28T23:43:10.557+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:06:09.656+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:title" sv:type="String"> + <sv:value/> + </sv:property> + </sv:node> + <sv:node sv:name="tabContextMenu"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>166020a2-ec2f-403d-a01a-8752115ca00c</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>tab</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Context menu</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.217+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-06-19T14:49:08.436+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:07:50.609+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="title"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>db0ea0ec-e130-42ad-abf4-e805472c98fe</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>edit</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Title</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>String</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.357+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-07T14:56:33.437+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:06:55.765+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>83483500-da3b-41bf-a5ea-1ce24830b782</sv:value> + </sv:property> + <sv:property sv:name="description" sv:type="String"> + <sv:value>Sample context menu paragraph</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-contextmenu/paragraph-contextmenu.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</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-09-25T12:45:26.721+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:08:11.515+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sampleContextMenu" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>0589824a-e17f-47ea-9035-3dcc8df430ce</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-contextmenu/template.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample template</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</sv:value> + </sv:property> + <sv:property sv:name="visible" sv:type="String"> + <sv:value>true</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-09-23T16:56:46.344+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T14:15:34.703+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sample-contextmenu" 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:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b4aa718a-8c78-45b2-8baf-947578471d8e</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-18T14:33:10.812+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T14:33:25.500+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>sampleContextMenu</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-contextmenu.jsp =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-contextmenu.jsp (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-contextmenu.jsp 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,8 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" + xmlns:fn="urn:jsptld:http://java.sun.com/jsp/jstl/functions" xmlns:cmsu="urn:jsptld:cms-util-taglib" + xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:media="http://net.sourceforge.openutils/mgnlMedia" + xmlns:mu="mgnlutils"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> + <cms:setNode var="node" /> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-contextmenu.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,34 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:cmsu="urn:jsptld:cms-util-taglib" xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" + xmlns:media="http://net.sourceforge.openutils/mgnlMedia"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> + <jsp:text> + <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> + </jsp:text> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>${actpage.title}</title> + <cms:links /> + <![CDATA[<script src="${pageContext.request.contextPath}/.resources/contextmenu/js/jquery-1.4.2.min.js"></script>]]> + <![CDATA[<script src="${pageContext.request.contextPath}/.resources/contextmenu/js/jquery.contextMenu.js"></script>]]> + <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/.resources/contextmenu/css/jquery.contextMenu.css" media="screen" /> + </head> + <body> + <h1>${actpage.title}</h1> + + <cms:contentNodeIterator contentNodeCollectionName="main"> + <cms:editBar /> + <cms:includeTemplate /> + </cms:contentNodeIterator> + <cms:newBar contentNodeCollectionName="main" paragraph="samples-contextmenu" /> + + <c:if test="${cmsfn:canEdit()}"> + <ul id="defaultContextMenu" class="contextMenu"> + <li class="menuText"><a href="#text">Edit text</a></li> + </ul> + </c:if> + </body> + </html> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/img/menu-text.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/img/menu-text.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,50 @@ +/* Generic context menu styles */ +.contextMenu { + position: absolute; + width: 150px; + z-index: 99999; + border: solid 1px #CCC; + background: #EEE; + padding: 0px; + margin: 0px; + display: none; +} + +.contextMenu LI { + list-style: none; + padding: 0px; + margin: 0px; +} + +.contextMenu A { + color: #333; + text-decoration: none; + display: block; + line-height: 20px; + height: 20px; + background-position: 6px center; + background-repeat: no-repeat; + outline: none; + padding: 1px 5px; + padding-left: 28px; +} + +.contextMenu LI.hover A { + color: #FFF; + background-color: #3399FF; +} + +.contextMenu LI.disabled A { + color: #AAA; + cursor: default; +} + +.contextMenu LI.hover.disabled A { + background-color: transparent; +} + +.contextMenu LI.separator { + border-top: solid 1px #CCC; +} + +.contextMenu LI.menuText A { background-image: url(img/menu-text.png); } Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/jquery-1.4.2.min.js =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/jquery-1.4.2.min.js (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/jquery-1.4.2.min.js 2010-05-18 13:13:34 UTC (rev 2477) @@ -0,0 +1,154 @@ +/*! + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Sat Feb 13 22:33:48 2010 -0500 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i? +e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r= +j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g, +"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e= +true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)|| +c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded", +L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype, +"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+ +a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f], +d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]=== +a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&& +!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari= +true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ", +i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ", +" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className= +this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i= +e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!= +null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else fo... [truncated message content] |
From: <die...@us...> - 2010-05-19 07:12:17
|
Revision: 2483 http://openutils.svn.sourceforge.net/openutils/?rev=2483&view=rev Author: diego_schivo Date: 2010-05-19 07:12:10 +0000 (Wed, 19 May 2010) Log Message: ----------- openutils-mgnlcontextmenu: form sample paragraph Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css Added Paths: ----------- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu-form.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu-form.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/website.sample-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.css trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.js trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/pointer.gif trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-form.jsp trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/mootools-1.2.4-core-yc.js Removed Paths: ------------- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml Property Changed: ---------------- trunk/magnolia-test-webapp/src/main/webapp/docroot/ Property changes on: trunk/magnolia-test-webapp/src/main/webapp/docroot ___________________________________________________________________ Modified: svn:ignore - samples rssaggregator + samples rssaggregator samples-contextmenu Deleted: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -1,142 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="samples-contextmenu" 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:uuid" sv:type="String"> - <sv:value>32b4f187-530a-4977-ad1d-d804681a504f</sv:value> - </sv:property> - <sv:property sv:name="i18nBasename" sv:type="String"> - <sv:value>net.sourceforge.openutils.mgnltestwebapp.lang.messages</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:Data" sv:type="String"> - <sv:value>MetaData</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:activatorid" sv:type="String"> - <sv:value>superuser</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="String"> - <sv:value>2004-11-02T15:34:43.213+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-04-28T23:43:10.557+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T15:06:09.656+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:title" sv:type="String"> - <sv:value/> - </sv:property> - </sv:node> - <sv:node sv:name="tabContextMenu"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>166020a2-ec2f-403d-a01a-8752115ca00c</sv:value> - </sv:property> - <sv:property sv:name="controlType" sv:type="String"> - <sv:value>tab</sv:value> - </sv:property> - <sv:property sv:name="jcr:createdBy" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="label" sv:type="String"> - <sv:value>Context menu</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:Data" sv:type="String"> - <sv:value>MetaData</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:activatorid" sv:type="String"> - <sv:value>superuser</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="String"> - <sv:value>2004-11-02T15:34:29.217+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-06-19T14:49:08.436+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T15:07:50.609+02:00</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="title"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>db0ea0ec-e130-42ad-abf4-e805472c98fe</sv:value> - </sv:property> - <sv:property sv:name="controlType" sv:type="String"> - <sv:value>edit</sv:value> - </sv:property> - <sv:property sv:name="jcr:createdBy" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="label" sv:type="String"> - <sv:value>Title</sv:value> - </sv:property> - <sv:property sv:name="type" sv:type="String"> - <sv:value>String</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:Data" sv:type="String"> - <sv:value>MetaData</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:activatorid" sv:type="String"> - <sv:value>superuser</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="String"> - <sv:value>2004-11-02T15:34:29.357+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-07T14:56:33.437+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T15:06:55.765+02:00</sv:value> - </sv:property> - </sv:node> - </sv:node> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="samples-contextmenu" 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:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>83483500-da3b-41bf-a5ea-1ce24830b782</sv:value> - </sv:property> - <sv:property sv:name="description" sv:type="String"> - <sv:value>Sample context menu paragraph</sv:value> - </sv:property> - <sv:property sv:name="jcr:createdBy" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="templatePath" sv:type="String"> - <sv:value>/templates/samples-contextmenu/paragraph-contextmenu.jsp</sv:value> - </sv:property> - <sv:property sv:name="title" sv:type="String"> - <sv:value>Context menu sample</sv:value> - </sv:property> - <sv:property sv:name="type" sv:type="String"> - <sv:value>jsp</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-09-25T12:45:26.721+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T15:08:11.515+02:00</sv:value> - </sv:property> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="sampleContextMenu" 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:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>0589824a-e17f-47ea-9035-3dcc8df430ce</sv:value> - </sv:property> - <sv:property sv:name="jcr:createdBy" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="templatePath" sv:type="String"> - <sv:value>/templates/samples-contextmenu/template.jsp</sv:value> - </sv:property> - <sv:property sv:name="title" sv:type="String"> - <sv:value>Context menu sample template</sv:value> - </sv:property> - <sv:property sv:name="type" sv:type="String"> - <sv:value>jsp</sv:value> - </sv:property> - <sv:property sv:name="visible" sv:type="String"> - <sv:value>true</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-09-23T16:56:46.344+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T14:15:34.703+02:00</sv:value> - </sv:property> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap/contextmenu/website.sample-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="sample-contextmenu" 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:content</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>b4aa718a-8c78-45b2-8baf-947578471d8e</sv:value> - </sv:property> - <sv:property sv:name="jcr:createdBy" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="title" sv:type="String"> - <sv:value>Context menu sample</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:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-05-18T14:33:10.812+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:template" sv:type="String"> - <sv:value>sampleContextMenu</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="main"> - <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:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>8c9272cf-cffc-4b88-a54b-10abd4773277</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:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="0"> - <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:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>77a1e8fb-1ff2-4d2d-95ad-f470ced326d3</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:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:template" sv:type="String"> - <sv:value>samples-contextmenu</sv:value> - </sv:property> - </sv:node> - </sv:node> - </sv:node> -</sv:node> Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu-form.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu-form.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu-form.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu-form" 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:uuid" sv:type="String"> + <sv:value>c2f40c3b-92a3-49e1-b5af-a94bcab69889</sv:value> + </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnltestwebapp.lang.messages</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:43.213+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-04-28T23:43:10.557+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T08:57:48.015+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:title" sv:type="String"> + <sv:value/> + </sv:property> + </sv:node> + <sv:node sv:name="tabForm"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2b8a2c67-de44-457e-ad27-a1d066cb1ad1</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>tab</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Form</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.217+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-06-19T14:49:08.436+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T08:58:17.328+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="title"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5df1fc5e-93ab-4979-9abc-9e05220cbd5b</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>edit</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Title</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>String</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.357+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-07T14:56:33.437+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T08:57:44.812+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu-form.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu" 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:uuid" sv:type="String"> + <sv:value>32b4f187-530a-4977-ad1d-d804681a504f</sv:value> + </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnltestwebapp.lang.messages</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:43.213+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-04-28T23:43:10.557+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:06:09.656+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:title" sv:type="String"> + <sv:value/> + </sv:property> + </sv:node> + <sv:node sv:name="tabContextMenu"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>166020a2-ec2f-403d-a01a-8752115ca00c</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>tab</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Context menu</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.217+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-06-19T14:49:08.436+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:07:50.609+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="title"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>db0ea0ec-e130-42ad-abf4-e805472c98fe</sv:value> + </sv:property> + <sv:property sv:name="controlType" sv:type="String"> + <sv:value>edit</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>Title</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>String</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:Data" sv:type="String"> + <sv:value>MetaData</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:activatorid" sv:type="String"> + <sv:value>superuser</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="String"> + <sv:value>2004-11-02T15:34:29.357+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-07T14:56:33.437+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:06:55.765+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.dialogs.samples-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu-form.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu-form.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu-form.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu-form" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>9c276274-2a48-4113-aa4f-653ac07854cb</sv:value> + </sv:property> + <sv:property sv:name="description" sv:type="String"> + <sv:value>Sample context menu form paragraph</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-contextmenu/paragraph-form.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu form sample</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</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-09-25T12:45:26.721+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T08:59:28.609+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu-form.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="samples-contextmenu" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>83483500-da3b-41bf-a5ea-1ce24830b782</sv:value> + </sv:property> + <sv:property sv:name="description" sv:type="String"> + <sv:value>Sample context menu paragraph</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-contextmenu/paragraph-contextmenu.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</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-09-25T12:45:26.721+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T15:08:11.515+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.paragraphs.samples-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sampleContextMenu" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>0589824a-e17f-47ea-9035-3dcc8df430ce</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="templatePath" sv:type="String"> + <sv:value>/templates/samples-contextmenu/template.jsp</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample template</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>jsp</sv:value> + </sv:property> + <sv:property sv:name="visible" sv:type="String"> + <sv:value>true</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-09-23T16:56:46.344+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T14:15:34.703+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/config.modules.contextmenu.templates.sampleContextMenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/website.sample-contextmenu.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/website.sample-contextmenu.xml (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/website.sample-contextmenu.xml 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="sample-contextmenu" 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:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b4aa718a-8c78-45b2-8baf-947578471d8e</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>Context menu sample</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-18T14:33:10.812+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T09:04:08.359+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>sampleContextMenu</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="main"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>8c9272cf-cffc-4b88-a54b-10abd4773277</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T09:04:08.359+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="0"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>77a1e8fb-1ff2-4d2d-95ad-f470ced326d3</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-18T16:43:29.812+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>samples-contextmenu</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="00"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>65405689-02c2-40df-9ea7-3a94e947ff99</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-05-19T09:04:08.359+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-05-19T09:04:08.359+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value>samples-contextmenu-form</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-bootstrap-samples/contextmenu/website.sample-contextmenu.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.css =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.css (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.css 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,46 @@ +/* All form elements are within the definition list for this example */ +dl { + font:normal 12px/15px Arial; + position: relative; + width: 350px; +} +dt { + clear: both; + float:left; + width: 130px; + padding: 4px 0 2px 0; + text-align: left; +} +dd { + float: left; + width: 200px; + margin: 0 0 8px 0; + padding-left: 6px; +} + + +/* The hint to Hide and Show */ +.hint { + display: none; + position: absolute; + right: -250px; + width: 200px; + margin-top: -4px; + border: 1px solid #c93; + padding: 10px 12px; + /* to fix IE6, I can't just declare a background-color, + I must do a bg image, too! So I'm duplicating the pointer.gif + image, and positioning it so that it doesn't show up + within the box */ + background: #ffc url(pointer.gif) no-repeat -10px 5px; +} + +/* The pointer image is hadded by using another span */ +.hint .hint-pointer { + position: absolute; + left: -10px; + top: 5px; + width: 10px; + height: 19px; + background: url(pointer.gif) left top no-repeat; +} Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.css ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.js =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.js (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.js 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,41 @@ +function addLoadEvent(func) { + var oldonload = window.onload; + if (typeof window.onload != 'function') { + window.onload = func; + } else { + window.onload = function() { + oldonload(); + func(); + } + } +} + +function prepareInputsForHints() { + var inputs = document.getElementsByTagName("input"); + for (var i=0; i<inputs.length; i++){ + // test to see if the hint span exists first + if (inputs[i].parentNode.getElementsByTagName("span")[0]) { + // the span exists! on focus, show the hint + inputs[i].onfocus = function () { + this.parentNode.getElementsByTagName("span")[0].style.display = "inline"; + } + // when the cursor moves away from the field, hide the hint + inputs[i].onblur = function () { + this.parentNode.getElementsByTagName("span")[0].style.display = "none"; + } + } + } + // repeat the same tests as above for selects + var selects = document.getElementsByTagName("select"); + for (var k=0; k<selects.length; k++){ + if (selects[k].parentNode.getElementsByTagName("span")[0]) { + selects[k].onfocus = function () { + this.parentNode.getElementsByTagName("span")[0].style.display = "inline"; + } + selects[k].onblur = function () { + this.parentNode.getElementsByTagName("span")[0].style.display = "none"; + } + } + } +} +addLoadEvent(prepareInputsForHints); Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/paragraph-form.js ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/pointer.gif =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/docroot/samples-contextmenu/pointer.gif ___________________________________________________________________ Added: svn:mime-type + image/gif Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-form.jsp =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-form.jsp (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-form.jsp 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,91 @@ +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:cms="urn:jsptld:cms-taglib" + xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" + xmlns:fn="urn:jsptld:http://java.sun.com/jsp/jstl/functions" xmlns:cmsu="urn:jsptld:cms-util-taglib" + xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:media="http://net.sourceforge.openutils/mgnlMedia" + xmlns:mu="mgnlutils" xmlns:mcmenu="mgnlcontextmenu"> + <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> + <cms:setNode var="node" /> + <p style="font:normal 12px/15px Arial;">Tab or click through the fields to reveal the hints.</p> + <dl> + <dt> + <label for="firstname">First Name:</label> + </dt> + <dd> + <input name="firstname" id="firstname" type="text" /> + <span class="hint"> + This is the name your mama called you when you were little. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt> + <label for="lastname">Last Name:</label> + </dt> + <dd> + <input name="lastname" id="lastname" type="text" /> + <span class="hint"> + This is the name your sergeant called you when you went through bootcamp. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt> + <label for="email">Email:</label> + </dt> + <dd> + <input name="email" id="email" type="text" /> + <span class="hint"> + The thing with the @ symbol and the dot com at the end. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt> + <label for="year">Birth Year:</label> + </dt> + <dd> + <select id="year" name="year"> + <option value="">YYYY</option> + <option value="1066">1066</option> + <option value="1492">1492</option> + <option value="1776">1776</option> + <option value="1812">1812</option> + <option value="1917">1917</option> + <option value="1942">1942</option> + <option value="1999">1999</option> + </select> + <span class="hint"> + Pick a famous year to be born in. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt> + <label for="username">Username:</label> + </dt> + <dd> + <input name="username" id="username" type="text" /> + <span class="hint"> + Between 4-12 characters. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt> + <label for="password">Password:</label> + </dt> + <dd> + <input name="password" id="password" type="password" /> + <span class="hint"> + Between 5-13 characters, but not 7. Never 7. + <span class="hint-pointer">&nbsp; + </span> + </span> + </dd> + <dt class="button">&nbsp; + </dt> + <dd class="button"> + <input type="submit" class="button" value="Submit" /> + </dd> + </dl> +</jsp:root> \ No newline at end of file Property changes on: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/paragraph-form.jsp ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp 2010-05-19 07:12:10 UTC (rev 2483) @@ -11,13 +11,16 @@ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>${actpage.title}</title> <cms:links /> - <![CDATA[<script src="${pageContext.request.contextPath}/.resources/contextmenu/js/jquery-1.4.2.min.js"></script>]]> + <c:set var="ctx" value="${pageContext.request.contextPath}" /> + <![CDATA[<script src="${ctx}/.resources/contextmenu/js/jquery-1.4.2.min.js"></script>]]> <c:if test="${cmsfn:canEdit()}"> - <![CDATA[<script src="${pageContext.request.contextPath}/.resources/contextmenu/js/mgnladmin-custom.js"></script>]]> - <![CDATA[<script src="${pageContext.request.contextPath}/.resources/contextmenu/js/jquery.contextMenu.js"></script>]]> - <link rel="stylesheet" type="text/css" - href="${pageContext.request.contextPath}/.resources/contextmenu/css/jquery.contextMenu.css" media="screen" /> + <![CDATA[<script src="${ctx}/.resources/contextmenu/js/mgnladmin-custom.js"></script>]]> + <![CDATA[<script src="${ctx}/.resources/contextmenu/js/jquery.contextMenu.js"></script>]]> + <link rel="stylesheet" type="text/css" href="${ctx}/.resources/contextmenu/css/jquery.contextMenu.css" + media="screen" /> </c:if> + <link rel="stylesheet" type="text/css" href="${ctx}/docroot/samples-contextmenu/paragraph-form.css" /> + <![CDATA[<script src="${ctx}/docroot/samples-contextmenu/paragraph-form.js"></script>]]> </head> <body> <h1>${actpage.title}</h1> @@ -25,7 +28,7 @@ <cms:editBar /> <cms:includeTemplate /> </cms:contentNodeIterator> - <cms:newBar contentNodeCollectionName="main" paragraph="samples-contextmenu" /> + <cms:newBar contentNodeCollectionName="main" paragraph="samples-contextmenu,samples-contextmenu-form" /> <c:if test="${cmsfn:canEdit()}"> <c:forEach var="menu" items="${mcmenu:menus()}"> <ul id="${menu.name}ContextMenu" class="contextMenu"> Modified: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css 2010-05-18 17:01:08 UTC (rev 2482) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/css/jquery.contextMenu.css 2010-05-19 07:12:10 UTC (rev 2483) @@ -8,6 +8,8 @@ padding: 0px; margin: 0px; display: none; + font-family: Verdana,sans-serif; + font-size: 11px; } .contextMenu LI { Added: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/mootools-1.2.4-core-yc.js =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/mootools-1.2.4-core-yc.js (rev 0) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-resources/contextmenu/js/mootools-1.2.4-core-yc.js 2010-05-19 07:12:10 UTC (rev 2483) @@ -0,0 +1,357 @@ +//MooTools, <http://mootools.net>, My O... [truncated message content] |
From: <die...@us...> - 2010-05-21 06:27:29
|
Revision: 2523 http://openutils.svn.sourceforge.net/openutils/?rev=2523&view=rev Author: diego_schivo Date: 2010-05-21 06:27:22 +0000 (Fri, 21 May 2010) Log Message: ----------- openutils-mgnlexpressions: ExpressionProviderManager Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/configuration/ContextMenuManager.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/configuration/ExpressionProviderManager.java trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/pages/ExpressionPicker.java trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.expressionProviders.examples.xml Modified: trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/configuration/ContextMenuManager.java =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/configuration/ContextMenuManager.java 2010-05-20 16:46:59 UTC (rev 2522) +++ trunk/openutils-mgnlcontextmenu/src/main/java/net/sourceforge/openutils/mgnlcontextmenu/configuration/ContextMenuManager.java 2010-05-21 06:27:22 UTC (rev 2523) @@ -46,7 +46,7 @@ return Components.getSingleton(ContextMenuManager.class); } - private Logger log = LoggerFactory.getLogger(ContextMenuManager.class); + private Logger log = LoggerFactory.getLogger(getClass()); private final List<ContextMenu> menus = new ArrayList<ContextMenu>(); Modified: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/configuration/ExpressionProviderManager.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/configuration/ExpressionProviderManager.java 2010-05-20 16:46:59 UTC (rev 2522) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/configuration/ExpressionProviderManager.java 2010-05-21 06:27:22 UTC (rev 2523) @@ -23,18 +23,15 @@ import info.magnolia.cms.core.Content; import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; -import info.magnolia.content2bean.Content2BeanException; -import info.magnolia.content2bean.Content2BeanUtil; -import info.magnolia.content2bean.TransformationState; -import info.magnolia.content2bean.impl.Content2BeanTransformerImpl; import info.magnolia.objectfactory.Components; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import java.util.Map; -import org.apache.commons.beanutils.ConstructorUtils; +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** @@ -49,99 +46,54 @@ return Components.getSingleton(ExpressionProviderManager.class); } - private final List<ExpressionProvider> expressionProviders = new ArrayList<ExpressionProvider>(); + private Logger log = LoggerFactory.getLogger(getClass()); - @Override - protected void onRegister(Content defNode) - { - for (Iterator iter = ContentUtil.getAllChildren(defNode).iterator(); iter.hasNext();) - { - Content expressionProviderNode = (Content) iter.next(); - ExpressionProviderDefinition definition = new RepositoryExpressionProviderDefinition(expressionProviderNode); - registerDefinition(definition); - } + private final List<ExpressionProvider> providers = new ArrayList<ExpressionProvider>(); - } - - public void registerDefinition(ExpressionProviderDefinition definition) - { - expressionProviders.add(definition.newInstance()); - } - + /** + * {@inheritDoc} + */ @Override protected void onClear() { - expressionProviders.clear(); + providers.clear(); } /** - * Returns the expressionProviders. - * @return the expressionProviders + * {@inheritDoc} */ - public List<ExpressionProvider> getExpressionProviders() + @SuppressWarnings("unchecked") + @Override + protected void onRegister(Content defNode) { - return expressionProviders; - } - - public static interface ExpressionProviderDefinition - { - - public String getName(); - - public ExpressionProvider newInstance(); - } - - public static class RepositoryExpressionProviderDefinition implements ExpressionProviderDefinition - { - - private Content node; - - public RepositoryExpressionProviderDefinition(Content node) + for (Iterator iter = ContentUtil.getAllChildren(defNode).iterator(); iter.hasNext();) { - this.node = node; - } - - public String getName() - { - return NodeDataUtil.getString(this.node, "name", this.node.getName()); - } - - public ExpressionProvider newInstance() - { + Content providerNode = (Content) iter.next(); + String providerClassName = StringUtils.defaultIfEmpty( + NodeDataUtil.getString(providerNode, "class"), + RepositoryExpressionProvider.class.getName()); try { - return (ExpressionProvider) Content2BeanUtil.toBean(node, true, new Content2BeanTransformerImpl() - { - - @Override - public Object newBeanInstance(TransformationState state, Map properties) - throws Content2BeanException - { - if (state.getLevel() == 1) - { - try - { - return ConstructorUtils.invokeConstructor( - state.getCurrentType().getType(), - new Object[]{ - node - }); - } - catch (Exception e) - { - throw new Content2BeanException("no proper constructor found", e); - } - } - - return super.newBeanInstance(state, properties); - } - }); + Class providerClass = Class.forName(providerClassName); + providers.add((ExpressionProvider) providerClass + .getConstructor(Content.class) + .newInstance(providerNode)); } - catch (Content2BeanException e) + catch (Exception e) { - throw new RuntimeException(this.getName(), e); + log.error("Cannot instantiate expression provider " + providerNode.getName(), e); } } + } + /** + * Returns the providers. + * @return the providers + */ + public List<ExpressionProvider> getProviders() + { + return providers; + } + } Modified: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/pages/ExpressionPicker.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/pages/ExpressionPicker.java 2010-05-20 16:46:59 UTC (rev 2522) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/pages/ExpressionPicker.java 2010-05-21 06:27:22 UTC (rev 2523) @@ -61,7 +61,7 @@ @Override public String show() { - expressionProviders = ExpressionProviderManager.getInstance().getExpressionProviders(); + expressionProviders = ExpressionProviderManager.getInstance().getProviders(); return super.show(); } Modified: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.expressionProviders.examples.xml =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.expressionProviders.examples.xml 2010-05-20 16:46:59 UTC (rev 2522) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-bootstrap/expressions/config.modules.expressions.expressionProviders.examples.xml 2010-05-21 06:27:22 UTC (rev 2523) @@ -9,9 +9,6 @@ <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>67ecda65-9d9e-45c6-89f8-af5234369024</sv:value> </sv:property> - <sv:property sv:name="class" sv:type="String"> - <sv:value>net.sourceforge.openutils.mgnlexpressions.configuration.RepositoryExpressionProvider</sv:value> - </sv:property> <sv:property sv:name="jcr:createdBy" sv:type="String"> <sv:value>admin</sv:value> </sv:property> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-24 09:18:46
|
Revision: 2537 http://openutils.svn.sourceforge.net/openutils/?rev=2537&view=rev Author: diego_schivo Date: 2010-05-24 09:18:38 +0000 (Mon, 24 May 2010) Log Message: ----------- MEDIA-143 tooltip on playlist entry's thumbnail showing the media handle Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/pom.xml trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html Modified: trunk/openutils-mgnlcontextmenu/pom.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-21 16:51:42 UTC (rev 2536) +++ trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-24 09:18:38 UTC (rev 2537) @@ -123,7 +123,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnlmedia</artifactId> - <version>4.3-b1</version> + <version>4.3-b2-SNAPSHOT</version> </dependency> <dependency> <groupId>info.magnolia</groupId> Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java 2010-05-21 16:51:42 UTC (rev 2536) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java 2010-05-24 09:18:38 UTC (rev 2537) @@ -29,6 +29,8 @@ private String media; + private String mediaHandle; + private String thumbnail; private String type; @@ -76,6 +78,24 @@ } /** + * Returns the mediaHandle. + * @return the mediaHandle + */ + public String getMediaHandle() + { + return mediaHandle; + } + + /** + * Sets the mediaHandle. + * @param mediaHandle the mediaHandle to set + */ + public void setMediaHandle(String mediaHandle) + { + this.mediaHandle = mediaHandle; + } + + /** * Returns the thumbnail. * @return the thumbnail */ Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java 2010-05-21 16:51:42 UTC (rev 2536) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java 2010-05-24 09:18:38 UTC (rev 2537) @@ -156,6 +156,7 @@ PlaylistEntryBean entry = new PlaylistEntryBean(); entry.setHandle(subNode.getHandle()); entry.setMedia(media.getUUID()); + entry.setMediaHandle(media.getHandle()); entry.setThumbnail(MediaEl.thumbnail(media)); entry.setType(NodeDataUtil.getString(media, "type")); entry.setTitle(I18nContentSupportFactory Modified: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js 2010-05-21 16:51:42 UTC (rev 2536) +++ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js 2010-05-24 09:18:38 UTC (rev 2537) @@ -4,7 +4,7 @@ container = parent.viewport.getComponent('center-panel'); var dataStore = new Ext.data.SimpleStore({ - fields: ['thumbnail', 'type', 'title', 'description', 'tags', 'handle'] + fields: ['thumbnail', 'type', 'title', 'description', 'tags', 'handle', 'mediaHandle'] }); dataStore.loadData(playlist.entries); @@ -12,7 +12,7 @@ { header: 'Thumbnail', renderer : function(v, p, record){ - return v ? '<img border="0" alt="" src="' + contextPath + v + '" />' : ''; + return v ? '<img border="0" alt="" src="' + contextPath + v + '" title="' + record.data['mediaHandle'] + '" />' : ''; } }, {header: 'Type'}, Modified: trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2010-05-21 16:51:42 UTC (rev 2536) +++ trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2010-05-24 09:18:38 UTC (rev 2537) @@ -26,7 +26,8 @@ '${(entry.title!'')?js_string}', '${(entry.description!'')?js_string}', '${(entry.tags!'')?js_string}', - '${entry.handle!''}' + '${entry.handle!''}', + '${entry.mediaHandle!''}' ][#if entry_has_next],[/#if] [/#list] ], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-24 16:44:37
|
Revision: 2545 http://openutils.svn.sourceforge.net/openutils/?rev=2545&view=rev Author: diego_schivo Date: 2010-05-24 16:44:31 +0000 (Mon, 24 May 2010) Log Message: ----------- MEDIA-144 use the magnolia dialog for editing media Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/pom.xml trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html Modified: trunk/openutils-mgnlcontextmenu/pom.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-24 16:44:31 UTC (rev 2545) @@ -123,7 +123,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnlmedia</artifactId> - <version>4.3-b2-SNAPSHOT</version> + <version>4.3-b1</version> </dependency> <dependency> <groupId>info.magnolia</groupId> Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistEntryBean.java 2010-05-24 16:44:31 UTC (rev 2545) @@ -31,6 +31,8 @@ private String mediaHandle; + private String mediaDialog; + private String thumbnail; private String type; @@ -96,6 +98,24 @@ } /** + * Returns the mediaDialog. + * @return the mediaDialog + */ + public String getMediaDialog() + { + return mediaDialog; + } + + /** + * Sets the mediaDialog. + * @param mediaDialog the mediaDialog to set + */ + public void setMediaDialog(String mediaDialog) + { + this.mediaDialog = mediaDialog; + } + + /** * Returns the thumbnail. * @return the thumbnail */ Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.java 2010-05-24 16:44:31 UTC (rev 2545) @@ -36,6 +36,8 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import net.sourceforge.openutils.mgnlmedia.media.configuration.MediaConfigurationManager; +import net.sourceforge.openutils.mgnlmedia.media.configuration.MediaTypeConfiguration; import net.sourceforge.openutils.mgnlmedia.media.lifecycle.MediaModule; import net.sourceforge.openutils.mgnlmedia.media.pages.MessagesTemplatedMVCHandler; import net.sourceforge.openutils.mgnlmedia.media.tags.el.MediaEl; @@ -177,6 +179,13 @@ entry.setHandle(subNode.getHandle()); entry.setMedia(media.getUUID()); entry.setMediaHandle(media.getHandle()); + MediaTypeConfiguration typeConf = MediaConfigurationManager + .getInstance() + .getMediaTypeConfigurationFromMedia(media); + if (typeConf != null) + { + entry.setMediaDialog(typeConf.getDialog()); + } entry.setThumbnail(MediaEl.thumbnail(media)); entry.setType(NodeDataUtil.getString(media, "type")); entry.setTitle(I18nContentSupportFactory Modified: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/media/js/playlist-view.js 2010-05-24 16:44:31 UTC (rev 2545) @@ -4,7 +4,7 @@ container = parent.viewport.getComponent('center-panel'); var dataStore = new Ext.data.SimpleStore({ - fields: ['thumbnail', 'type', 'title', 'description', 'tags', 'handle', 'mediaHandle'] + fields: ['thumbnail', 'type', 'title', 'description', 'tags', 'handle', 'mediaHandle', 'mediaDialog'] }); dataStore.loadData(playlist.entries); @@ -71,6 +71,19 @@ } }); } + }, + { + id: 'editMediaBtn', + text: playlist.msgs.editMedia, + icon: contextPath + '/.resources/media/icons/ico16-edit.png', + iconCls: 'button-edit', + disabled: true, + handler: function(){ + var s = grid.getSelectionModel().getSelections()[0]; + parent.openWindow('.magnolia/dialogs/' + s.data['mediaDialog'] + '.html' + + '?mgnlPath=' + s.data['mediaHandle'] + + '&mgnlRepository=media'); + } } ]; @@ -272,6 +285,7 @@ }); grid.getSelectionModel().on('selectionchange', function(sm){ Ext.getCmp('removeEntryBtn').setDisabled(sm.getCount() < 1); + Ext.getCmp('editMediaBtn').setDisabled(sm.getCount() < 1); }); container.on('bodyresize', resizeGrid); Modified: trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties 2010-05-24 16:44:31 UTC (rev 2545) @@ -109,6 +109,7 @@ tree.playlists.xspf=xspf format playlist.entries.add=Add entry playlist.entries.remove=Remove entry +playlist.media.edit=Edit media config.search.filters.locale=Locale config.search.filters.text=Text Modified: trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties 2010-05-24 16:44:31 UTC (rev 2545) @@ -112,6 +112,7 @@ tree.playlists.xspf=Formato xspf playlist.entries.add=Aggiungi elemento playlist.entries.remove=Rimuovi elemento +playlist.media.edit=Modifica media config.search.filters.locale=Locale config.search.filters.text=Testo Modified: trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2010-05-24 14:40:20 UTC (rev 2544) +++ trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2010-05-24 16:44:31 UTC (rev 2545) @@ -27,13 +27,15 @@ '${(entry.description!'')?js_string}', '${(entry.tags!'')?js_string}', '${entry.handle!''}', - '${entry.mediaHandle!''}' + '${entry.mediaHandle!''}', + '${entry.mediaDialog!''}' ][#if entry_has_next],[/#if] [/#list] ], msgs: { addEntry: '${this.msgs.get('playlist.entries.add')?js_string}', - removeEntry: '${this.msgs.get('playlist.entries.remove')?js_string}' + removeEntry: '${this.msgs.get('playlist.entries.remove')?js_string}', + editMedia: '${this.msgs.get('playlist.media.edit')?js_string}' } }); [/#if] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-27 08:17:52
|
Revision: 2573 http://openutils.svn.sourceforge.net/openutils/?rev=2573&view=rev Author: diego_schivo Date: 2010-05-27 08:17:46 +0000 (Thu, 27 May 2010) Log Message: ----------- openutils-mgnlexpressions: avoid conflicts between controls "expression" and "fckEdit" Modified Paths: -------------- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/samples-expressions/template.jsp Modified: trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp =================================================================== --- trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp 2010-05-27 07:19:49 UTC (rev 2572) +++ trunk/openutils-mgnlcontextmenu/src/main/resources/mgnl-files/templates/samples-contextmenu/template.jsp 2010-05-27 08:17:46 UTC (rev 2573) @@ -17,6 +17,7 @@ <![CDATA[<script src="${pageContext.request.contextPath}/docroot/samples-contextmenu/paragraph-form.js"></script>]]> </head> <body> + <cms:mainBar /> <h1>${actpage.title}</h1> <p> <![CDATA[Tags to put in the template jsp:]]> Modified: trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java =================================================================== --- trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java 2010-05-27 07:19:49 UTC (rev 2572) +++ trunk/openutils-mgnlexpressions/src/main/java/net/sourceforge/openutils/mgnlexpressions/dialog/ExpressionDialog.java 2010-05-27 08:17:46 UTC (rev 2573) @@ -19,6 +19,8 @@ package net.sourceforge.openutils.mgnlexpressions.dialog; +import java.util.Map; + import net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog; @@ -28,6 +30,8 @@ public class ExpressionDialog extends ConfigurableFreemarkerDialog { + private static final String ATTRIBUTE_FCKED_LOADED = "info.magnolia.cms.gui.dialog.fckedit.loaded"; + /** * {@inheritDoc} */ @@ -37,4 +41,19 @@ return "dialog/expression.ftl"; } + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + @Override + protected void addToParameters(Map parameters) + { + boolean fckalreadyrendered = getRequest().getAttribute(ATTRIBUTE_FCKED_LOADED) != null; + if (!fckalreadyrendered) + { + getRequest().setAttribute(ATTRIBUTE_FCKED_LOADED, "true"); + } + parameters.put("fckalreadyrendered", fckalreadyrendered); + super.addToParameters(parameters); + } } Modified: trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl 2010-05-27 07:19:49 UTC (rev 2572) +++ trunk/openutils-mgnlexpressions/src/main/resources/dialog/expression.ftl 2010-05-27 08:17:46 UTC (rev 2573) @@ -1,11 +1,22 @@ -[#assign key = uuid?replace("-", "")] - -[#if !alreadyrendered] +[#if !fckalreadyrendered] <script type="text/javascript" src="${request.contextPath}/.resources/fckeditor/fckeditor.js"></script> <script type="text/javascript"> function FCKeditor_OnComplete(oEditor){ - oEditor.Events.AttachEvent('OnAfterLinkedFieldUpdate', doLinkedFieldUpdate${key}); + if (oEditor.Config['CustomConfigurationsPath'].indexOf('ExpressionField.config.js') > -1){ + oEditor.Events.AttachEvent('OnAfterLinkedFieldUpdate', function(oExprEditor) { + var oDOM = oExprEditor.EditorDocument; + var value; + if (document.all){ + value = oDOM.body.innerText; + } else { + var r = oDOM.createRange(); + r.selectNodeContents(oDOM.body); + value = r.toString(); + } + oExprEditor.LinkedField.value = value ; + }); + } } </script> [/#if] @@ -21,17 +32,4 @@ oFCKeditor.Height = 200; oFCKeditor.Value = "${value?html}"; oFCKeditor.Create(); - -function doLinkedFieldUpdate${key}(oEditor) { - var oDOM = oEditor.EditorDocument; - var value; - if (document.all){ - value = oDOM.body.innerText; - } else { - var r = oDOM.createRange(); - r.selectNodeContents(oDOM.body); - value = r.toString(); - } - oEditor.LinkedField.value = value ; -} </script> Modified: trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/samples-expressions/template.jsp =================================================================== --- trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/samples-expressions/template.jsp 2010-05-27 07:19:49 UTC (rev 2572) +++ trunk/openutils-mgnlexpressions/src/main/resources/mgnl-files/templates/samples-expressions/template.jsp 2010-05-27 08:17:46 UTC (rev 2573) @@ -13,6 +13,7 @@ <cms:links /> </head> <body> + <cms:mainBar /> <h1>${actpage.title}</h1> <cms:contentNodeIterator contentNodeCollectionName="main"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-05-31 15:14:45
|
Revision: 2599 http://openutils.svn.sourceforge.net/openutils/?rev=2599&view=rev Author: fgiust Date: 2010-05-31 15:14:38 +0000 (Mon, 31 May 2010) Log Message: ----------- tasks 4.1.0 Modified Paths: -------------- trunk/openutils-mgnlcontrols/pom.xml trunk/openutils-mgnlgroovy/pom.xml trunk/openutils-mgnlmessages/pom.xml trunk/openutils-mgnlstripes/pom.xml trunk/openutils-mgnlstruts11/pom.xml Modified: trunk/openutils-mgnlcontrols/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) +++ trunk/openutils-mgnlcontrols/pom.xml 2010-05-31 15:14:38 UTC (rev 2599) @@ -91,7 +91,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltasks</artifactId> - <version>4.0.5</version> + <version>4.1.0</version> </dependency> <dependency> <groupId>net.sourceforge.openutils</groupId> Modified: trunk/openutils-mgnlgroovy/pom.xml =================================================================== --- trunk/openutils-mgnlgroovy/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) +++ trunk/openutils-mgnlgroovy/pom.xml 2010-05-31 15:14:38 UTC (rev 2599) @@ -89,7 +89,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltasks</artifactId> - <version>4.0.5</version> + <version>4.1.0</version> </dependency> </dependencies> <repositories> Modified: trunk/openutils-mgnlmessages/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) +++ trunk/openutils-mgnlmessages/pom.xml 2010-05-31 15:14:38 UTC (rev 2599) @@ -79,7 +79,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltasks</artifactId> - <version>4.0.5</version> + <version>4.1.0</version> </dependency> <dependency> <groupId>net.sourceforge.openutils</groupId> Modified: trunk/openutils-mgnlstripes/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) +++ trunk/openutils-mgnlstripes/pom.xml 2010-05-31 15:14:38 UTC (rev 2599) @@ -73,7 +73,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltasks</artifactId> - <version>4.0.5</version> + <version>4.1.0</version> </dependency> <dependency> <groupId>javax.servlet</groupId> Modified: trunk/openutils-mgnlstruts11/pom.xml =================================================================== --- trunk/openutils-mgnlstruts11/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) +++ trunk/openutils-mgnlstruts11/pom.xml 2010-05-31 15:14:38 UTC (rev 2599) @@ -91,7 +91,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltasks</artifactId> - <version>4.0.5</version> + <version>4.1.0</version> </dependency> <dependency> <groupId>struts</groupId> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-05-31 16:09:29
|
Revision: 2598 http://openutils.svn.sourceforge.net/openutils/?rev=2598&view=rev Author: fgiust Date: 2010-05-31 12:21:29 +0000 (Mon, 31 May 2010) Log Message: ----------- updated parent pom Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp trunk/openutils-bshd5/pom.xml trunk/openutils-dbmigration/pom.xml trunk/openutils-deployment/pom.xml trunk/openutils-elfunctions/pom.xml trunk/openutils-log4j/pom.xml trunk/openutils-maven-skin/pom.xml trunk/openutils-mgnlbootstrapsync/pom.xml trunk/openutils-mgnlcache/pom.xml trunk/openutils-mgnlcas/pom.xml trunk/openutils-mgnlcontextmenu/pom.xml trunk/openutils-mgnlcontrols/pom.xml trunk/openutils-mgnlcriteria/pom.xml trunk/openutils-mgnlexpressions/pom.xml trunk/openutils-mgnlext/pom.xml trunk/openutils-mgnlgroovy/pom.xml trunk/openutils-mgnlmessages/pom.xml trunk/openutils-mgnlrepoutils/pom.xml trunk/openutils-mgnlspring/pom.xml trunk/openutils-mgnlstripes/pom.xml trunk/openutils-mgnlstruts11/pom.xml trunk/openutils-mgnltagcloud/pom.xml trunk/openutils-mgnltagcloud/src/main/assembly/assembly-bundle.xml trunk/openutils-mgnltasks/pom.xml trunk/openutils-mgnlutils/pom.xml trunk/openutils-spring/pom.xml trunk/openutils-testing/pom.xml trunk/openutils-testing-junit/pom.xml trunk/openutils-testing-testng/pom.xml trunk/openutils-testing4dwr/pom.xml trunk/openutils-testing4dwr-junit/pom.xml trunk/openutils-testing4dwr-testng/pom.xml trunk/openutils-testing4web/pom.xml Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/magnolia-test-webapp/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>war</packaging> Modified: trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp =================================================================== --- trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp 2010-05-31 12:21:29 UTC (rev 2598) @@ -1,50 +1,39 @@ <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:cms="urn:jsptld:cms-taglib" xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:cmsu="urn:jsptld:cms-util-taglib" - xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" xmlns:su="http://openutils.sf.net/openutils-stringutils"> + xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" xmlns:su="http://openutils.sf.net/openutils-stringutils" + xmlns:bc="barilla-corporate" xmlns:pm="pirellimedia" xmlns:bctags="urn:jsptagdir:/WEB-INF/tags/barilla-corporate-tags"> <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> <jsp:text> <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> </jsp:text> <html> <head> - <title>${actpage.title}</title> + <title>TEST</title> </head> <cms:mainBar paragraph="sample-tagcloud" /> <body> - <h1>${actpage.title}</h1> - <h2>Samples:</h2> - <p>Tagcloud created from scratch, retrieve tags from configured node and set tag url to current page:</p> - <code> - <![CDATA[ - <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> - ]]> - </code> - <p>Produce:</p> + <br /> + 0 tag: + <br /> <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> - <p>Tagcloud created from scratch, retrieve tags from your configured path (in this sample are /sample-tagcloud/) - </p> - <code> - <![CDATA[ - <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/path/to/my/pages" /> - ]]> - </code> - <p>Produce:</p> - <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/sample-tagcloud/" /> - <p>Retrieve tagcloud where 'tags' is the name</p> - <code> - <![CDATA[ - <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> - ]]> - </code> - <p>Produce:</p> + 1 tag: + <br /> + <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/test/untitled1" /> + 2 tag: + <br /> <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> - <p>A sample where you can add tagcloud control on media dialog and retrieve a media tagcloud</p> - <code> - <![CDATA[ - <tagcloud:tagcloud id="cloudMedia" name="tagsMedia" orderby="name asc" showFreq="true"> - ]]> - </code> + 3 tag: + <br /> + <tagcloud:tagcloud id="cloud3" orderby="count asc" path="/test/untitled" /> + 4 tag: + <br /> + <tagcloud:tagcloud id="cloudMedia" name="tagsMedia" orderby="name asc" showFreq="true" /> + <cms:contentNodeIterator contentNodeCollectionName="main"> + <cms:editBar adminOnly="true" /> + <cms:includeTemplate /> + </cms:contentNodeIterator> + <cms:newBar contentNodeCollectionName="main" paragraph="localeaware" adminOnly="true" /> </body> </html> </jsp:root> \ No newline at end of file Modified: trunk/openutils-bshd5/pom.xml =================================================================== --- trunk/openutils-bshd5/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-bshd5/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-bshd5</artifactId> <name>openutils base Spring-Hibernate DAO for java 5.0</name> Modified: trunk/openutils-dbmigration/pom.xml =================================================================== --- trunk/openutils-dbmigration/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-dbmigration/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-dbmigration</artifactId> <name>openutils dbmigration</name> Modified: trunk/openutils-deployment/pom.xml =================================================================== --- trunk/openutils-deployment/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-deployment/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-deployment</artifactId> <name>openutils deployment tools</name> Modified: trunk/openutils-elfunctions/pom.xml =================================================================== --- trunk/openutils-elfunctions/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-elfunctions/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-log4j/pom.xml =================================================================== --- trunk/openutils-log4j/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-log4j/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-log4j</artifactId> <packaging>jar</packaging> Modified: trunk/openutils-maven-skin/pom.xml =================================================================== --- trunk/openutils-maven-skin/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-maven-skin/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -5,7 +5,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-maven-skin</artifactId> <packaging>jar</packaging> Modified: trunk/openutils-mgnlbootstrapsync/pom.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlbootstrapsync/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlcache/pom.xml =================================================================== --- trunk/openutils-mgnlcache/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlcache/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -2,7 +2,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlcas/pom.xml =================================================================== --- trunk/openutils-mgnlcas/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlcas/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlcontextmenu/pom.xml =================================================================== --- trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlcontextmenu/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.4</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlcontrols/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlcontrols/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -2,7 +2,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlcriteria/pom.xml =================================================================== --- trunk/openutils-mgnlcriteria/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlcriteria/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-mgnlcriteria</artifactId> <name>Magnolia Criteria API</name> Modified: trunk/openutils-mgnlexpressions/pom.xml =================================================================== --- trunk/openutils-mgnlexpressions/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlexpressions/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.4</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlext/pom.xml =================================================================== --- trunk/openutils-mgnlext/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlext/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -2,7 +2,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlgroovy/pom.xml =================================================================== --- trunk/openutils-mgnlgroovy/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlgroovy/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -2,7 +2,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlmessages/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlmessages/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlrepoutils/pom.xml =================================================================== --- trunk/openutils-mgnlrepoutils/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlrepoutils/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlspring/pom.xml =================================================================== --- trunk/openutils-mgnlspring/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlspring/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlstripes/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlstripes/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlstruts11/pom.xml =================================================================== --- trunk/openutils-mgnlstruts11/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlstruts11/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-mgnlstruts11</artifactId> <packaging>jar</packaging> Modified: trunk/openutils-mgnltagcloud/pom.xml =================================================================== --- trunk/openutils-mgnltagcloud/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnltagcloud/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.4</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnltagcloud/src/main/assembly/assembly-bundle.xml =================================================================== --- trunk/openutils-mgnltagcloud/src/main/assembly/assembly-bundle.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnltagcloud/src/main/assembly/assembly-bundle.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -29,6 +29,7 @@ <includes> <include>net.sourceforge.openutils:*</include> <include>com.browseengine.bobo:*</include> + <include>fastutil:*</include> </includes> </dependencySet> </dependencySets> Modified: trunk/openutils-mgnltasks/pom.xml =================================================================== --- trunk/openutils-mgnltasks/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnltasks/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-mgnlutils/pom.xml =================================================================== --- trunk/openutils-mgnlutils/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-mgnlutils/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -2,7 +2,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> Modified: trunk/openutils-spring/pom.xml =================================================================== --- trunk/openutils-spring/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-spring/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-spring</artifactId> <name>openutils spring tools</name> Modified: trunk/openutils-testing/pom.xml =================================================================== --- trunk/openutils-testing/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing</artifactId> <name>Openutils testing library</name> Modified: trunk/openutils-testing-junit/pom.xml =================================================================== --- trunk/openutils-testing-junit/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing-junit/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing-junit</artifactId> <name>Openutils testing library (JUnit)</name> Modified: trunk/openutils-testing-testng/pom.xml =================================================================== --- trunk/openutils-testing-testng/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing-testng/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -3,7 +3,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing-testng</artifactId> <name>Openutils testing library (TestNG)</name> Modified: trunk/openutils-testing4dwr/pom.xml =================================================================== --- trunk/openutils-testing4dwr/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing4dwr/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing4dwr</artifactId> <name>openutils dwr test utils</name> Modified: trunk/openutils-testing4dwr-junit/pom.xml =================================================================== --- trunk/openutils-testing4dwr-junit/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing4dwr-junit/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing4dwr-junit</artifactId> <name>openutils testing4dwr (junit)</name> Modified: trunk/openutils-testing4dwr-testng/pom.xml =================================================================== --- trunk/openutils-testing4dwr-testng/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing4dwr-testng/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing4dwr-testng</artifactId> <name>openutils testing4dwr (testng)</name> Modified: trunk/openutils-testing4web/pom.xml =================================================================== --- trunk/openutils-testing4web/pom.xml 2010-05-30 21:06:22 UTC (rev 2597) +++ trunk/openutils-testing4web/pom.xml 2010-05-31 12:21:29 UTC (rev 2598) @@ -4,7 +4,8 @@ <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> - <version>1.3</version> + <relativePath>../openutils-parent</relativePath> + <version>1.5</version> </parent> <artifactId>openutils-testing4web</artifactId> <name>Openutils testing4web</name> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2010-06-01 07:43:36
|
Revision: 2603 http://openutils.svn.sourceforge.net/openutils/?rev=2603&view=rev Author: cstrap Date: 2010-06-01 07:43:29 +0000 (Tue, 01 Jun 2010) Log Message: ----------- Sample tagcloud configuration Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp trunk/openutils-mgnltagcloud/src/main/resources/mgnl-bootstrap-samples/tagcloud/config.modules.tagcloud.clouds.xml Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-05-31 15:27:24 UTC (rev 2602) +++ trunk/magnolia-test-webapp/pom.xml 2010-06-01 07:43:29 UTC (rev 2603) @@ -176,7 +176,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnltagcloud</artifactId> - <version>1.0-b6-SNAPSHOT</version> + <version>1.0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>javax.servlet</groupId> Modified: trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp =================================================================== --- trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp 2010-05-31 15:27:24 UTC (rev 2602) +++ trunk/magnolia-test-webapp/src/main/webapp/templates/samples-tagcloud/template.jsp 2010-06-01 07:43:29 UTC (rev 2603) @@ -1,39 +1,50 @@ <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:cms="urn:jsptld:cms-taglib" xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:cmsu="urn:jsptld:cms-util-taglib" - xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" xmlns:su="http://openutils.sf.net/openutils-stringutils" - xmlns:bc="barilla-corporate" xmlns:pm="pirellimedia" xmlns:bctags="urn:jsptagdir:/WEB-INF/tags/barilla-corporate-tags"> + xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" xmlns:su="http://openutils.sf.net/openutils-stringutils"> <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> <jsp:text> <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> </jsp:text> <html> <head> - <title>TEST</title> + <title>${actpage.title}</title> </head> <cms:mainBar paragraph="sample-tagcloud" /> <body> - <br /> - 0 tag: - <br /> + <h1>${actpage.title}</h1> + <h2>Samples:</h2> + <p>Tagcloud created from scratch, retrieve tags from configured node and set tag url to current page:</p> + <code> + <![CDATA[ + <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> + ]]> + </code> + <p>Produce:</p> <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> - 1 tag: - <br /> - <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/test/untitled1" /> - 2 tag: - <br /> + <p>Tagcloud created from scratch, retrieve tags from your configured path (in this sample are /sample-tagcloud/) + </p> + <code> + <![CDATA[ + <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/path/to/my/pages" /> + ]]> + </code> + <p>Produce:</p> + <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/sample-tagcloud/" /> + <p>Retrieve tagcloud where 'tags' is the name</p> + <code> + <![CDATA[ + <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> + ]]> + </code> + <p>Produce:</p> <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> - 3 tag: - <br /> - <tagcloud:tagcloud id="cloud3" orderby="count asc" path="/test/untitled" /> - 4 tag: - <br /> - <tagcloud:tagcloud id="cloudMedia" name="tagsMedia" orderby="name asc" showFreq="true" /> - <cms:contentNodeIterator contentNodeCollectionName="main"> - <cms:editBar adminOnly="true" /> - <cms:includeTemplate /> - </cms:contentNodeIterator> - <cms:newBar contentNodeCollectionName="main" paragraph="localeaware" adminOnly="true" /> + <p>A sample where you can add tagcloud control on media dialog and retrieve a media tagcloud</p> + <code> + <![CDATA[ + <tagcloud:tagcloud id="cloudMedia" name="tagsMedia" orderby="name asc" showFreq="true"> + ]]> + </code> </body> </html> </jsp:root> \ No newline at end of file Modified: trunk/openutils-mgnltagcloud/src/main/resources/mgnl-bootstrap-samples/tagcloud/config.modules.tagcloud.clouds.xml =================================================================== --- trunk/openutils-mgnltagcloud/src/main/resources/mgnl-bootstrap-samples/tagcloud/config.modules.tagcloud.clouds.xml 2010-05-31 15:27:24 UTC (rev 2602) +++ trunk/openutils-mgnltagcloud/src/main/resources/mgnl-bootstrap-samples/tagcloud/config.modules.tagcloud.clouds.xml 2010-06-01 07:43:29 UTC (rev 2603) @@ -9,10 +9,16 @@ <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>4730afb7-3548-4026-997b-0f2df4ad8357</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:authorid" sv:type="String"> <sv:value>superuser</sv:value> </sv:property> @@ -39,6 +45,9 @@ <sv:property sv:name="path" sv:type="String"> <sv:value>/</sv:value> </sv:property> + <sv:property sv:name="propertyName" sv:type="String"> + <sv:value>myTagcloud</sv:value> + </sv:property> <sv:property sv:name="repository" sv:type="String"> <sv:value>website</sv:value> </sv:property> @@ -56,7 +65,7 @@ <sv:value>2010-02-02T17:58:45.701+01:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-03-09T16:04:27.772+01:00</sv:value> + <sv:value>2010-06-01T09:33:43.769+02:00</sv:value> </sv:property> </sv:node> </sv:node> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-06-01 13:02:52
|
Revision: 2619 http://openutils.svn.sourceforge.net/openutils/?rev=2619&view=rev Author: fgiust Date: 2010-06-01 13:02:42 +0000 (Tue, 01 Jun 2010) Log Message: ----------- updated maven skin Modified Paths: -------------- trunk/openutils-bshd5/src/site/site.xml trunk/openutils-dbmigration/src/site/site.xml trunk/openutils-deployment/src/site/site.xml trunk/openutils-elfunctions/src/site/site.xml trunk/openutils-log4j/src/site/site.xml trunk/openutils-maven-skin/src/site/site.xml trunk/openutils-mgnlbootstrapsync/src/site/site.xml trunk/openutils-mgnlcontrols/src/site/site.xml trunk/openutils-mgnlcriteria/src/site/site.xml trunk/openutils-mgnlext/src/site/site.xml trunk/openutils-mgnlgroovy/src/site/site.xml trunk/openutils-mgnlmessages/src/site/site.xml trunk/openutils-mgnlrepoutils/src/site/site.xml trunk/openutils-mgnlspring/src/site/site.xml trunk/openutils-mgnlstripes/src/site/site.xml trunk/openutils-mgnlstruts11/src/site/site.xml trunk/openutils-mgnltagcloud/pom.xml trunk/openutils-mgnltagcloud/src/site/site.xml trunk/openutils-mgnltasks/src/site/site.xml trunk/openutils-mgnlutils/src/site/site.xml trunk/openutils-parent/pom.xml trunk/openutils-spring/src/site/site.xml trunk/openutils-testing/src/site/site.xml trunk/openutils-testing-junit/src/site/site.xml trunk/openutils-testing-testng/src/site/site.xml trunk/openutils-testing4dwr/src/site/site.xml trunk/openutils-testing4dwr-junit/src/site/site.xml trunk/openutils-testing4dwr-testng/src/site/site.xml trunk/openutils-testing4web/src/site/site.xml Modified: trunk/openutils-bshd5/src/site/site.xml =================================================================== --- trunk/openutils-bshd5/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-bshd5/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-dbmigration/src/site/site.xml =================================================================== --- trunk/openutils-dbmigration/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-dbmigration/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -25,6 +25,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-deployment/src/site/site.xml =================================================================== --- trunk/openutils-deployment/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-deployment/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -25,6 +25,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-elfunctions/src/site/site.xml =================================================================== --- trunk/openutils-elfunctions/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-elfunctions/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-log4j/src/site/site.xml =================================================================== --- trunk/openutils-log4j/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-log4j/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -29,6 +29,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-maven-skin/src/site/site.xml =================================================================== --- trunk/openutils-maven-skin/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-maven-skin/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlbootstrapsync/src/site/site.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlbootstrapsync/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlcontrols/src/site/site.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlcontrols/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -27,6 +27,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlcriteria/src/site/site.xml =================================================================== --- trunk/openutils-mgnlcriteria/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlcriteria/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -25,6 +25,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlext/src/site/site.xml =================================================================== --- trunk/openutils-mgnlext/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlext/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlgroovy/src/site/site.xml =================================================================== --- trunk/openutils-mgnlgroovy/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlgroovy/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlmessages/src/site/site.xml =================================================================== --- trunk/openutils-mgnlmessages/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlmessages/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlrepoutils/src/site/site.xml =================================================================== --- trunk/openutils-mgnlrepoutils/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlrepoutils/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -25,6 +25,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> \ No newline at end of file Modified: trunk/openutils-mgnlspring/src/site/site.xml =================================================================== --- trunk/openutils-mgnlspring/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlspring/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlstripes/src/site/site.xml =================================================================== --- trunk/openutils-mgnlstripes/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlstripes/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnlstruts11/src/site/site.xml =================================================================== --- trunk/openutils-mgnlstruts11/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlstruts11/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnltagcloud/pom.xml =================================================================== --- trunk/openutils-mgnltagcloud/pom.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnltagcloud/pom.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-parent</artifactId> @@ -73,6 +74,18 @@ </resource> </resources> </build> + <reporting> + <plugins> + <plugin> + <groupId>net.sourceforge.maven-taglib</groupId> + <artifactId>maven-taglib-plugin</artifactId> + <version>2.4</version> + </plugin> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + </plugins> + </reporting> <dependencies> <dependency> <groupId>info.magnolia</groupId> Modified: trunk/openutils-mgnltagcloud/src/site/site.xml =================================================================== --- trunk/openutils-mgnltagcloud/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnltagcloud/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-mgnltasks/src/site/site.xml =================================================================== --- trunk/openutils-mgnltasks/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnltasks/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> \ No newline at end of file Modified: trunk/openutils-mgnlutils/src/site/site.xml =================================================================== --- trunk/openutils-mgnlutils/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-mgnlutils/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-parent/pom.xml =================================================================== --- trunk/openutils-parent/pom.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-parent/pom.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -210,7 +210,7 @@ </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> - <version>2.6.1</version> + <version>2.7</version> <configuration> <encoding>UTF-8</encoding> <quiet>true</quiet> @@ -230,7 +230,7 @@ <plugins> <plugin> <artifactId>maven-javadoc-plugin</artifactId> - <version>2.6.1</version> + <version>2.7</version> <configuration> <encoding>UTF-8</encoding> <quiet>true</quiet> Modified: trunk/openutils-spring/src/site/site.xml =================================================================== --- trunk/openutils-spring/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-spring/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing/src/site/site.xml =================================================================== --- trunk/openutils-testing/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,7 +4,7 @@ Openutils testing library (http://www.openmindlab.com/products/testing.html) Framework that helps to simplify unit testing coding - Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindonline.it + Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindlab.com This library is free software; you can redistribute it and/or @@ -30,8 +30,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -52,6 +52,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing-junit/src/site/site.xml =================================================================== --- trunk/openutils-testing-junit/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing-junit/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,7 +4,7 @@ Openutils testing library (JUnit) (http://www.openmindlab.com/products/testing.html) Framework that helps to simplify unit testing coding with JUnit - Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindonline.it + Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindlab.com This library is free software; you can redistribute it and/or @@ -30,9 +30,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -52,6 +52,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing-testng/src/site/site.xml =================================================================== --- trunk/openutils-testing-testng/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing-testng/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,7 +4,7 @@ Openutils testing library (TestNG) (http://www.openmindlab.com/products/testing.html) Framework that helps to simplify unit testing coding with TestNG - Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindonline.it + Copyright (C)2005 - 2009, Openmind S.r.l. http://www.openmindlab.com This library is free software; you can redistribute it and/or @@ -30,9 +30,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -52,6 +52,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing4dwr/src/site/site.xml =================================================================== --- trunk/openutils-testing4dwr/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing4dwr/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing4dwr-junit/src/site/site.xml =================================================================== --- trunk/openutils-testing4dwr-junit/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing4dwr-junit/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing4dwr-testng/src/site/site.xml =================================================================== --- trunk/openutils-testing4dwr-testng/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing4dwr-testng/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,9 +4,9 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png + <src>http://www.openmindlab.com/images/openutils-logo.png </src> - <href>http://openutils.sourceforge.net</href> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -26,6 +26,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> Modified: trunk/openutils-testing4web/src/site/site.xml =================================================================== --- trunk/openutils-testing4web/src/site/site.xml 2010-06-01 12:58:29 UTC (rev 2618) +++ trunk/openutils-testing4web/src/site/site.xml 2010-06-01 13:02:42 UTC (rev 2619) @@ -4,8 +4,8 @@ <version position="navigation-bottom" /> <bannerRight> <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png</src> - <href>http://openutils.sourceforge.net</href> + <src>http://www.openmindlab.com/images/openutils-logo.png</src> + <href>http://www.openmindlab.com</href> </bannerRight> <bannerLeft> <name>Sourceforge</name> @@ -25,6 +25,6 @@ <skin> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> + <version>1.2</version> </skin> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-06-08 15:51:45
|
Revision: 2635 http://openutils.svn.sourceforge.net/openutils/?rev=2635&view=rev Author: fgiust Date: 2010-06-08 15:51:39 +0000 (Tue, 08 Jun 2010) Log Message: ----------- magnolia 4.3.2 Modified Paths: -------------- trunk/magnolia-test-webapp/pom.xml trunk/openutils-mgnlmedia/pom.xml Modified: trunk/magnolia-test-webapp/pom.xml =================================================================== --- trunk/magnolia-test-webapp/pom.xml 2010-06-08 11:16:06 UTC (rev 2634) +++ trunk/magnolia-test-webapp/pom.xml 2010-06-08 15:51:39 UTC (rev 2635) @@ -82,7 +82,7 @@ <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-dms</artifactId> - <version>1.4</version> + <version>1.4.3</version> </dependency> <dependency> <groupId>taglibs</groupId> @@ -235,8 +235,8 @@ </dependencies> </dependencyManagement> <properties> - <magnolia.version>4.3.1</magnolia.version> - <stk.version>1.2</stk.version> + <magnolia.version>4.3.2</magnolia.version> + <stk.version>1.3.1</stk.version> </properties> <build> <plugins> Modified: trunk/openutils-mgnlmedia/pom.xml =================================================================== --- trunk/openutils-mgnlmedia/pom.xml 2010-06-08 11:16:06 UTC (rev 2634) +++ trunk/openutils-mgnlmedia/pom.xml 2010-06-08 15:51:39 UTC (rev 2635) @@ -212,6 +212,6 @@ </repository> </repositories> <properties> - <magnolia.version>4.3.1</magnolia.version> + <magnolia.version>4.3.2</magnolia.version> </properties> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 10:23:22
|
Revision: 2671 http://openutils.svn.sourceforge.net/openutils/?rev=2671&view=rev Author: diego_schivo Date: 2010-06-18 10:23:13 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 media column type provided by media module Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlmedia/pom.xml Added Paths: ----------- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.gridColumnTypes.media.xml Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 09:57:29 UTC (rev 2670) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 10:23:13 UTC (rev 2671) @@ -9,7 +9,6 @@ <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/LinkField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/PipeComboBox.js"></script> - <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/MediaField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/FileField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/ColorField.js"></script> [#list gridColumnTypes?values as gct] @@ -160,12 +159,6 @@ lazyRender: true, listClass: 'x-combo-list-small' })) - [#elseif (colmap.type?? && colmap.type = 'media')] - editor: new Ed(new MediaField({ - })), - renderer : function(v, p, record){ - return v ? '<img border="0" alt="" src="${request.contextPath}/mediathumbnail/' + v + '" />' : v; - } [#elseif (colmap.type?? && colmap.type = 'file')] editor: new Ed(new FileField({ })), Modified: trunk/openutils-mgnlmedia/pom.xml =================================================================== --- trunk/openutils-mgnlmedia/pom.xml 2010-06-18 09:57:29 UTC (rev 2670) +++ trunk/openutils-mgnlmedia/pom.xml 2010-06-18 10:23:13 UTC (rev 2671) @@ -107,7 +107,9 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnlcontrols</artifactId> - <version>4.0.7</version> + <!-- CONTROLS-31: latest version of controls module needed --> + <!--version>4.0.7</version--> + <version>4.0.9-SNAPSHOT</version> </dependency> <dependency> <groupId>net.sourceforge.openutils</groupId> Added: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java (rev 0) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 10:23:13 UTC (rev 2671) @@ -0,0 +1,38 @@ +package net.sourceforge.openutils.mgnlmedia.grid; + +import info.magnolia.context.MgnlContext; +import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnType; + + +/** + * @author dschivo + * @version $Id$ + */ +public class MediaGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/MediaField.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String getColumnModelSnippet() + { + return "editor: new Ed(new MediaField({\n" + + "})),\n" + + "renderer : function(v, p, record){\n" + + "return v ? '<img border=\"0\" alt=\"\" src=\"" + + MgnlContext.getContextPath() + + "/mediathumbnail/' + v + '\" />' : v;\n" + + "}\n"; + } + +} Property changes on: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.gridColumnTypes.media.xml =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.gridColumnTypes.media.xml (rev 0) +++ trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.gridColumnTypes.media.xml 2010-06-18 10:23:13 UTC (rev 2671) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="media" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>a13f8558-4d87-48f5-a323-14c8886197b6</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmedia.grid.MediaGridColumnType</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T12:13:52.875+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.gridColumnTypes.media.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 10:47:15
|
Revision: 2672 http://openutils.svn.sourceforge.net/openutils/?rev=2672&view=rev Author: diego_schivo Date: 2010-06-18 10:47:07 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 media column type provided by media module Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/grid.css trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java Added Paths: ----------- trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/css/ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/css/img/ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/css/img/media-trigger.gif trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/MediaField.js Removed Paths: ------------- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/img/media-trigger.gif trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 10:23:13 UTC (rev 2671) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 10:47:07 UTC (rev 2672) @@ -11,9 +11,6 @@ <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/PipeComboBox.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/FileField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/ColorField.js"></script> - [#list gridColumnTypes?values as gct] - ${gct.headSnippet} - [/#list] <script type="text/javascript"> // <![CDATA[ @@ -68,6 +65,10 @@ <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="${request.contextPath}/.resources/controls/css/grid-ie6fix.css" /> <![endif]--> + + [#list gridColumnTypes?values as gct] + ${gct.headSnippet} + [/#list] [/#if] [#assign key = uuid?replace("-", "")] Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/grid.css =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/grid.css 2010-06-18 10:23:13 UTC (rev 2671) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/grid.css 2010-06-18 10:47:07 UTC (rev 2672) @@ -3,11 +3,6 @@ cursor: pointer; } -.x-form-field-wrap .x-form-media-trigger { - background-image: url(img/media-trigger.gif); - cursor: pointer; -} - .x-form-field-wrap .x-form-fckedit-trigger { background-image: url(img/fckedit-trigger.gif); cursor: pointer; Deleted: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/css/img/media-trigger.gif =================================================================== (Binary files differ) Deleted: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js 2010-06-18 10:23:13 UTC (rev 2671) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/MediaField.js 2010-06-18 10:47:07 UTC (rev 2672) @@ -1,14 +0,0 @@ -var MediaField = Ext.extend(Ext.form.TriggerField, { - - triggerClass: 'x-form-media-trigger', - - onTriggerClick: function(){ - if (this.disabled) return; - - window.setNewMedia = function(nodeid, uuid, file, thumb){ - this.setValue(uuid); - }.createDelegate(this); - mgnlOpenWindow('/.magnolia/pages/mediaBrowser.html?nodeid=' + name + '&selectMedia=true&mgnlCK=' + mgnlGetCacheKiller(), 800, 500); - } - -}); Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 10:23:13 UTC (rev 2671) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 10:47:07 UTC (rev 2672) @@ -18,7 +18,14 @@ { return "<script type=\"text/javascript\" src=\"" + MgnlContext.getContextPath() - + "/.resources/controls/js/MediaField.js\"></script>"; + + "/.resources/controls/js/MediaField.js\"></script>\n" + + "<style type=\"text/css\">\n" + + ".x-form-field-wrap .x-form-media-trigger {\n" + + "background-image: url(" + + MgnlContext.getContextPath() + + "/.resources/controls/css/img/media-trigger.gif);\n" + + "}\n" + + "</style>"; } /** @@ -32,7 +39,7 @@ + "return v ? '<img border=\"0\" alt=\"\" src=\"" + MgnlContext.getContextPath() + "/mediathumbnail/' + v + '\" />' : v;\n" - + "}\n"; + + "}"; } } Added: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/css/img/media-trigger.gif =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/css/img/media-trigger.gif ___________________________________________________________________ Added: svn:mime-type + image/gif Added: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/MediaField.js =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/MediaField.js (rev 0) +++ trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/MediaField.js 2010-06-18 10:47:07 UTC (rev 2672) @@ -0,0 +1,14 @@ +var MediaField = Ext.extend(Ext.form.TriggerField, { + + triggerClass: 'x-form-media-trigger', + + onTriggerClick: function(){ + if (this.disabled) return; + + window.setNewMedia = function(nodeid, uuid, file, thumb){ + this.setValue(uuid); + }.createDelegate(this); + mgnlOpenWindow('/.magnolia/pages/mediaBrowser.html?nodeid=' + name + '&selectMedia=true&mgnlCK=' + mgnlGetCacheKiller(), 800, 500); + } + +}); Property changes on: trunk/openutils-mgnlmedia/src/main/resources/mgnl-resources/controls/js/MediaField.js ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 12:45:27
|
Revision: 2675 http://openutils.svn.sourceforge.net/openutils/?rev=2675&view=rev Author: diego_schivo Date: 2010-06-18 12:45:20 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 link column type Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 10:55:42 UTC (rev 2674) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 12:45:20 UTC (rev 2675) @@ -21,7 +21,9 @@ import info.magnolia.context.MgnlContext; +import java.util.Map; + /** * @author dschivo * @version $Id$ @@ -42,7 +44,7 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet() + public String getColumnModelSnippet(Map colmap) { return "editor: new Ed(new FckEditorField({\n" + "contextPath: '" Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 10:55:42 UTC (rev 2674) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 12:45:20 UTC (rev 2675) @@ -19,6 +19,8 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; +import java.util.Map; + /** * @author dschivo * @version $Id$ @@ -36,6 +38,6 @@ * Returns the columnModelSnippet. * @return the columnModelSnippet */ - public String getColumnModelSnippet(); + public String getColumnModelSnippet(Map colmap); } Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-18 12:45:20 UTC (rev 2675) @@ -0,0 +1,46 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.context.MgnlContext; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author dschivo + * @version $Id$ + */ +public class LinkGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/LinkField.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String getColumnModelSnippet(Map colmap) + { + List<String> options = new ArrayList<String>(); + if (!StringUtils.isEmpty((String) colmap.get("repository"))) + { + options.add("repository: '" + colmap.get("repository") + "'"); + } + if (!StringUtils.isEmpty((String) colmap.get("extension"))) + { + options.add("extension: '" + colmap.get("extension") + "'"); + } + return "editor: new Ed(new LinkField({\n" + StringUtils.join(options, ",\n") + "}))"; + } + +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 10:55:42 UTC (rev 2674) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 12:45:20 UTC (rev 2675) @@ -6,7 +6,6 @@ [#else] <script type="text/javascript" src="${request.contextPath}/.resources/ext/ext-all.js"></script> [/#if] - <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/LinkField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/PipeComboBox.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/FileField.js"></script> @@ -139,13 +138,7 @@ header: '${msgs.getWithDefault(colmap.header?js_string, colmap.header?js_string)}', dataIndex: '${colmap_index}', sortable: false, - [#if (colmap.type?? && (colmap.type = 'link' || colmap.type = 'uuidLink'))] - editor: new Ed(new LinkField({ - [#if (colmap.repository??)]repository: '${colmap.repository}',[/#if] - [#if (colmap.extension??)]extension: '${colmap.extension}',[/#if] - dummy: undefined - })) - [#elseif (colmap.type?? && colmap.type = 'date')] + [#if (colmap.type?? && colmap.type = 'date')] renderer: function(value) { return value && Ext.isDate(value) ? value.format('Y-m-d') : value; }, @@ -173,7 +166,7 @@ return v ? '<em style="display: block; float: left; border: 1px solid #ACA899;"><span style="display: block; width: 10px; height: 10px; line-height: 10px; background-color: ' + v + ';"></span></em>' : ''; } [#elseif (colmap.type?? && gridColumnTypes[colmap.type]??)] - ${gridColumnTypes[colmap.type].columnModelSnippet} + ${gridColumnTypes[colmap.type].getColumnModelSnippet(colmap)} [#else] editor: new Ed(new fm.TextField({ allowBlank: true Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 10:55:42 UTC (rev 2674) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 12:45:20 UTC (rev 2675) @@ -290,6 +290,52 @@ </sv:property> </sv:node> </sv:node> + <sv:node sv:name="02"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>101ebe73-c8b1-48d2-b3a6-74092c799602</sv:value> + </sv:property> + <sv:property sv:name="extension" sv:type="String"> + <sv:value>html</sv:value> + </sv:property> + <sv:property sv:name="header" sv:type="String"> + <sv:value>testwebapp.dialogs.samples-grid.columnD.header</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="repository" sv:type="String"> + <sv:value>website</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>link</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>2010-05-11T18:49:01.296+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T14:39:23.437+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> </sv:node> </sv:node> </sv:node> Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 10:55:42 UTC (rev 2674) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 12:45:20 UTC (rev 2675) @@ -20,6 +20,9 @@ package net.sourceforge.openutils.mgnlmedia.grid; import info.magnolia.context.MgnlContext; + +import java.util.Map; + import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnType; @@ -50,7 +53,7 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet() + public String getColumnModelSnippet(Map colmap) { return "editor: new Ed(new MediaField({\n" + "})),\n" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 12:56:21
|
Revision: 2676 http://openutils.svn.sourceforge.net/openutils/?rev=2676&view=rev Author: diego_schivo Date: 2010-06-18 12:56:14 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 UUID link column type Modified Paths: -------------- trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.link.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.uuidLink.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/UUIDLinkField.js Modified: trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties =================================================================== --- trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties 2010-06-18 12:45:20 UTC (rev 2675) +++ trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties 2010-06-18 12:56:14 UTC (rev 2676) @@ -1,3 +1,6 @@ testwebapp.dialogs.samples-grid.columnA.header=Column A testwebapp.dialogs.samples-grid.columnB.header=Column B testwebapp.dialogs.samples-grid.columnC.header=Column C +testwebapp.dialogs.samples-grid.columnD.header=Column D +testwebapp.dialogs.samples-grid.columnE.header=Column E +testwebapp.dialogs.samples-grid.columnF.header=Column F Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-18 12:56:14 UTC (rev 2676) @@ -0,0 +1,46 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.context.MgnlContext; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author dschivo + * @version $Id$ + */ +public class UUIDLinkGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/UUIDLinkField.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String getColumnModelSnippet(Map colmap) + { + List<String> options = new ArrayList<String>(); + if (!StringUtils.isEmpty((String) colmap.get("repository"))) + { + options.add("repository: '" + colmap.get("repository") + "'"); + } + if (!StringUtils.isEmpty((String) colmap.get("extension"))) + { + options.add("extension: '" + colmap.get("extension") + "'"); + } + return "editor: new Ed(new UUIDLinkField({\n" + StringUtils.join(options, ",\n") + "}))"; + } + +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.link.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.link.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.link.xml 2010-06-18 12:56:14 UTC (rev 2676) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="link" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>cd884127-afb5-4e21-9182-55f9a65500cf</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.LinkGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T14:42:16.375+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.link.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.uuidLink.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.uuidLink.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.uuidLink.xml 2010-06-18 12:56:14 UTC (rev 2676) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="uuidLink" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b4d96a7a-9fed-4988-b30f-358719716363</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.UUIDLinkGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T14:51:45.890+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.uuidLink.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 12:45:20 UTC (rev 2675) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 12:56:14 UTC (rev 2676) @@ -336,6 +336,52 @@ </sv:property> </sv:node> </sv:node> + <sv:node sv:name="03"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5dacea31-6993-4769-9f40-07771cc08855</sv:value> + </sv:property> + <sv:property sv:name="extension" sv:type="String"> + <sv:value>html</sv:value> + </sv:property> + <sv:property sv:name="header" sv:type="String"> + <sv:value>testwebapp.dialogs.samples-grid.columnE.header</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="repository" sv:type="String"> + <sv:value>website</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>uuidLink</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>2010-05-11T18:49:01.296+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T14:53:01.359+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> </sv:node> </sv:node> </sv:node> Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/UUIDLinkField.js =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/UUIDLinkField.js (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/UUIDLinkField.js 2010-06-18 12:56:14 UTC (rev 2676) @@ -0,0 +1,2 @@ +var UUIDLinkField = Ext.extend(LinkField, { +}); Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/UUIDLinkField.js ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 14:10:40
|
Revision: 2678 http://openutils.svn.sourceforge.net/openutils/?rev=2678&view=rev Author: diego_schivo Date: 2010-06-18 14:10:30 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 file column type Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -20,11 +20,14 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.context.MgnlContext; import java.util.Map; +import javax.jcr.RepositoryException; + /** * @author dschivo * @version $Id$ @@ -65,8 +68,8 @@ /** * {@inheritDoc} */ - public String processValueOnSave(String value, Content colConfig) + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException { - return value; } } Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -0,0 +1,127 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.cms.beans.runtime.Document; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.core.ItemType; +import info.magnolia.cms.core.NodeData; +import info.magnolia.cms.core.Path; +import info.magnolia.cms.gui.fckeditor.FCKEditorTmpFiles; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.ContentUtil; +import info.magnolia.context.MgnlContext; +import info.magnolia.module.admininterface.SaveHandlerImpl; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import javax.jcr.RepositoryException; + +import org.apache.commons.io.FileUtils; +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author dschivo + * @version $Id$ + */ +public class FileGridColumnType implements GridColumnType +{ + + private Logger log = LoggerFactory.getLogger(getClass()); + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/FileField.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String getColumnModelSnippet(Map colmap) + { + return "editor: new Ed(new FileField({\n" + + "})),\n" + + "renderer : function(v, p, record){\n" + + "return v ? v.replace(/^.*\\//, '') : v;\n" + + "}"; + } + + /** + * {@inheritDoc} + */ + public String processValueOnLoad(String value, Content colConfig) + { + return value; + } + + /** + * {@inheritDoc} + */ + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException + { + String ctx = MgnlContext.getContextPath(); + HierarchyManager hm = parentNode.getHierarchyManager(); + Content filesNode = ContentUtil.getOrCreateContent(parentNode, propertyName + "_files", ItemType.CONTENTNODE); + String tmpPath = "/tmp/fckeditor/"; + List<String> usedFiles = new ArrayList<String>(); + + for (int index = 0; index < column.length; index++) + { + if (StringUtils.isEmpty(column[index])) + { + continue; + } + if (column[index].startsWith(ctx)) + { + String link = StringUtils.removeStart(column[index], ctx); + if (StringUtils.startsWith(link, tmpPath)) + { + String uuid = StringUtils.substringBetween(link, tmpPath, "/"); + Document doc = FCKEditorTmpFiles.getDocument(uuid); + String fileNodeName = Path.getUniqueLabel(hm, filesNode.getHandle(), "file"); + SaveHandlerImpl.saveDocument(filesNode, doc, fileNodeName, "", ""); + link = filesNode.getHandle() + "/" + fileNodeName + "/" + doc.getFileNameWithExtension(); + column[index] = link; + doc.delete(); + try + { + FileUtils.deleteDirectory(new java.io.File(Path.getTempDirectory() + "/fckeditor/" + uuid)); + } + catch (IOException e) + { + log.error("can't delete tmp file [" + Path.getTempDirectory() + "/fckeditor/" + uuid + "]"); + } + } + } + if (column[index].startsWith(filesNode.getHandle())) + { + String fileNodeName = StringUtils.removeStart(column[index], filesNode.getHandle() + "/"); + fileNodeName = StringUtils.substringBefore(fileNodeName, "/"); + usedFiles.add(fileNodeName); + } + } + + for (Iterator<NodeData> iter = filesNode.getNodeDataCollection().iterator(); iter.hasNext();) + { + NodeData fileNodeData = iter.next(); + if (!usedFiles.contains(fileNodeData.getName())) + { + fileNodeData.delete(); + } + } + + } + +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -20,10 +20,13 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; import java.util.Map; +import javax.jcr.RepositoryException; + /** * @author dschivo * @version $Id$ @@ -45,5 +48,6 @@ public String processValueOnLoad(String value, Content colConfig); - public String processValueOnSave(String value, Content colConfig); + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException; } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -1,12 +1,15 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.context.MgnlContext; import java.util.ArrayList; import java.util.List; import java.util.Map; +import javax.jcr.RepositoryException; + import org.apache.commons.lang.StringUtils; @@ -55,8 +58,8 @@ /** * {@inheritDoc} */ - public String processValueOnSave(String value, Content colConfig) + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException { - return value; } } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -2,6 +2,7 @@ import info.magnolia.cms.beans.config.ContentRepository; import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; import info.magnolia.context.MgnlContext; @@ -10,6 +11,8 @@ import java.util.List; import java.util.Map; +import javax.jcr.RepositoryException; + import org.apache.commons.lang.StringUtils; @@ -66,16 +69,22 @@ /** * {@inheritDoc} */ - public String processValueOnSave(String value, Content colConfig) + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException { String repository = StringUtils.defaultIfEmpty( NodeDataUtil.getString(colConfig, "repository"), ContentRepository.WEBSITE); - Content node = ContentUtil.getContent(repository, value); - if (node != null) + for (int index = 0; index < column.length; index++) { - value = node.getUUID(); + if (!StringUtils.isEmpty(column[index])) + { + Content node = ContentUtil.getContent(repository, column[index]); + if (node != null) + { + column[index] = node.getUUID(); + } + } } - return value; } } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -19,24 +19,14 @@ package net.sourceforge.openutils.mgnlcontrols.dialog; -import info.magnolia.cms.beans.runtime.Document; import info.magnolia.cms.beans.runtime.MultipartForm; import info.magnolia.cms.core.Content; -import info.magnolia.cms.core.HierarchyManager; import info.magnolia.cms.core.ItemType; -import info.magnolia.cms.core.NodeData; -import info.magnolia.cms.core.Path; -import info.magnolia.cms.gui.fckeditor.FCKEditorTmpFiles; import info.magnolia.cms.security.AccessDeniedException; -import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; -import info.magnolia.context.MgnlContext; import info.magnolia.module.admininterface.FieldSaveHandler; -import info.magnolia.module.admininterface.SaveHandlerImpl; -import java.io.IOException; import java.util.ArrayList; -import java.util.Iterator; import java.util.List; import java.util.Map; @@ -45,7 +35,6 @@ import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnType; import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnTypeManager; -import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -67,6 +56,8 @@ public void save(Content parentNode, Content configNode, String name, MultipartForm form, int type, int valueType, int isRichEditValue, int encoding) throws RepositoryException, AccessDeniedException { + String value = form.getParameter(name); + List<Content> colConfigs = new ArrayList<Content>(); if (configNode != null && configNode.hasContent("columns")) { @@ -75,76 +66,50 @@ Map<String, GridColumnType> colTypeMap = GridColumnTypeManager.getInstance().getColumnTypes(); - HierarchyManager hm = parentNode.getHierarchyManager(); - Content filesNode = ContentUtil.getOrCreateContent(parentNode, name + "_files", ItemType.CONTENTNODE); - String value = form.getParameter(name); - String ctx = MgnlContext.getContextPath(); - String tmpPath = "/tmp/fckeditor/"; - List<String> usedFiles = new ArrayList<String>(); - StringBuffer sbValue = new StringBuffer(value.length()); - StringBuffer sbLine = new StringBuffer(); - for (String line : StringUtils.splitPreserveAllTokens(value, '\n')) + List<String[]> columns = new ArrayList<String[]>(); + String[] allRows = StringUtils.splitPreserveAllTokens(value, '\n'); + int rowIndex = 0; + int colIndex; + for (String row : allRows) { - line = StringUtils.removeEnd(line, "\r"); - int colIndex = 0; - for (String token : StringUtils.splitPreserveAllTokens(line, '\t')) + row = StringUtils.removeEnd(row, "\r"); + colIndex = 0; + for (String token : StringUtils.splitPreserveAllTokens(row, '\t')) { - if (colIndex < colConfigs.size()) + if (columns.size() < colIndex + 1) { - Content colConfig = colConfigs.get(colIndex); - String colTypeName = NodeDataUtil.getString(colConfig, "type"); - GridColumnType colType = colTypeMap.get(colTypeName); - if (colType != null) - { - token = colType.processValueOnSave(token, colConfig); - } - else if ("file".equals(colTypeName)) - { - if (token.startsWith(ctx)) - { - String link = StringUtils.substringAfter(token, ctx); - if (StringUtils.startsWith(link, tmpPath)) - { - String uuid = StringUtils.substringBetween(link, tmpPath, "/"); - Document doc = FCKEditorTmpFiles.getDocument(uuid); - String fileNodeName = Path.getUniqueLabel(hm, filesNode.getHandle(), "file"); - SaveHandlerImpl.saveDocument(filesNode, doc, fileNodeName, "", ""); - link = filesNode.getHandle() - + "/" - + fileNodeName - + "/" - + doc.getFileNameWithExtension(); - token = link; - doc.delete(); - try - { - FileUtils.deleteDirectory(new java.io.File(Path.getTempDirectory() - + "/fckeditor/" - + uuid)); - } - catch (IOException e) - { - log.error("can't delete tmp file [" - + Path.getTempDirectory() - + "/fckeditor/" - + uuid - + "]"); - } - } - } - if (token.startsWith(filesNode.getHandle())) - { - String fileNodeName = StringUtils.removeStart(token, filesNode.getHandle() + "/"); - fileNodeName = StringUtils.substringBefore(fileNodeName, "/"); - usedFiles.add(fileNodeName); - } - } + columns.add(new String[allRows.length]); } + columns.get(colIndex)[rowIndex] = token; + colIndex++; + } + rowIndex++; + } + + colIndex = 0; + for (Content colConfig : colConfigs) + { + String colTypeName = NodeDataUtil.getString(colConfig, "type"); + GridColumnType colType = colTypeMap.get(colTypeName); + if (colType != null && colIndex < columns.size()) + { + colType.processValueOnSave(columns.get(colIndex), colConfig, name, parentNode); + } + colIndex++; + } + + StringBuilder sbValue = new StringBuilder(value.length()); + StringBuilder sbLine = new StringBuilder(); + for (rowIndex = 0; rowIndex < allRows.length; rowIndex++) + { + colIndex = 0; + for (String[] column : columns) + { if (colIndex > 0) { sbLine.append('\t'); } - sbLine.append(token); + sbLine.append(StringUtils.defaultString(column[rowIndex])); colIndex++; } if (sbValue.length() > 0) @@ -154,14 +119,7 @@ sbValue.append(sbLine); sbLine.setLength(0); } - for (Iterator<NodeData> iter = filesNode.getNodeDataCollection().iterator(); iter.hasNext();) - { - NodeData fileNodeData = iter.next(); - if (!usedFiles.contains(fileNodeData.getName())) - { - fileNodeData.delete(); - } - } + NodeDataUtil.getOrCreateAndSet(parentNode, name, new String(sbValue)); } Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 14:10:30 UTC (rev 2678) @@ -8,7 +8,6 @@ [/#if] <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/PipeComboBox.js"></script> - <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/FileField.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/ColorField.js"></script> <script type="text/javascript"> @@ -153,12 +152,6 @@ lazyRender: true, listClass: 'x-combo-list-small' })) - [#elseif (colmap.type?? && colmap.type = 'file')] - editor: new Ed(new FileField({ - })), - renderer : function(v, p, record){ - return v ? v.replace(/^.*\//, '') : v; - } [#elseif (colmap.type?? && colmap.type = 'color')] editor: new Ed(new Ext.ux.ColorField({ })), Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 13:14:42 UTC (rev 2677) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 14:10:30 UTC (rev 2678) @@ -20,12 +20,15 @@ package net.sourceforge.openutils.mgnlmedia.grid; import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; import info.magnolia.context.MgnlContext; import java.util.Map; +import javax.jcr.RepositoryException; + import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnType; import net.sourceforge.openutils.mgnlmedia.media.lifecycle.MediaModule; @@ -90,17 +93,23 @@ /** * {@inheritDoc} */ - public String processValueOnSave(String value, Content colConfig) + public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException { String mediaValueType = StringUtils.defaultIfEmpty(NodeDataUtil.getString(colConfig, "valueType"), "uuid"); if ("uuid".equals(mediaValueType)) { - if (StringUtils.startsWith(value, "/")) + for (int index = 0; index < column.length; index++) { - Content node = ContentUtil.getContentByUUID(MediaModule.REPO, value); - value = node != null ? node.getUUID() : value; + if (StringUtils.startsWith(column[index], "/")) + { + Content node = ContentUtil.getContentByUUID(MediaModule.REPO, column[index]); + if (node != null) + { + column[index] = node.getUUID(); + } + } } } - return value; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-18 16:37:48
|
Revision: 2692 http://openutils.svn.sourceforge.net/openutils/?rev=2692&view=rev Author: diego_schivo Date: 2010-06-18 16:37:42 +0000 (Fri, 18 Jun 2010) Log Message: ----------- CONTROLS-31 combo column type Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/website.sample-controls.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-files/templates/samples-controls/paragraph-grid.jsp trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.combo.xml Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -0,0 +1,76 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.context.MgnlContext; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import javax.jcr.RepositoryException; + +import org.apache.commons.lang.StringUtils; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ComboGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/PipeComboBox.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String drawSupportHtml(String propertyName, Map colmap) + { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { + List<String> options = new ArrayList<String>(); + options.add("typeAhead: true"); + options.add("triggerAction: 'all'"); + options.add("transform: 'combo-" + propertyName + "'"); + options.add("lazyRender: true"); + options.add("listClass: 'x-combo-list-small'"); + + return "editor: new Ed(new " + + ("true".equals(String.valueOf(colmap.get("pipe"))) ? "PipeComboBox" : "fm.ComboBox") + + "({\n" + + StringUtils.join(options, ",\n") + + "}))"; + } + + /** + * {@inheritDoc} + */ + public String processValueOnLoad(String value, Content colConfig) + { + return value; + } + + /** + * {@inheritDoc} + */ + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException + { + } + +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -27,7 +27,9 @@ import javax.jcr.RepositoryException; +import org.apache.commons.lang.StringUtils; + /** * @author dschivo * @version $Id$ @@ -48,8 +50,16 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet(Map colmap) + public String drawSupportHtml(String propertyName, Map colmap) { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { return "editor: new Ed(new FckEditorField({\n" + "contextPath: '" + MgnlContext.getContextPath() @@ -68,7 +78,7 @@ /** * {@inheritDoc} */ - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -48,8 +48,16 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet(Map colmap) + public String drawSupportHtml(String propertyName, Map colmap) { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { return "editor: new Ed(new FileField({\n" + "})),\n" + "renderer : function(v, p, record){\n" @@ -68,7 +76,7 @@ /** * {@inheritDoc} */ - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { String ctx = MgnlContext.getContextPath(); Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -40,14 +40,12 @@ */ public String getHeadSnippet(); - /** - * Returns the columnModelSnippet. - * @return the columnModelSnippet - */ - public String getColumnModelSnippet(Map colmap); + public String drawSupportHtml(String propertyName, Map colmap); + public String drawColumnModelJs(String propertyName, Map colmap); + public String processValueOnLoad(String value, Content colConfig); - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException; } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -33,8 +33,16 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet(Map colmap) + public String drawSupportHtml(String propertyName, Map colmap) { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { List<String> options = new ArrayList<String>(); if (!StringUtils.isEmpty((String) colmap.get("repository"))) { @@ -58,7 +66,7 @@ /** * {@inheritDoc} */ - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -36,8 +36,16 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet(Map colmap) + public String drawSupportHtml(String propertyName, Map colmap) { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { List<String> options = new ArrayList<String>(); if (!StringUtils.isEmpty((String) colmap.get("repository"))) { @@ -69,7 +77,7 @@ /** * {@inheritDoc} */ - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { String repository = StringUtils.defaultIfEmpty( Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/DialogGridSaveHandler.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -93,7 +93,7 @@ GridColumnType colType = colTypeMap.get(colTypeName); if (colType != null && colIndex < columns.size()) { - colType.processValueOnSave(columns.get(colIndex), colConfig, name, parentNode); + colType.processColumnOnSave(columns.get(colIndex), colConfig, name, parentNode); } colIndex++; } Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-18 16:37:42 UTC (rev 2692) @@ -7,7 +7,6 @@ <script type="text/javascript" src="${request.contextPath}/.resources/ext/ext-all.js"></script> [/#if] <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> - <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/PipeComboBox.js"></script> <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/ColorField.js"></script> <script type="text/javascript"> @@ -144,14 +143,6 @@ editor: new Ed(new fm.DateField({ format: 'Y-m-d' })) - [#elseif (colmap.type?? && colmap.type = 'combo')] - editor: new Ed(new [#if (colmap.pipe?? && colmap.pipe = 'true')]PipeComboBox[#else]fm.ComboBox[/#if]({ - typeAhead: true, - triggerAction: 'all', - transform: 'combo-${name}', - lazyRender: true, - listClass: 'x-combo-list-small' - })) [#elseif (colmap.type?? && colmap.type = 'color')] editor: new Ed(new Ext.ux.ColorField({ })), @@ -159,7 +150,7 @@ return v ? '<em style="display: block; float: left; border: 1px solid #ACA899;"><span style="display: block; width: 10px; height: 10px; line-height: 10px; background-color: ' + v + ';"></span></em>' : ''; } [#elseif (colmap.type?? && gridColumnTypes[colmap.type]??)] - ${gridColumnTypes[colmap.type].getColumnModelSnippet(colmap)} + ${gridColumnTypes[colmap.type].drawColumnModelJs(name, colmap)} [#else] editor: new Ed(new fm.TextField({ allowBlank: true Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.combo.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.combo.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.combo.xml 2010-06-18 16:37:42 UTC (rev 2692) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="combo" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b5b9e73c-c966-4cb4-a543-9d0fc8572b5f</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.ComboGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:34:45.343+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.combo.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-18 16:37:42 UTC (rev 2692) @@ -376,6 +376,194 @@ </sv:property> </sv:node> </sv:node> + <sv:node sv:name="04"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5649ba37-5590-46f8-b522-b03df09235db</sv:value> + </sv:property> + <sv:property sv:name="header" sv:type="String"> + <sv:value>testwebapp.dialogs.samples-grid.columnF.header</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>combo</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>2010-05-11T18:49:01.296+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:33:09.500+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="options"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>af9e8e76-5b72-4a1a-9065-cae37fc582ca</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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-06-18T18:33:13.093+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:33:15.953+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="0"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>34a0e6b4-5151-4b50-bb44-a247649c4149</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>---</sv:value> + </sv:property> + <sv:property sv:name="value" sv:type="String"> + <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:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-06-18T18:33:19.093+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:33:51.890+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="00"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>06c92448-abc7-45cc-ad20-daa764e89a51</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>one</sv:value> + </sv:property> + <sv:property sv:name="value" sv:type="String"> + <sv:value>1</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>2010-06-18T18:33:19.093+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:34:02.921+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="01"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>80dd1510-9dcb-418a-b651-b80c08a50b7f</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>two</sv:value> + </sv:property> + <sv:property sv:name="value" sv:type="String"> + <sv:value>2</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>2010-06-18T18:33:19.093+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-18T18:34:12.187+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> + </sv:node> + </sv:node> </sv:node> </sv:node> </sv:node> Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/website.sample-controls.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/website.sample-controls.xml 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/website.sample-controls.xml 2010-06-18 16:37:42 UTC (rev 2692) @@ -29,7 +29,7 @@ <sv:value>2010-05-11T18:45:03.281+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-06-18T17:55:28.281+02:00</sv:value> + <sv:value>2010-06-18T18:35:15.265+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:template" sv:type="String"> <sv:value>sampleControls</sv:value> @@ -62,7 +62,7 @@ <sv:value>2010-05-11T18:55:40.453+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-06-18T17:55:28.281+02:00</sv:value> + <sv:value>2010-06-18T18:35:15.265+02:00</sv:value> </sv:property> </sv:node> <sv:node sv:name="0"> @@ -76,20 +76,21 @@ <sv:value>0aea2f91-916f-43c9-8778-6498d2764c17</sv:value> </sv:property> <sv:property sv:name="grid" sv:type="String"> - <sv:value>hello /sample-controls.html 1e1df947-3a2b-437c-8e38-d0a03d4c41c0 <p>Lorem ipsum dolor sit amet</p> /sample-controls/main/0/grid_files/file/logo-openmindlab.png -world /demo-project.html 1be12547-ad82-4c83-8396-213466ceb003 <p>consectetur adipisici elit</p> /sample-controls/main/0/grid_files/file0/logocontrols.gif - - - - - - - - - - - - </sv:value> + <sv:value>hello /sample-controls.html 1e1df947-3a2b-437c-8e38-d0a03d4c41c0 <p>Lorem ipsum dolor sit amet</p> /sample-controls/main/0/grid_files/file/logo-openmindlab.png 1 +world /demo-project.html 1be12547-ad82-4c83-8396-213466ceb003 <p>consectetur adipisici elit</p> /sample-controls/main/0/grid_files/file0/logocontrols.gif 2 + + + + + + + + + + + + + </sv:value> </sv:property> <sv:property sv:name="jcr:createdBy" sv:type="String"> <sv:value>admin</sv:value> @@ -108,7 +109,7 @@ <sv:value>2010-05-11T18:55:40.468+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-06-18T17:55:28.281+02:00</sv:value> + <sv:value>2010-06-18T18:35:15.265+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:template" sv:type="String"> <sv:value>samples-grid</sv:value> Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-files/templates/samples-controls/paragraph-grid.jsp =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-files/templates/samples-controls/paragraph-grid.jsp 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-files/templates/samples-controls/paragraph-grid.jsp 2010-06-18 16:37:42 UTC (rev 2692) @@ -4,31 +4,52 @@ xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld" xmlns:mu="mgnlutils"> <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> <cms:setNode var="node" /> - <table> - <c:forEach var="row" items="${mu:splitAndTokenize(node.grid)}"> + <table cellspacing="0" border="1"> + <thead> <tr> - <td>${row[0]}</td> - <td> - <c:if test="${!empty row[1]}"> - <a href="${mu:link(row[1])}">${row[1]}</a> - </c:if> - </td> - <td> - <c:if test="${!empty row[2]}"> - <a href="${mu:link(row[2])}">${row[2]}</a> - </c:if> - </td> - <td>${row[3]}</td> - <td> - <c:if test="${!empty row[4]}"> - <cms:setNode var="filesNode" path="${fn:substringBefore(row[4], '/grid_files/')}/grid_files" /> - <c:set var="property" value="${fn:substringBefore(fn:substringAfter(row[4], '/grid_files/'), '/')}" /> - <a href="${pageContext.request.contextPath}${row[4]}"> - <cms:out contentNode="${filesNode}" nodeDataName="${property}" fileProperty="name" /> - </a> - </c:if> - </td> + <th>text</th> + <th>link</th> + <th>uuidLink</th> + <th>fckedit</th> + <th>file</th> </tr> - </c:forEach> + </thead> + <tbody> + <c:forEach var="row" items="${mu:splitAndTokenize(node.grid)}"> + <tr> + + <!-- text --> + <td>${row[0]}</td> + + <!-- link --> + <td> + <c:if test="${!empty row[1]}"> + <a href="${mu:link(row[1])}">${row[1]}</a> + </c:if> + </td> + + <!-- uuidLink --> + <td> + <c:if test="${!empty row[2]}"> + <a href="${mu:link(row[2])}">${row[2]}</a> + </c:if> + </td> + + <!-- fckedit --> + <td>${row[3]}</td> + + <!-- file --> + <td> + <c:if test="${!empty row[4]}"> + <cms:setNode var="filesNode" path="${fn:substringBefore(row[4], '/grid_files/')}/grid_files" /> + <c:set var="property" value="${fn:substringBefore(fn:substringAfter(row[4], '/grid_files/'), '/')}" /> + <a href="${pageContext.request.contextPath}${row[4]}"> + <cms:out contentNode="${filesNode}" nodeDataName="${property}" fileProperty="name" /> + </a> + </c:if> + </td> + </tr> + </c:forEach> + </tbody> </table> </jsp:root> \ No newline at end of file Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 16:37:15 UTC (rev 2691) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-18 16:37:42 UTC (rev 2692) @@ -62,8 +62,16 @@ /** * {@inheritDoc} */ - public String getColumnModelSnippet(Map colmap) + public String drawSupportHtml(String propertyName, Map colmap) { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + public String drawColumnModelJs(String propertyName, Map colmap) + { return "editor: new Ed(new MediaField({\n" + "})),\n" + "renderer : function(v, p, record){\n" @@ -93,7 +101,7 @@ /** * {@inheritDoc} */ - public void processValueOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { String mediaValueType = StringUtils.defaultIfEmpty(NodeDataUtil.getString(colConfig, "valueType"), "uuid"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2010-06-18 17:11:28
|
Revision: 2693 http://openutils.svn.sourceforge.net/openutils/?rev=2693&view=rev Author: molaschi Date: 2010-06-18 17:11:17 +0000 (Fri, 18 Jun 2010) Log Message: ----------- add openutils-mgnllms project Added Paths: ----------- trunk/openutils-mgnllms/ trunk/openutils-mgnllms/pom.xml trunk/openutils-mgnllms/src/ trunk/openutils-mgnllms/src/main/ trunk/openutils-mgnllms/src/main/assembly/ trunk/openutils-mgnllms/src/main/assembly/assembly-bundle.xml trunk/openutils-mgnllms/src/main/bundle/ trunk/openutils-mgnllms/src/main/bundle/LICENSE.txt trunk/openutils-mgnllms/src/main/bundle/README.txt trunk/openutils-mgnllms/src/main/etc/ trunk/openutils-mgnllms/src/main/etc/header.txt trunk/openutils-mgnllms/src/main/java/ trunk/openutils-mgnllms/src/main/java/net/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/filters/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/filters/AggregatorServingZipFilter.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/filters/RenderingServingZipFilter.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/listeners/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/listeners/CourseEventListener.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/listeners/EmptyCourseEventListener.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/configuration/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/configuration/LmsTypeConfiguration.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/dialog/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/dialog/DialogFileCourse.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/dialog/DialogMetadata.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/dialog/PreSaveDialogMVC.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/el/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/el/LmsElFunctions.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/exceptions/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/exceptions/CourseException.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/gui/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/gui/control/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/gui/control/LmsDialogFile.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/LmsBrowserConfiguration.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/LmsJcrBrowserTreeConfiguration.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/LmsModuleTree.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/LmsModuleTreeConfiguration.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/tree/LmsModuleTreeMVCHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/LmsTypeHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/impl/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/impl/BaseTypeHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/impl/CourseTypeHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/types/impl/ScormTypeHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/uri/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/lms/uri/LmsURI2RepositoryMapping.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/LearnerActivitiesManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/LearnerManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/ScormCMIManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/impl/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/impl/LearnerManagerWithMagnoliaUsers.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/impl/MagnoliaLearnerActivitiesManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/managers/impl/MagnoliaScormCmiManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/module/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/module/LMSConfigurationModuleManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/module/LMSModule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/module/LMSModuleVersionHandler.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/module/LmsTypesManager.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/lms/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/lms/ScormCmiPage.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/lms/ScormPlayerPage.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/report/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/report/UserReportPage.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/pages/report/UserReportPageAdmin.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/report/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/report/Helper.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/report/Objective.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/report/TrackingModel.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/report/UserReport.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/samples/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/samples/listeners/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/samples/listeners/ExactContentFilter.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/samples/listeners/StudentLevelListener.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/CommonDataItemOrganization.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Dependency.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/File.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Item.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Manifest.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Metadata.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/ObjectFactory.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Organization.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Organizations.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Resource.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/Resources.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/CompletionThreshold.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/Data.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/Map.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/ObjectFactory.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/TimeLimitAction.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/cp/package-info.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/AuxiliaryResource.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/AuxiliaryResources.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ChildActivity.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ConditionCombination.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ConditionOperator.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ControlMode.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/DeliveryControls.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ExitConditionRule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ExitConditionRuleAction.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/LimitConditions.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/MapInfo.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ObjectFactory.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/Objective.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ObjectiveBase.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/ObjectiveMapping.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/Objectives.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/PostConditionRule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/PostConditionRuleAction.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/PreConditionRule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/PreConditionRuleAction.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/PrimaryObjective.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RandomTiming.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/Randomization.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupAction.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupActionEnum.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupConditions.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupRule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupRuleCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RollupRules.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RuleActionExitCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RuleActionPostCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RuleActionPreCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RuleCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/RuleConditions.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/Sequencing.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/SequencingCollection.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/SequencingRule.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/SequencingRuleCondition.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/SequencingRules.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/imsss/package-info.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/HideLMSUI.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/NavigationInterface.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/ObjectFactory.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/Presentation.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/nav/package-info.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/package-info.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/ConstrainChoiceConsiderations.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/MapInfo.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/ObjectFactory.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/Objective.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/Objectives.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/RollupConsideration.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/RollupConsiderations.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/SeqObjective.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/SeqObjectives.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/model/seq/package-info.java trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/utils/ trunk/openutils-mgnllms/src/main/java/net/sourceforge/openutils/mgnllms/scorm/utils/JaxbUtils.java trunk/openutils-mgnllms/src/main/resources/ trunk/openutils-mgnllms/src/main/resources/META-INF/ trunk/openutils-mgnllms/src/main/resources/META-INF/lms.tld trunk/openutils-mgnllms/src/main/resources/META-INF/magnolia/ trunk/openutils-mgnllms/src/main/resources/META-INF/magnolia/lms.xml trunk/openutils-mgnllms/src/main/resources/META-INF/tags/ trunk/openutils-mgnllms/src/main/resources/META-INF/tags/playerUrl.tag trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/ trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/ trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.adminInterface.config.menu.lms.lmstree.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.adminInterface.config.menu.lms.lmstreeJCR.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.adminInterface.config.menu.lms.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.controls.fileCourse.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.controls.fileuri.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.controls.metadata.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.dialogs.common.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.dialogs.courseDlg.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.dialogs.scormDlg.tabScorm.satisfactionRule.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.dialogs.scormDlg.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.lms-types.course.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.lms-types.scorm.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.pages.scormcmi.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.pages.scormplayer.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.pages.userReport.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.pages.userReportAdmin.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.trees.lms-jcr.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.trees.lms.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.virtualURIMapping.persistence.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.modules.lms.virtualURIMapping.player.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/config.server.URI2RepositoryMapping.mappings.lms.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap/lms/userroles.learner.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/ trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/ trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/config.modules.lms.lms-config.listeners.student-level.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/config.modules.lms.templates.sample-courses.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/config.modules.lms.templates.sample-main.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/config.modules.lms.templates.user-report.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/lms.samples.std-level-1.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/userroles.learner.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/userroles.std-level-1.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/userroles.std-level-2a.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/userroles.std-level-2b.xml trunk/openutils-mgnllms/src/main/resources/mgnl-bootstrap-samples/lms/users.admin.student.xml trunk/openutils-mgnllms/src/main/resources/mgnl-files/ trunk/openutils-mgnllms/src/main/resources/mgnl-files/templates/ trunk/openutils-mgnllms/src/main/resources/mgnl-files/templates/samples-lms/ trunk/openutils-mgnllms/src/main/resources/mgnl-files/templates/samples-lms/courses.jsp trunk/openutils-mgnllms/src/main/resources/mgnl-files/templates/samples-lms/index.jsp trunk/openutils-mgnllms/src/main/resources/mgnl-nodetypes/ trunk/openutils-mgnllms/src/main/resources/mgnl-nodetypes/lms/ trunk/openutils-mgnllms/src/main/resources/mgnl-nodetypes/lms/magnolia-nodetypes.xml trunk/openutils-mgnllms/src/main/resources/mgnl-resources/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/css/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/css/override.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/browse16.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/course.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/edit.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/folder16.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/pause.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/play.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/scorm.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/search16.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/search24.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/icons/zip.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/ActivityTree.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/AuxClass.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/GlobalSharedObjective.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/IScorm.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/Objective.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/RollupProcess.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/TrackingModel.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/api_scorm.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/at2.diff trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/conditions.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/a_pixel.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/core.json trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/deps.json trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/jxlib.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/jxlib.json trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/jxlib.standalone.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/jxlib.standalone.uncompressed.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/jxlib.uncompressed.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/mootools-core.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/mootools-more.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/more.json trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/ie6.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/ie7.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/a_pixel.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/button.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/button_combo.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/button_multi.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/button_multi_disclose.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/dialog_chrome.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/dialog_resize.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/emblems.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/flyout_chrome.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/grid.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/loading.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/menuitem.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/panel_controls.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/panelbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tab_bottom.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tab_close.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tab_left.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tab_right.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tab_top.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tabbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tabbar_bottom.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tabbar_left.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tabbar_right.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/table_col.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/table_row.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/toolbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/toolbar_separator_h.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/toolbar_separator_v.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tree.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tree_hover.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/images/tree_vert_line.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/jxtheme.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/crispin/jxtheme.uncompressed.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/ie6.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/ie7.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/a_pixel.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/button.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/button_combo.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/button_multi.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/button_multi_disclose.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/dialog_chrome.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/dialog_resize.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/emblems.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/flyout_chrome.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/grid.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/loading.gif trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/menuitem.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/panel_controls.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/panelbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tab_bottom.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tab_close.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tab_left.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tab_right.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tab_top.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tabbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tabbar_bottom.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tabbar_left.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tabbar_right.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/table_col.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/table_row.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/toolbar.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/toolbar_separator_h.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/toolbar_separator_v.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tree.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tree_hover.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/images/tree_vert_line.png trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/jxtheme.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/jxlib/themes/delicious/jxtheme.uncompressed.css trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/lms.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/mootools-1.2.3-core-nc.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/mootools-1.2.3-core-yc.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/mootools-1.2.3.1-more.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/store.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/ui.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/ui2.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/js/validator.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/proddingsco.htm trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-1_Instruction.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-2_Instruction.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-3_Remediation.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-4_Remediation.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-A_Pre-Test.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-B_Post-Test_Mastery.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/SCO-C_Post-Test.html trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/XMLSchema.dtd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/adlcp_v1p3.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/adlnav_v1p3.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/adlseq_v1p3.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/anyElement.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/dataTypes.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/elementNames.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/elementTypes.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/rootElement.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/vocabTypes.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/common/vocabValues.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/datatypes.dtd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/extend/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/extend/custom.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/extend/strict.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/ims_xml.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imscp_v1p1.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsmanifest.xml trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsmanifest2.xml trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0auxresource.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0control.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0delivery.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0limit.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0objective.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0random.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0rollup.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0seqrule.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/imsss_v1p0util.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/lom.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/lomCustom.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/lomLoose.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/lomStrict.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/unique/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/unique/loose.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/unique/strict.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/util/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/util/APIWrapper.js trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/vocab/ trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/vocab/custom.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/vocab/loose.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/vocab/strict.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/sample/xml.xsd trunk/openutils-mgnllms/src/main/resources/mgnl-resources/lms/termine.html trunk/openutils-mgnllms/src/main/resources/net/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/lms/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/lms/gui/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/lms/lang/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/lms/lang/messages_en.properties trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/lms/lang/messages_it.properties trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/lms/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/lms/ScormPlayerPage.html trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/report/ trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/report/UserReportPage.html trunk/openutils-mgnllms/src/main/resources/net/sourceforge/openutils/mgnllms/pages/report/UserReportPageAdmin.html trunk/openutils-mgnllms/src/main/resources/pages/ trunk/openutils-mgnllms/src/main/resources/templates/ trunk/openutils-mgnllms/src/main/resources/templates/user-report.html trunk/openutils-mgnllms/src/test/ trunk/openutils-mgnllms/src/test/java/ trunk/openutils-mgnllms/src/test/java/net/ trunk/openutils-mgnllms/src/test/java/net/sourceforge/ trunk/openutils-mgnllms/src/test/java/net/sourceforge/openutils/ trunk/openutils-mgnllms/src/test/java/net/sourceforge/openutils/mgnllms/ trunk/openutils-mgnllms/src/test/java/net/sourceforge/openutils/mgnllms/TestJaxb.java trunk/openutils-mgnllms/src/test/resources/ trunk/openutils-mgnllms/src/test/resources/testjaxb/ trunk/openutils-mgnllms/src/test/resources/testjaxb/adlcp_v1p3.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/adlnav_v1p3.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/adlseq_v1p3.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imscp_v1p1.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsmanifest.xml trunk/openutils-mgnllms/src/test/resources/testjaxb/imsmanifest2.xml trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0auxresource.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0control.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0delivery.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0limit.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0objective.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0random.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0rollup.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0seqrule.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/imsss_v1p0util.xsd trunk/openutils-mgnllms/src/test/resources/testjaxb/test.zip trunk/openutils-mgnllms/src/xsd/ trunk/openutils-mgnllms/src/xsd/adlcp_v1p3.xsd trunk/openutils-mgnllms/src/xsd/adlnav_v1p3.xsd trunk/openutils-mgnllms/src/xsd/adlseq_v1p3.xsd trunk/openutils-mgnllms/src/xsd/imscp_v1p1.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0auxresource.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0control.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0delivery.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0limit.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0objective.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0random.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0rollup.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0seqrule.xsd trunk/openutils-mgnllms/src/xsd/imsss_v1p0util.xsd Added: trunk/openutils-mgnllms/pom.xml =================================================================== --- trunk/openutils-mgnllms/pom.xml (rev 0) +++ trunk/openutils-mgnllms/pom.xml 2010-06-18 17:11:17 UTC (rev 2693) @@ -0,0 +1,214 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-parent</artifactId> + <version>1.5</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnllms</artifactId> + <name>Magnolia LMS Module</name> + <description>Magnolia LMS Module: a module for Magnolia CMS to build a simple Learning Management System.</description> + <version>0.0.1-SNAPSHOT</version> + <inceptionYear>2010</inceptionYear> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <url>http://www.openmindlab.com/lab/products/lms.html</url> + <issueManagement> + <system>jira</system> + <url>http://jira.openmindlab.com/browse/</url> + </issueManagement> + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnllms</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-mgnllms</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk/openutils-mgnllms</url> + </scm> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <reporting> + <plugins> + <plugin> + <groupId>net.sourceforge.maven-taglib</groupId> + <artifactId>maven-taglib-plugin</artifactId> + <version>2.4</version> + <configuration> + <parseHtml>true</parseHtml> + <dontRecurseIntoSubdirs>true</dontRecurseIntoSubdirs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-changes-plugin</artifactId> + <version>2.3</version> + <reportSets> + <reportSet> + <reports> + <report>jira-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>${magnolia.version}</version> + <exclusions> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + <exclusion> + <groupId>javax.jms</groupId> + <artifactId>jms</artifactId> + </exclusion> + <exclusion> + <groupId>com.sun.jdmk</groupId> + <artifactId>jmxtools</artifactId> + </exclusion> + <exclusion> + <groupId>com.sun.jmx</groupId> + <artifactId>jmxri</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>${magnolia.version}</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>4.1.2</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlcontrols</artifactId> + <version>4.0.7</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlext</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-elfunctions</artifactId> + <version>1.1.1</version> + </dependency> + <dependency> + <groupId>com.google.collections</groupId> + <artifactId>google-collections</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-standard-templating-kit</artifactId> + <version>1.2</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>javax.xml</groupId> + <artifactId>jaxb-impl</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>javax.xml</groupId> + <artifactId>jaxb-api</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>net.sf.json-lib</groupId> + <artifactId>json-lib</artifactId> + <version>2.2.3</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xmlParserAPIs</artifactId> + </exclusion> + <exclusion> + <groupId>xml-apis</groupId> + <artifactId>xml-apis</artifactId> + </exclusion> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + </dependency> + <!-- to be released before the final 4.3 version --> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlcriteria</artifactId> + <version>2.0-b8</version> + </dependency> + <!-- to be released before the final 4.3 version --> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.openmindonline.it</id> + <name>openmindonline repository</name> + <url>http://repository.openmindonline.it</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + <properties> + <magnolia.version>4.3.2</magnolia.version> + </properties> +</project> Added: trunk/openutils-mgnllms/src/main/assembly/assembly-bundle.xml =================================================================== --- trunk/openutils-mgnllms/src/main/assembly/assembly-bundle.xml (rev 0) +++ trunk/openutils-mgnllms/src/main/assembly/assembly-bundle.xml 2010-06-18 17:11:17 UTC (rev 2693) @@ -0,0 +1,33 @@ +<assembly> + <id>bundle</id> + <formats> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <filtered>true</filtered> + <outputDirectory>/</outputDirectory> + <lineEnding>crlf</lineEnding> + <directory>${basedir}/src/main/bundle</directory> + <includes> + <include>*</include> + </includes> + </fileSet> + <fileSet> + <directory>src/main/java/</directory> + <outputDirectory>/sources/</outputDirectory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>bin</outputDirectory> + <includes> + <include>net.sourceforge.openutils:*</include> + </includes> + </dependencySet> + </dependencySets> +</assembly> \ No newline at end of file Added: trunk/openutils-mgnllms/src/main/bundle/LICENSE.txt =================================================================== --- trunk/openutils-mgnllms/src/main/bundle/LICENSE.txt (rev 0) +++ trunk/openutils-mgnllms/src/main/bundle/LICENSE.txt 2010-06-18 17:11:17 UTC (rev 2693) @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary... [truncated message content] |
From: <die...@us...> - 2010-06-21 09:50:49
|
Revision: 2697 http://openutils.svn.sourceforge.net/openutils/?rev=2697&view=rev Author: diego_schivo Date: 2010-06-21 09:50:42 +0000 (Mon, 21 Jun 2010) Log Message: ----------- CONTROLS-31 refactoring Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ColorGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/DateGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/TextGridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.color.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.date.xml trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.text.xml Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,103 @@ +/** + * + * Magnolia controls module (http://www.openmindlab.com/lab/products/controls.html) + * Copyright (C)2008 - 2010, 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.configuration; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.i18n.Messages; +import info.magnolia.cms.security.AccessDeniedException; + +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +import javax.jcr.RepositoryException; + +import org.apache.commons.lang.StringEscapeUtils; +import org.apache.commons.lang.StringUtils; + + +/** + * @author dschivo + * @version $Id$ + */ +public abstract class AbstractGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public String drawSupportHtml(String propertyName, Map colmap) + { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public String drawColumnJs(String propertyName, int colIndex, Map colMap, Messages msgs) + { + StringBuilder sb = new StringBuilder(); + Map<String, String> column = new HashMap<String, String>(); + String header = (String) colMap.get("header"); + column.put("header", "'" + StringEscapeUtils.escapeJavaScript(msgs.getWithDefault(header, header)) + "'"); + column.put("dataIndex", "'" + colIndex + "'"); + column.put("sortable", "false"); + addColumnData(column, propertyName, colIndex, colMap, msgs); + for (Entry<String, String> entry : column.entrySet()) + { + if (sb.length() > 0) + { + sb.append(",\n"); + } + sb.append(entry.getKey()).append(": ").append(entry.getValue()); + } + return "{\n" + sb + "\n}\n"; + } + + /** + * {@inheritDoc} + */ + public String processValueOnLoad(String value, Content colConfig) + { + return value; + } + + /** + * {@inheritDoc} + */ + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException + { + } + + @SuppressWarnings("unchecked") + protected abstract void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs); +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ColorGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ColorGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ColorGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,61 @@ +/** + * + * Magnolia controls module (http://www.openmindlab.com/lab/products/controls.html) + * Copyright (C)2008 - 2010, 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.configuration; + +import info.magnolia.cms.i18n.Messages; +import info.magnolia.context.MgnlContext; + +import java.util.Map; + + +/** + * @author dschivo + * @version $Id$ + */ +public class ColorGridColumnType extends AbstractGridColumnType +{ + + /** + * {@inheritDoc} + */ + @Override + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/ColorField.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) + { + column.put("editor", "new Ed(new Ext.ux.ColorField({}))"); + column + .put( + "renderer", + "function(v, p, record){ return v ? '<em style=\"display: block; float: left; border: 1px solid #ACA899;\">" + + "<span style=\"display: block; width: 10px; height: 10px; line-height: 10px; background-color: ' + v + ';\">" + + "</span></em>' : ''; }"); + } +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ColorGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -1,15 +1,31 @@ +/** + * + * Magnolia controls module (http://www.openmindlab.com/lab/products/controls.html) + * Copyright (C)2008 - 2010, 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.configuration; -import info.magnolia.cms.core.Content; -import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.i18n.Messages; import info.magnolia.context.MgnlContext; import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.jcr.RepositoryException; - import org.apache.commons.lang.StringUtils; @@ -17,12 +33,13 @@ * @author dschivo * @version $Id$ */ -public class ComboGridColumnType implements GridColumnType +public class ComboGridColumnType extends AbstractGridColumnType { /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -33,7 +50,7 @@ /** * {@inheritDoc} */ - @SuppressWarnings("unchecked") + @Override public String drawSupportHtml(String propertyName, Map colmap) { StringBuilder sb = new StringBuilder(); @@ -55,7 +72,9 @@ /** * {@inheritDoc} */ - public String drawColumnModelJs(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { List<String> options = new ArrayList<String>(); options.add("typeAhead: true"); @@ -64,27 +83,10 @@ options.add("lazyRender: true"); options.add("listClass: 'x-combo-list-small'"); - return "editor: new Ed(new " - + ("true".equals(String.valueOf(colmap.get("pipe"))) ? "PipeComboBox" : "fm.ComboBox") - + "({\n" - + StringUtils.join(options, ",\n") - + "}))"; + column.put("editor", "new Ed(new " + + ("true".equals(String.valueOf(colMap.get("pipe"))) ? "PipeComboBox" : "fm.ComboBox") + + "({" + + StringUtils.join(options, ",") + + "}))"); } - - /** - * {@inheritDoc} - */ - public String processValueOnLoad(String value, Content colConfig) - { - return value; - } - - /** - * {@inheritDoc} - */ - public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) - throws RepositoryException, AccessDeniedException - { - } - } Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/DateGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/DateGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/DateGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,44 @@ +/** + * + * Magnolia controls module (http://www.openmindlab.com/lab/products/controls.html) + * Copyright (C)2008 - 2010, 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.configuration; + +import info.magnolia.cms.i18n.Messages; + +import java.util.Map; + + +/** + * @author dschivo + * @version $Id$ + */ +public class DateGridColumnType extends AbstractGridColumnType +{ + + /** + * {@inheritDoc} + */ + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) + { + column.put("editor", "new Ed(new fm.DateField({format: 'Y-m-d'}))"); + column.put("renderer", "function(v){ return (v && Ext.isDate(v)) ? v.format('Y-m-d') : v; }"); + } +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/DateGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FckEditorGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -19,27 +19,23 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; -import info.magnolia.cms.core.Content; -import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.i18n.Messages; import info.magnolia.context.MgnlContext; import java.util.Map; -import javax.jcr.RepositoryException; -import org.apache.commons.lang.StringUtils; - - /** * @author dschivo * @version $Id$ */ -public class FckEditorGridColumnType implements GridColumnType +public class FckEditorGridColumnType extends AbstractGridColumnType { /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -50,36 +46,10 @@ /** * {@inheritDoc} */ - public String drawSupportHtml(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { - return StringUtils.EMPTY; + column.put("editor", "new Ed(new FckEditorField({contextPath: '" + MgnlContext.getContextPath() + "'}))"); } - - /** - * {@inheritDoc} - */ - public String drawColumnModelJs(String propertyName, Map colmap) - { - return "editor: new Ed(new FckEditorField({\n" - + "contextPath: '" - + MgnlContext.getContextPath() - + "'\n" - + "}))\n"; - } - - /** - * {@inheritDoc} - */ - public String processValueOnLoad(String value, Content colConfig) - { - return value; - } - - /** - * {@inheritDoc} - */ - public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) - throws RepositoryException, AccessDeniedException - { - } } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/FileGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -7,6 +7,7 @@ import info.magnolia.cms.core.NodeData; import info.magnolia.cms.core.Path; import info.magnolia.cms.gui.fckeditor.FCKEditorTmpFiles; +import info.magnolia.cms.i18n.Messages; import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.cms.util.ContentUtil; import info.magnolia.context.MgnlContext; @@ -30,7 +31,7 @@ * @author dschivo * @version $Id$ */ -public class FileGridColumnType implements GridColumnType +public class FileGridColumnType extends AbstractGridColumnType { private Logger log = LoggerFactory.getLogger(getClass()); @@ -38,6 +39,7 @@ /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -48,34 +50,18 @@ /** * {@inheritDoc} */ - public String drawSupportHtml(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { - return StringUtils.EMPTY; + column.put("editor", "new Ed(new FileField({}))"); + column.put("renderer", "function(v, p, record){ return v ? v.replace(/^.*\\//, '') : v;}"); } /** * {@inheritDoc} */ - public String drawColumnModelJs(String propertyName, Map colmap) - { - return "editor: new Ed(new FileField({\n" - + "})),\n" - + "renderer : function(v, p, record){\n" - + "return v ? v.replace(/^.*\\//, '') : v;\n" - + "}"; - } - - /** - * {@inheritDoc} - */ - public String processValueOnLoad(String value, Content colConfig) - { - return value; - } - - /** - * {@inheritDoc} - */ + @Override public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { @@ -129,7 +115,6 @@ fileNodeData.delete(); } } - } } Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -20,6 +20,7 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; import info.magnolia.cms.core.Content; +import info.magnolia.cms.i18n.Messages; import info.magnolia.cms.security.AccessDeniedException; import java.util.Map; @@ -42,7 +43,7 @@ public String drawSupportHtml(String propertyName, Map colmap); - public String drawColumnModelJs(String propertyName, Map colmap); + public String drawColumnJs(String propertyName, int colIndex, Map colmap, Messages msgs); public String processValueOnLoad(String value, Content colConfig); Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/LinkGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -1,15 +1,12 @@ package net.sourceforge.openutils.mgnlcontrols.configuration; -import info.magnolia.cms.core.Content; -import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.i18n.Messages; import info.magnolia.context.MgnlContext; import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.jcr.RepositoryException; - import org.apache.commons.lang.StringUtils; @@ -17,12 +14,13 @@ * @author dschivo * @version $Id$ */ -public class LinkGridColumnType implements GridColumnType +public class LinkGridColumnType extends AbstractGridColumnType { /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -33,41 +31,19 @@ /** * {@inheritDoc} */ - public String drawSupportHtml(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { - return StringUtils.EMPTY; - } - - /** - * {@inheritDoc} - */ - public String drawColumnModelJs(String propertyName, Map colmap) - { List<String> options = new ArrayList<String>(); - if (!StringUtils.isEmpty((String) colmap.get("repository"))) + if (!StringUtils.isEmpty((String) colMap.get("repository"))) { - options.add("repository: '" + colmap.get("repository") + "'"); + options.add("repository: '" + colMap.get("repository") + "'"); } - if (!StringUtils.isEmpty((String) colmap.get("extension"))) + if (!StringUtils.isEmpty((String) colMap.get("extension"))) { - options.add("extension: '" + colmap.get("extension") + "'"); + options.add("extension: '" + colMap.get("extension") + "'"); } - return "editor: new Ed(new LinkField({\n" + StringUtils.join(options, ",\n") + "}))"; + column.put("editor", "new Ed(new LinkField({" + StringUtils.join(options, ",") + "}))"); } - - /** - * {@inheritDoc} - */ - public String processValueOnLoad(String value, Content colConfig) - { - return value; - } - - /** - * {@inheritDoc} - */ - public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) - throws RepositoryException, AccessDeniedException - { - } } Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/TextGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/TextGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/TextGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,24 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.cms.i18n.Messages; + +import java.util.Map; + + +/** + * @author dschivo + * @version $Id$ + */ +public class TextGridColumnType extends AbstractGridColumnType +{ + + /** + * {@inheritDoc} + */ + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) + { + column.put("editor", "new Ed(new fm.TextField({allowBlank: true}))"); + } +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/TextGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/UUIDLinkGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -2,6 +2,7 @@ import info.magnolia.cms.beans.config.ContentRepository; import info.magnolia.cms.core.Content; +import info.magnolia.cms.i18n.Messages; import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; @@ -20,12 +21,13 @@ * @author dschivo * @version $Id$ */ -public class UUIDLinkGridColumnType implements GridColumnType +public class UUIDLinkGridColumnType extends AbstractGridColumnType { /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -36,31 +38,26 @@ /** * {@inheritDoc} */ - public String drawSupportHtml(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { - return StringUtils.EMPTY; - } - - /** - * {@inheritDoc} - */ - public String drawColumnModelJs(String propertyName, Map colmap) - { List<String> options = new ArrayList<String>(); - if (!StringUtils.isEmpty((String) colmap.get("repository"))) + if (!StringUtils.isEmpty((String) colMap.get("repository"))) { - options.add("repository: '" + colmap.get("repository") + "'"); + options.add("repository: '" + colMap.get("repository") + "'"); } - if (!StringUtils.isEmpty((String) colmap.get("extension"))) + if (!StringUtils.isEmpty((String) colMap.get("extension"))) { - options.add("extension: '" + colmap.get("extension") + "'"); + options.add("extension: '" + colMap.get("extension") + "'"); } - return "editor: new Ed(new UUIDLinkField({\n" + StringUtils.join(options, ",\n") + "}))"; + column.put("editor", "new Ed(new UUIDLinkField({" + StringUtils.join(options, ",") + "}))"); } /** * {@inheritDoc} */ + @Override public String processValueOnLoad(String value, Content colConfig) { String repository = StringUtils.defaultIfEmpty( @@ -77,6 +74,7 @@ /** * {@inheritDoc} */ + @Override public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-21 09:50:42 UTC (rev 2697) @@ -126,18 +126,7 @@ [#if (colmap.type?? && colmap.type = 'checkbox')] checkColumns[checkIndex++] [#else] - { - header: '${msgs.getWithDefault(colmap.header?js_string, colmap.header?js_string)}', - dataIndex: '${colmap_index}', - sortable: false, - [#if (colmap.type?? && gridColumnTypes[colmap.type]??)] - ${gridColumnTypes[colmap.type].drawColumnModelJs(name, colmap)} - [#else] - editor: new Ed(new fm.TextField({ - allowBlank: true - })) - [/#if] - } + ${gridColumnTypes[colmap.type!'text'].drawColumnJs(name, colmap_index, colmap, msgs)} [/#if][#if colmap_has_next],[/#if] [/#list] ]); Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.color.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.color.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.color.xml 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="color" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>8ed77404-e4ee-4454-9ade-fb01dd211b79</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.ColorGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-21T10:38:03.946+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.color.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.date.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.date.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.date.xml 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="date" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2771e8a3-e7e1-4355-85ae-a4dda4406ef1</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.DateGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-21T10:28:51.069+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.date.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.text.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.text.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.text.xml 2010-06-21 09:50:42 UTC (rev 2697) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="text" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5ef8f8d0-358d-4f56-b54e-77e92f2e370b</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.TextGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-21T11:46:11.816+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.text.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java =================================================================== --- trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-21 08:42:26 UTC (rev 2696) +++ trunk/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/grid/MediaGridColumnType.java 2010-06-21 09:50:42 UTC (rev 2697) @@ -20,6 +20,7 @@ package net.sourceforge.openutils.mgnlmedia.grid; import info.magnolia.cms.core.Content; +import info.magnolia.cms.i18n.Messages; import info.magnolia.cms.security.AccessDeniedException; import info.magnolia.cms.util.ContentUtil; import info.magnolia.cms.util.NodeDataUtil; @@ -29,7 +30,7 @@ import javax.jcr.RepositoryException; -import net.sourceforge.openutils.mgnlcontrols.configuration.GridColumnType; +import net.sourceforge.openutils.mgnlcontrols.configuration.AbstractGridColumnType; import net.sourceforge.openutils.mgnlmedia.media.lifecycle.MediaModule; import org.apache.commons.lang.StringUtils; @@ -39,12 +40,13 @@ * @author dschivo * @version $Id$ */ -public class MediaGridColumnType implements GridColumnType +public class MediaGridColumnType extends AbstractGridColumnType { /** * {@inheritDoc} */ + @Override public String getHeadSnippet() { return "<script type=\"text/javascript\" src=\"" @@ -62,28 +64,20 @@ /** * {@inheritDoc} */ - public String drawSupportHtml(String propertyName, Map colmap) + @Override + protected void addColumnData(Map<String, String> column, String propertyName, int colIndex, Map colMap, + Messages msgs) { - return StringUtils.EMPTY; - } - - /** - * {@inheritDoc} - */ - public String drawColumnModelJs(String propertyName, Map colmap) - { - return "editor: new Ed(new MediaField({\n" - + "})),\n" - + "renderer : function(v, p, record){\n" - + "return v ? '<img border=\"0\" alt=\"\" src=\"" + column.put("editor", "new Ed(new MediaField({}))"); + column.put("renderer", "function(v, p, record){ return v ? '<img border=\"0\" alt=\"\" src=\"" + MgnlContext.getContextPath() - + "/mediathumbnail/' + v + '\" />' : v;\n" - + "}"; + + "/mediathumbnail/' + v + '\" />' : v; }"); } /** * {@inheritDoc} */ + @Override public String processValueOnLoad(String value, Content colConfig) { String valueType = StringUtils.defaultIfEmpty(NodeDataUtil.getString(colConfig, "valueType"), "uuid"); @@ -101,6 +95,7 @@ /** * {@inheritDoc} */ + @Override public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) throws RepositoryException, AccessDeniedException { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-06-21 10:52:41
|
Revision: 2699 http://openutils.svn.sourceforge.net/openutils/?rev=2699&view=rev Author: diego_schivo Date: 2010-06-21 10:52:35 +0000 (Mon, 21 Jun 2010) Log Message: ----------- CONTROLS-31 checkbox column type Modified Paths: -------------- trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml Added Paths: ----------- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/CheckboxGridColumnType.java trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.checkbox.xml Modified: trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties =================================================================== --- trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/magnolia-test-webapp/src/main/resources/net/sourceforge/openutils/mgnltestwebapp/lang/messages.properties 2010-06-21 10:52:35 UTC (rev 2699) @@ -4,3 +4,6 @@ testwebapp.dialogs.samples-grid.columnD.header=Column D testwebapp.dialogs.samples-grid.columnE.header=Column E testwebapp.dialogs.samples-grid.columnF.header=Column F +testwebapp.dialogs.samples-grid.columnG.header=Column G +testwebapp.dialogs.samples-grid.columnH.header=Column H +testwebapp.dialogs.samples-grid.columnI.header=Column I Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/AbstractGridColumnType.java 2010-06-21 10:52:35 UTC (rev 2699) @@ -52,7 +52,7 @@ * {@inheritDoc} */ @SuppressWarnings("unchecked") - public String drawSupportHtml(String propertyName, Map colmap) + public String drawSupportHtml(String propertyName, int colIndex, Map colmap, Messages msgs) { return StringUtils.EMPTY; } Added: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/CheckboxGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/CheckboxGridColumnType.java (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/CheckboxGridColumnType.java 2010-06-21 10:52:35 UTC (rev 2699) @@ -0,0 +1,78 @@ +package net.sourceforge.openutils.mgnlcontrols.configuration; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.i18n.Messages; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.context.MgnlContext; + +import java.util.Map; + +import javax.jcr.RepositoryException; + +import org.apache.commons.lang.StringEscapeUtils; +import org.apache.commons.lang.StringUtils; + + +/** + * @author dschivo + * @version $Id$ + */ +public class CheckboxGridColumnType implements GridColumnType +{ + + /** + * {@inheritDoc} + */ + public String getHeadSnippet() + { + return "<script type=\"text/javascript\" src=\"" + + MgnlContext.getContextPath() + + "/.resources/controls/js/CheckColumn.js\"></script>"; + } + + /** + * {@inheritDoc} + */ + public String drawSupportHtml(String propertyName, int colIndex, Map colmap, Messages msgs) + { + return StringUtils.EMPTY; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public String drawColumnJs(String propertyName, int colIndex, Map colMap, Messages msgs) + { + String header = (String) colMap.get("header"); + return "(function(){\n" + + "var cc = new Ext.grid.CheckColumn({" + + "header: '" + + StringEscapeUtils.escapeJavaScript(msgs.getWithDefault(header, header)) + + "'," + + "dataIndex: '" + + colIndex + + "'," + + "width: 40" + + "});\n" + + "checkColumns.push(cc);" + + "return cc;\n" + + "})()"; + } + + /** + * {@inheritDoc} + */ + public String processValueOnLoad(String value, Content colConfig) + { + return value; + } + + /** + * {@inheritDoc} + */ + public void processColumnOnSave(String[] column, Content colConfig, String propertyName, Content parentNode) + throws RepositoryException, AccessDeniedException + { + } +} Property changes on: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/CheckboxGridColumnType.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2010-06-21 10:52:35 UTC (rev 2699) @@ -51,7 +51,7 @@ * {@inheritDoc} */ @Override - public String drawSupportHtml(String propertyName, Map colmap) + public String drawSupportHtml(String propertyName, int colIndex, Map colmap, Messages msgs) { StringBuilder sb = new StringBuilder(); sb.append("<select id=\"combo-" Modified: trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java =================================================================== --- trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/GridColumnType.java 2010-06-21 10:52:35 UTC (rev 2699) @@ -41,7 +41,7 @@ */ public String getHeadSnippet(); - public String drawSupportHtml(String propertyName, Map colmap); + public String drawSupportHtml(String propertyName, int colIndex, Map colmap, Messages msgs); public String drawColumnJs(String propertyName, int colIndex, Map colmap, Messages msgs); Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2010-06-21 10:52:35 UTC (rev 2699) @@ -6,7 +6,6 @@ [#else] <script type="text/javascript" src="${request.contextPath}/.resources/ext/ext-all.js"></script> [/#if] - <script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> <script type="text/javascript"> // <![CDATA[ @@ -77,7 +76,7 @@ [#list configuration.columns?values as colmap] [#if (colmap.type?? && gridColumnTypes[colmap.type]??)] - ${gridColumnTypes[colmap.type].drawSupportHtml(name, colmap)} + ${gridColumnTypes[colmap.type].drawSupportHtml(name, colmap_index, colmap, msgs)} [/#if] [/#list] @@ -110,24 +109,10 @@ var fm = Ext.form, Ed = Ext.grid.GridEditor; var checkColumns = []; - [#list configuration.columns?values as colmap] - [#if (colmap.type?? && colmap.type = 'checkbox')] - checkColumns.push(new Ext.grid.CheckColumn({ - header: '${msgs.getWithDefault(colmap.header?js_string, colmap.header?js_string)}', - dataIndex: '${colmap_index}', - width: 40 - })); - [/#if] - [/#list] - var checkIndex = 0; var colModel = new Ext.grid.ColumnModel([ [#list configuration.columns?values as colmap] - [#if (colmap.type?? && colmap.type = 'checkbox')] - checkColumns[checkIndex++] - [#else] - ${gridColumnTypes[colmap.type!'text'].drawColumnJs(name, colmap_index, colmap, msgs)} - [/#if][#if colmap_has_next],[/#if] + ${gridColumnTypes[colmap.type!'text'].drawColumnJs(name, colmap_index, colmap, msgs)}[#if colmap_has_next],[/#if] [/#list] ]); colModel.defaultSortable = true; Added: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.checkbox.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.checkbox.xml (rev 0) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.checkbox.xml 2010-06-21 10:52:35 UTC (rev 2699) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="checkbox" 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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>d17635e0-4b0c-4367-b9fd-dafca4d804b3</sv:value> + </sv:property> + <sv:property sv:name="class" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlcontrols.configuration.CheckboxGridColumnType</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>2010-06-18T11:41:55.562+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-21T12:46:10.599+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.gridColumnTypes.checkbox.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-21 09:52:56 UTC (rev 2698) +++ trunk/openutils-mgnlcontrols/src/main/resources/mgnl-bootstrap-samples/controls/config.modules.controls.dialogs.samples-grid.xml 2010-06-21 10:52:35 UTC (rev 2699) @@ -644,6 +644,46 @@ </sv:property> </sv:node> </sv:node> + <sv:node sv:name="07"> + <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:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>37008d42-f395-447b-8734-89dc7a4d0b38</sv:value> + </sv:property> + <sv:property sv:name="header" sv:type="String"> + <sv:value>testwebapp.dialogs.samples-grid.columnI.header</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="type" sv:type="String"> + <sv:value>checkbox</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>2010-05-11T18:49:01.296+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2010-06-21T12:19:56.691+02:00</sv:value> + </sv:property> + </sv:node> + </sv:node> </sv:node> </sv:node> </sv:node> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |