You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(233) |
Sep
(199) |
Oct
(206) |
Nov
(185) |
Dec
(270) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(232) |
Feb
(426) |
Mar
(623) |
Apr
(592) |
May
(506) |
Jun
(389) |
Jul
(160) |
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2007 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(5) |
Oct
(9) |
Nov
(6) |
Dec
(6) |
2008 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
(3) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(2) |
Sep
(12) |
Oct
(10) |
Nov
(54) |
Dec
(49) |
2009 |
Jan
(19) |
Feb
(13) |
Mar
(20) |
Apr
(24) |
May
(44) |
Jun
(29) |
Jul
(32) |
Aug
(10) |
Sep
(7) |
Oct
(10) |
Nov
(4) |
Dec
(17) |
2010 |
Jan
(14) |
Feb
(5) |
Mar
(23) |
Apr
(50) |
May
(31) |
Jun
(9) |
Jul
(5) |
Aug
(4) |
Sep
(7) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(12) |
Feb
(5) |
Mar
(5) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <jbo...@li...> - 2005-08-18 11:33:56
|
Author: szimano Date: 2005-08-17 17:58:37 -0400 (Wed, 17 Aug 2005) New Revision: 892 Added: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/PageInfo.jsp Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java Log: page info prototype Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-17 18:45:39 UTC (rev 891) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-17 21:58:37 UTC (rev 892) @@ -142,7 +142,24 @@ return null; } } + + public WikiPage getByName(String pageName, WikiContext wikiContext, int version) { + + WikiPage ret = null; + ret = mediaDataSource.getPageAtVersion(pageName, version); + + if (ret != null) { + if (wikiContext != null) { + return wikiContext.process(ret); + } else { + return ret; + } + } else { + return null; + } + } + /** * <p> * Does ... Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java 2005-08-17 18:45:39 UTC (rev 891) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java 2005-08-17 21:58:37 UTC (rev 892) @@ -189,8 +189,7 @@ * @param version */ public WikiPage getPageAtVersion(int version) { - // your code here - return null; + return mediaDataSource.getPageAtVersion(name,version); } /** Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 18:45:39 UTC (rev 891) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 21:58:37 UTC (rev 892) @@ -9,6 +9,7 @@ package org.jboss.wiki; import java.util.Date; +import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -39,9 +40,9 @@ public void processAction(JBossActionRequest rReq, JBossActionResponse rResp) { // wikiContext is null - to get refernece to actual page - - WikiContext wikiContext = null; + WikiContext wikiContext = null; + if (rReq.getParameter("action") != null) { rResp.setRenderParameter("action", rReq.getParameter("action")); } @@ -58,11 +59,11 @@ WikiPage edPage = wikiEngine.getByName((String) rReq .getParameter("editedPage"), wikiContext); - - if (edPage != null) { //it may be null if the page isn't saved yet + if (edPage != null) { // it may be null if the page isn't saved + // yet edPage.unlock(rReq.getUser()); } - + // saving, previewing or canceling if (rReq.getParameter("editAction").equals("Save")) { @@ -75,7 +76,8 @@ if (edPage == null) { edPage = new WikiPage(rReq.getParameter("editedPage"), - credentials, "", 0, new Date(), wikiEngine.getMediaDataSource()); + credentials, "", 0, new Date(), wikiEngine + .getMediaDataSource()); } // set new content @@ -92,8 +94,9 @@ // save the page edPage.save(); - - // and finally remove old page object from memory to force reloading it + + // and finally remove old page object from memory to force + // reloading it wikiEngine.refreshPage(edPage.getName()); } } @@ -104,7 +107,8 @@ throws PortletException, java.io.IOException { WikiPage noSuchPage = new WikiPage("", new Credentials(""), - "There is no such page. Click on EDIT to start it.", 0, null, wikiEngine.getMediaDataSource()); + "There is no such page. Click on EDIT to start it.", 0, null, + wikiEngine.getMediaDataSource()); String page = "Wiki.jsp"; @@ -130,7 +134,8 @@ // wikiPage = defaultPage; pageToShow = new WikiPage(wikiPage, new Credentials(rReq - .getUser().getUserName()), "", 0, new Date(), wikiEngine.getMediaDataSource()); + .getUser().getUserName()), "", 0, new Date(), + wikiEngine.getMediaDataSource()); // wikiEngine.getByName(wikiPage, wikiContext); } @@ -147,7 +152,29 @@ + ".<br> I won't stop you from saving, but you or he can erease each other changes. Lock will expire: "); } + } else if ((rReq.getParameter("action") != null) + && (rReq.getParameter("action").equals("Info"))) { + page = "PageInfo.jsp"; + HashMap<Integer, WikiPage> pageVersions = new HashMap<Integer, WikiPage>(); + + pageToShow = wikiEngine.getByName(wikiPage, null); + + if (pageToShow == null) { //if somebody entered a link to info non-existing page + page = "Wiki.jsp"; + try { + pageToShow = (WikiPage) noSuchPage.clone(); + } catch (CloneNotSupportedException cnse) { + System.out.println(cnse); + } + + pageToShow.setName(wikiPage); + } + else { + rReq.setAttribute("pageAtTop", pageToShow); + } + } else { + page = "Wiki.jsp"; wikiContext = new WikiContext(rReq.getUser(), wikiEngine .getWikiType("HTML")); Added: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/PageInfo.jsp =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/PageInfo.jsp 2005-08-17 18:45:39 UTC (rev 891) +++ trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/PageInfo.jsp 2005-08-17 21:58:37 UTC (rev 892) @@ -0,0 +1,56 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + +<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %> +<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %> +<%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %> +<!--<%@ taglib uri="/WEB-INF/tld/wiki.tld" prefix="wiki" %>--> +<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %> +<%@ page isELIgnored ="false" %> +<portlet:defineObjects/> + +<% + String actionURL = (String)request.getAttribute("actionURL"); + String wikiName = (String)request.getAttribute("wikiName"); + //String wikiContent = (String)request.getAttribute("wikiContent"); + String wikiPage = (String)request.getAttribute("wikiPage"); + //java.util.Date editDate = (java.util.Date)request.getAttribute("editDate"); + //org.jboss.wiki.Credentials author = (org.jboss.wiki.Credentials)request.getAttribute("author"); +%> + +<h2><%=wikiName%>/ <%=wikiPage%></h2> + +<hr /> + +<div class="wikiTrail">Your trail: <i>TODO</i></div> + +<hr /> + +<table> +<tr> +<td class="wikiContent"> +<table border="1"> +<% + org.jboss.wiki.WikiPage pageAtTop = (org.jboss.wiki.WikiPage)request.getAttribute("pageAtTop"); + int topVersion = pageAtTop.getLastVersion(); + + out.println("<tr><td>Version</td><td>Date</td><td>Author</td><td>Size</td><td>Changes from previous</td></tr>"); + + for (int i = topVersion; i > 0; i--) { + org.jboss.wiki.WikiPage prevWikiPage = pageAtTop.getPageAtVersion(i); + out.println("<tr><td>"+i+"</td><td>"+prevWikiPage.getEditDate()+"</td><td>"+prevWikiPage.getLastAuthor()+"</td><td>size</td><td>changes</td>"); + } +%> +</table> +<td> +</tr> +<tr> +<td class="wikiFooter"> +</td> +</tr> + +</table> +<a href="<%=actionURL%>&page=<%=wikiPage%>">Back to <%=wikiPage%></a> |
From: <jbo...@li...> - 2005-08-17 18:46:40
|
Author: ral...@jb... Date: 2005-08-17 14:45:39 -0400 (Wed, 17 Aug 2005) New Revision: 891 Modified: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties Log: shouldn't be localhost Modified: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties 2005-08-17 18:17:00 UTC (rev 890) +++ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties 2005-08-17 18:45:39 UTC (rev 891) @@ -1,2 +1,3 @@ # WikiPlugin properties. Use it wise. -htmlTranslatorURL = http://localhost:8080/portal/ +#specifies base URL for the portal +htmlTranslatorURL = http://forge.sicore.org:8080/portal/ |
From: <jbo...@li...> - 2005-08-17 18:18:56
|
Author: ral...@jb... Date: 2005-08-17 14:17:00 -0400 (Wed, 17 Aug 2005) New Revision: 890 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java trunk/forge/portal-extensions/forge-wiki/src/test/java/org/jboss/wiki/test/HTMLTranslatorTest.java Log: test disabled and HTMLTranslator init() updated Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 16:30:41 UTC (rev 889) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 18:17:00 UTC (rev 890) @@ -33,7 +33,7 @@ private Matcher myMatcher; /* URL components, later to be configurable */ - private String portalHome = "http://forge.sicore.org:8080/portal/"; + private String portalHome = ""; private String wikiHome = "index.html?ctrl:id=window.default.WikiPortletWindow"; @@ -690,8 +690,10 @@ /** * Figures out if a link is an off-site link. This recognizes the most * common protocols by checking how it starts. + * (clears all white space in case the link starts with '\n' or [space] */ private boolean isExternalLink(String link) { + link = link.trim(); return link.startsWith("http:") || link.startsWith("ftp:") || link.startsWith("https:") || link.startsWith("mailto:") || link.startsWith("news:") || link.startsWith("file:"); @@ -766,7 +768,7 @@ {} public WikiPage process(final WikiPage wikiPage) { - System.out.println("propertu: "+getProperty("htmlTranslatorURL")); + //System.out.println("propertu: "+getProperty("htmlTranslatorURL")); WikiPage newPage = null; try { @@ -790,7 +792,7 @@ @Override public void init() { - // TODO Auto-generated method stub + portalHome = getProperty("htmlTranslatorURL"); } Modified: trunk/forge/portal-extensions/forge-wiki/src/test/java/org/jboss/wiki/test/HTMLTranslatorTest.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/test/java/org/jboss/wiki/test/HTMLTranslatorTest.java 2005-08-17 16:30:41 UTC (rev 889) +++ trunk/forge/portal-extensions/forge-wiki/src/test/java/org/jboss/wiki/test/HTMLTranslatorTest.java 2005-08-17 18:17:00 UTC (rev 890) @@ -46,22 +46,22 @@ for (int i = 0; i < files.length; i++) { File file = files[i]; fin = new FileReader(file); - System.out.println("Processing file: " + file); + // System.out.println("Processing file: " + file); final BufferedReader in = new BufferedReader(fin); int line; StringBuffer text = new StringBuffer(); String parsed = ""; - while ((line = in.read()) != -1) { - text.append((char) line); - } + // while ((line = in.read()) != -1) { + // text.append((char) line); + // }//while // System.out.println(text.toString()); - // parsed = tr.parseLinks(text.toString(), ""); + // parsed = tr.parseLinks(text.toString()); // System.out.println(parsed); - } - } + }//for + }//try catch (IOException e) { |
From: <jbo...@li...> - 2005-08-17 16:30:47
|
Author: szimano Date: 2005-08-17 12:30:41 -0400 (Wed, 17 Aug 2005) New Revision: 889 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp Log: new page creation works Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-17 16:10:07 UTC (rev 888) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-17 16:30:41 UTC (rev 889) @@ -149,6 +149,8 @@ properties.store(pageWriter, "Saved by FileDataSource of JBoss Wiki"); + pageWriter.close(); + pageWriter = new FileOutputStream(new File(pathToMedia+"/"+page.getName()+".txt")); String pageContent = page.getContent(); @@ -157,6 +159,8 @@ pageWriter.write((int) pageContent.charAt(i)); } + pageWriter.close(); + status = true; } catch (Exception e) { Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-17 16:10:07 UTC (rev 888) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-17 16:30:41 UTC (rev 889) @@ -305,5 +305,11 @@ System.out.println(wp.getContent()); } + + public void refreshPage(String pageName) { + if (pages.containsKey(pageName)) { + pages.remove(pageName); + } + } } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 16:10:07 UTC (rev 888) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 16:30:41 UTC (rev 889) @@ -90,8 +90,11 @@ // set new data edPage.setEditDate(new Date()); - // finnaly save the page + // save the page edPage.save(); + + // and finally remove old page object from memory to force reloading it + wikiEngine.refreshPage(edPage.getName()); } } Modified: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp 2005-08-17 16:10:07 UTC (rev 888) +++ trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp 2005-08-17 16:30:41 UTC (rev 889) @@ -29,14 +29,44 @@ <hr /> <div style="color:#FF0000"><%=lockMsg%></div> <form method="post" action="<%=actionURL%>"> -<textarea name="wikiContent" rows="40" cols="80" style="width:100%;"> - - <%=wikiContent%> - -</textarea> +<textarea name="wikiContent" rows="40" cols="80" style="width:100%;"><%=wikiContent%></textarea> <input type="hidden" name="editedPage" value="<%=wikiPage%>" /> <input type="hidden" name="page" value="<%=wikiPage%>" /> <input type="submit" value="Save" name="editAction" /> <input type="submit" value="Preview" name="editAction" /> <input type="submit" value="Cancel" name="editAction" /> </form> +Here's a short reminder on what elements you have at your disposal: +<PRE> +---- Horizontal ruler +\\ Forced line break +[link] Create hyperlink to "link", where "link" can be either an internal + WikiName or an external link (http://) +[text|link] Create a hyperlink where the link text is different from the actual + hyperlink link. +[text|wiki:link] Create a hyperlink where the link text is different from the + actual hyperlink link, and the hyperlink points to a named Wiki. + This supports interWiki linking. + +* Make a bulleted list (must be in first column). Use more (**) + for deeper indentations. +# Make a numbered list (must be in first column). Use more (##, ###) + for deeper indentations. + +!, !!, !!! Start a line with an exclamation mark (!) to make a heading. + More exclamation marks mean bigger headings. + +__text__ Makes text bold. +''text'' Makes text in italics (notice that these are single quotes (')) +{{text}} Makes text in monospaced font. +;term:def Defines 'term' with 'def'. Use this with empty 'term' to make short comments. + +|text|more text| Makes a table. Double bars for a table heading. +</PRE> +<P> +Don't try to use HTML, since it just won't work. +<P> +To embed images just put them available on the web using one of the approved formats, and they will get inlined automatically. + +<P> +To make a code block, use triple {'s to open, and triple }'s to close. |
From: <jbo...@li...> - 2005-08-17 16:10:15
|
Author: adamw Date: 2005-08-17 12:10:07 -0400 (Wed, 17 Aug 2005) New Revision: 888 Added: trunk/forge/portal-extensions/portal-federation/src/web/WEB-INF/tld/ trunk/forge/portal-extensions/portal-federation/src/web/WEB-INF/tld/forge.tld Log: TLD fix Added: trunk/forge/portal-extensions/portal-federation/src/web/WEB-INF/tld/forge.tld =================================================================== --- trunk/forge/portal-extensions/portal-federation/src/web/WEB-INF/tld/forge.tld 2005-08-17 16:06:18 UTC (rev 887) +++ trunk/forge/portal-extensions/portal-federation/src/web/WEB-INF/tld/forge.tld 2005-08-17 16:10:07 UTC (rev 888) @@ -0,0 +1,134 @@ +<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 web-jsptaglibrary_2_0.xsd" + version="2.0"> + <!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + <tlib-version>1.1</tlib-version> + <jsp-version>2.0</jsp-version> + <shortname>forge</shortname> + <info>Forge tags</info> + + <tag> + <name>pageURL</name> + <tagclass>org.jboss.forge.common.taglib.PageURLTag</tagclass> + <attribute> + <name>page</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>form</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>param</name> + <tagclass>org.jboss.forge.common.taglib.ParamTag</tagclass> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>wikiparam</name> + <tagclass>org.jboss.forge.common.taglib.WikiParam</tagclass> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>projectURL</name> + <tagclass>org.jboss.forge.common.taglib.ProjectURLTag</tagclass> + <attribute> + <name>project</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>page</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>form</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>categoryURL</name> + <tagclass>org.jboss.forge.common.taglib.CategoryURLTag</tagclass> + <attribute> + <name>category</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>form</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>selectedProject</name> + <tagclass>org.jboss.forge.common.taglib.SelectedProjectTag</tagclass> + </tag> + + <tag> + <name>imagePath</name> + <tagclass>org.jboss.forge.common.taglib.ImagePathTag</tagclass> + <attribute> + <name>src</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>project</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>attrValue</name> + <tagclass>org.jboss.forge.common.taglib.AttrValueTag</tagclass> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>attrIf</name> + <tagclass>org.jboss.forge.common.taglib.AttrIfTag</tagclass> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> +</taglib> |
Author: adamw Date: 2005-08-17 12:06:18 -0400 (Wed, 17 Aug 2005) New Revision: 887 Added: trunk/forge/portal-extensions/federation-register/maven.xml trunk/forge/portal-extensions/forge-ads/maven.xml trunk/forge/portal-extensions/forge-blog/maven.xml trunk/forge/portal-extensions/forge-contributor/maven.xml trunk/forge/portal-extensions/forge-file-access/maven.xml trunk/forge/portal-extensions/forge-info/maven.xml trunk/forge/portal-extensions/forge-map/maven.xml trunk/forge/portal-extensions/forge-navigation/maven.xml trunk/forge/portal-extensions/forge-prj-blog/maven.xml trunk/forge/portal-extensions/forge-prj-docs/maven.xml trunk/forge/portal-extensions/forge-prj-downloads/maven.xml trunk/forge/portal-extensions/forge-prj-freezone/maven.xml trunk/forge/portal-extensions/forge-prj-info/maven.xml trunk/forge/portal-extensions/forge-root-redirect/maven.xml trunk/forge/portal-extensions/mysql-connector/maven.xml trunk/forge/portal-extensions/mysql-connector/project.xml trunk/forge/portal-extensions/portal-binaries/to-copy/portal-mysql-ds.xml trunk/forge/portal-extensions/portal-default/src/web/WEB-INF/default-portal.xml Removed: trunk/forge/portal-extensions/forge-jira/ trunk/forge/portal-extensions/forge-projects/ trunk/forge/portal-extensions/forge-theme/css/ trunk/forge/portal-extensions/forge-theme/decoration.jsp trunk/forge/portal-extensions/forge-theme/dotcom.html trunk/forge/portal-extensions/forge-theme/dotcom_files/ trunk/forge/portal-extensions/forge-theme/images/ trunk/forge/portal-extensions/forge-theme/index.jsp trunk/forge/portal-extensions/forge-theme/sidebar.html trunk/forge/portal-extensions/jboss-as-binaries/to-copy/server/all/lib/mysql-connector-java-3.0.16-ga-bin.jar trunk/forge/portal-extensions/portal-binaries/to-copy/portal-hsqldb-ds.xml trunk/forge/portal-extensions/portal-default/to-copy/jboss-portal.sar/portal-core.war/WEB-INF/default-portal.xml Modified: trunk/forge/portal-extensions/blojsom/maven.xml trunk/forge/portal-extensions/build.properties.sample trunk/forge/portal-extensions/forge-common/maven.xml trunk/forge/portal-extensions/forge-ear/src/META-INF/application.xml trunk/forge/portal-extensions/forge-forums/maven.xml trunk/forge/portal-extensions/forge-forums/to-copy/portal-forums.ear/portal-forums.sar/conf/hibernate/hibernate.cfg.xml trunk/forge/portal-extensions/forge-jspwiki/maven.xml trunk/forge/portal-extensions/forge-login/maven.xml trunk/forge/portal-extensions/forge-service/maven.xml trunk/forge/portal-extensions/forge-theme/maven.xml trunk/forge/portal-extensions/forge-wiki/project.xml trunk/forge/portal-extensions/jspwiki/maven.xml trunk/forge/portal-extensions/maven.xml trunk/forge/portal-extensions/portal-binaries/to-copy/jboss-portal.sar/conf/hibernate/hibernate.cfg.xml trunk/forge/portal-extensions/portal-default/maven.xml trunk/forge/portal-extensions/portal-federation/maven.xml Log: Build mods Modified: trunk/forge/portal-extensions/blojsom/maven.xml =================================================================== --- trunk/forge/portal-extensions/blojsom/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/blojsom/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -12,7 +12,11 @@ </goal> - <goal name="first-install"> + <goal name="all"> + + </goal> + + <goal name="prj-install"> <ant:copy todir="${local.deploy.dir}" overwrite="no"> <ant:fileset dir="to-copy" /> </ant:copy> Modified: trunk/forge/portal-extensions/build.properties.sample =================================================================== --- trunk/forge/portal-extensions/build.properties.sample 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/build.properties.sample 2005-08-17 16:06:18 UTC (rev 887) @@ -1,21 +1,15 @@ -# Path to where your portal extensions are to be deployed -local.deploy.dir= - -# Path to where yout portal with JBoss as are to be copied (it's de facto local.deploy.dir without server/all/deploy part ) +# Path to where JBoss AS is to be copied. local.server.dir= +# Path to where your portal extensions are to be deployed - you shouldn't +# have to change that. +local.deploy.dir=${local.server.dir}/server/all/deploy + # Path to your local maven repository - you can comment this out if you use # the default location. You can also create a build.properties in your home # directory to set the maven.repo.local for all projects. # maven.repo.local= # URL of your content repository. You don't have to specify this if you don't -# plan to update the content by maven. +# plan to update the content by maven (it's need for CruiseControl). maven.scm.url= - -# Address, username and password to access the JBoss JMX Console. Necessary to -# successfully obtain the 'redeploy-portal' goal; comment out if you won't be -# using it. -jboss.jmx.console= -jboss.jmx.username= -jboss.jmx.password= Added: trunk/forge/portal-extensions/federation-register/maven.xml =================================================================== --- trunk/forge/portal-extensions/federation-register/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/federation-register/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-ads/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-ads/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-ads/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-blog/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-blog/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-blog/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-common/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-common/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-common/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -4,6 +4,10 @@ See terms of license at gnu.org. --> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <goal name="all"> + + </goal> + <goal name="build"> <attainGoal name="jar" /> </goal> Added: trunk/forge/portal-extensions/forge-contributor/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-contributor/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-contributor/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-ear/src/META-INF/application.xml =================================================================== --- trunk/forge/portal-extensions/forge-ear/src/META-INF/application.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-ear/src/META-INF/application.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -73,4 +73,19 @@ <web-uri>navigation-portlet.war</web-uri> </web> </module> + <module> + <web> + <web-uri>portal-default.war</web-uri> + </web> + </module> + <module> + <web> + <web-uri>portal-federation.war</web-uri> + </web> + </module> + <module> + <web> + <web-uri>jbossForgeLayout.war</web-uri> + </web> + </module> </application> Added: trunk/forge/portal-extensions/forge-file-access/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-file-access/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-file-access/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-forums/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-forums/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-forums/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -4,17 +4,20 @@ See terms of license at gnu.org. --> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> - <goal name="build"> + <goal name="prj-install"> + <ant:copy todir="${local.deploy.dir}"> + <ant:fileset dir="to-copy"> + <ant:include name="portal-forums.ear/**" /> + </ant:fileset> + </ant:copy> + </goal> - </goal> - - <goal name="deploy"> + <goal name="all"> + </goal> - </goal> + <goal name="build"> + </goal> - <goal name="first-install"> - <ant:copy todir="${local.deploy.dir}" overwrite="no"> - <ant:fileset dir="to-copy" /> - </ant:copy> - </goal> -</project> \ No newline at end of file + <goal name="deploy"> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-forums/to-copy/portal-forums.ear/portal-forums.sar/conf/hibernate/hibernate.cfg.xml =================================================================== --- trunk/forge/portal-extensions/forge-forums/to-copy/portal-forums.ear/portal-forums.sar/conf/hibernate/hibernate.cfg.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-forums/to-copy/portal-forums.ear/portal-forums.sar/conf/hibernate/hibernate.cfg.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -9,10 +9,10 @@ <property name="show_sql">false</property> <!-- Force the dialect instead of using autodetection --> - <!-- - <property name="dialect">org.hibernate.dialect.HSQLDialect</property> - --> + <property name="dialect">org.hibernate.dialect.MySQLDialect</property> + + <!-- Mapping files --> <mapping resource="org/jboss/portlet/forums/impl/CategoryImpl.hbm.xml"/> <mapping resource="org/jboss/portlet/forums/impl/ForumImpl.hbm.xml"/> Added: trunk/forge/portal-extensions/forge-info/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-info/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-info/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-jspwiki/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-jspwiki/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-jspwiki/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -4,6 +4,10 @@ See terms of license at gnu.org. --> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <goal name="all"> + + </goal> + <goal name="build"> <attainGoal name="copy-tld" /> <attainGoal name="war" /> Modified: trunk/forge/portal-extensions/forge-login/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-login/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-login/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -4,6 +4,10 @@ See terms of license at gnu.org. --> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <goal name="all"> + + </goal> + <goal name="build"> <attainGoal name="jar" /> </goal> Added: trunk/forge/portal-extensions/forge-map/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-map/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-map/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-navigation/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-navigation/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-navigation/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-prj-blog/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-prj-blog/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-prj-blog/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-prj-docs/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-prj-docs/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-prj-docs/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-prj-downloads/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-prj-downloads/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-prj-downloads/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-prj-freezone/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-prj-freezone/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-prj-freezone/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-prj-info/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-prj-info/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-prj-info/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Added: trunk/forge/portal-extensions/forge-root-redirect/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-root-redirect/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-root-redirect/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -0,0 +1,20 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <!-- Default war-project goals --> + + <goal name="all"> + <attainGoal name="prj-all" /> + </goal> + + <goal name="build"> + <attainGoal name="prj-war-build" /> + </goal> + + <goal name="deploy"> + <attainGoal name="prj-war-deploy" /> + </goal> +</project> Modified: trunk/forge/portal-extensions/forge-service/maven.xml =================================================================== --- trunk/forge/portal-extensions/forge-service/maven.xml 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-service/maven.xml 2005-08-17 16:06:18 UTC (rev 887) @@ -4,6 +4,10 @@ See terms of license at gnu.org. --> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> + <goal name="all"> + + </goal> + <goal name="build"> <attainGoal name="ejb" /> </goal> Deleted: trunk/forge/portal-extensions/forge-theme/decoration.jsp =================================================================== --- trunk/forge/portal-extensions/forge-theme/decoration.jsp 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-theme/decoration.jsp 2005-08-17 16:06:18 UTC (rev 887) @@ -1,46 +0,0 @@ -<!-- - JBoss, the OpenSource J2EE webOS - Distributable under LGPL license. - See terms of license at gnu.org. - --> -<%@ page import="java.util.Iterator"%> -<table border="0" cellpadding="0" cellspacing="0"> -<tr> -<% - for (Iterator i = supportedModes.iterator();i.hasNext();) - { - String mode = (String)i.next(); - if (!mode.equals(currentMode)) - { - String path = (String)MODE_IMG_PATH[index].get(mode); - if (path != null) - { - %> - <td><a href="<tb:url mode="<%= mode %>"/>"><img src="<%= contextPath + path %>" border="0"/></a></td> - <% - } - else - { - %> - <td><a href="<tb:url mode="<%= mode %>"/>"><%= mode %></td> - <% - } - } - } - for (Iterator i = supportedWindowStates.iterator();i.hasNext();) - { - String windowState = (String)i.next(); - if (!windowState.equals(currentWindowState)) - { - String path = (String)WINDOW_STATE_IMG_PATH[index].get(windowState); - if (path != null) - { - %> - <td><a href="<tb:url windowState="<%= windowState %>"/>"><img src="<%= contextPath + path %>" border="0"/></a></td> - <% - } - } - } -%> -</tr> -</table> Deleted: trunk/forge/portal-extensions/forge-theme/dotcom.html =================================================================== --- trunk/forge/portal-extensions/forge-theme/dotcom.html 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-theme/dotcom.html 2005-08-17 16:06:18 UTC (rev 887) @@ -1,368 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>JBoss: JBossInc</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - - -<link href="dotcom_files/jboss_style.css" rel="stylesheet" type="text/css"></head> - -<body> - <table border="0" cellpadding="0" cellspacing="0"> - <tbody><tr> - <td rowspan="3" bgcolor="#9bcd4b" valign="top"><a href="http://www.jboss.com/"><img src="dotcom_files/logo_green.gif" alt="JBoss Inc." border="0" height="102" width="383"></a></td> - - <td bgcolor="#9bcd4b" height="22" valign="top"> </td> - <td bgcolor="#9bcd4b" height="22" width="100%"><img src="dotcom_files/spacer.gif" alt="" border="0" height="1" width="1"></td> - <td height="22" valign="top"> - - <!-- Tabs --> - <table border="0" cellpadding="0" cellspacing="0"><tbody><tr> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#cc1d2e'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#EB1A24'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#901817';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(235, 26, 36); text-align: center;"><a onfocus="if (this.blur) this.blur()" style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/network.html"> JBoss Network </a> - <table style="margin: 0pt;" bgcolor="#901817" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#eb1a24"><img src="dotcom_files/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#057baa'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#008FD6'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#005EB6';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(0, 143, 214); text-align: center;"><a onfocus="if (this.blur) this.blur()" style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/jems.html"> JEMS </a> - <table style="margin: 0pt;" bgcolor="#005eb6" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#008fd6"><img src="dotcom_files/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#82a53f'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#9BCD4B'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#E79A00';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(155, 205, 75); text-align: center;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/dotcom.html"> JBoss.com </a> - <table style="margin: 0pt;" bgcolor="#e79a00" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#9bcd4b"><img src="dotcom_files/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - -<td onmouseover="this.childNodes[0].style.backgroundColor = '#bc9131'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#E5B335'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6C7426';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(229, 179, 53); text-align: center;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/federation.html"> JBoss Federation </a> - <table style="margin: 0pt;" bgcolor="#6c7426" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#e5b335"><img src="dotcom_files/spacer.gif" alt="" border="0" height="4" width="120"></td> - </tr></tbody></table> - - </div></td> - - </tr></tbody></table> - - </td> - -</tr> -<tr><td valign="top"> </td> - <td colspan="2" align="right" valign="middle"> - <!-- Controls --> - - <table border="0" cellpadding="5" cellspacing="0" width="444"> - - <tbody><tr> - - <td align="center"> <a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/wiki/exec/login.jsp">Login</a> </td> - <td align="center"> <a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/wiki/exec/register.jsp">Register</a></td> - - - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/wiki/Wiki.jsp?page=PageIndex">Sitemap</a></td> - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/career">Career</a></td> - - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/contact">Contact Us</a></td> - - <!-- Search --> - - - <td class="searchbox" align="right" valign="middle"><form action="http://localhost:8080/wiki/Search.jsp" style="margin: 0pt; padding: 0pt;"><input name="query" style="border: 1px solid rgb(110, 110, 110); width: 80px; font-size: 10px;" onfocus="this.className='focus';if (this.value == 'Search...') this.value = '';" onblur="this.className='';if (this.value == '') this.value = 'Search...';" value="Search..."> - </form></td> - <td align="left"><input src="dotcom_files/btn_go_green.gif" height="21" type="image" width="21"></td> - - - - - </tr> - - </tbody></table> - - </td></tr><tr> - <td colspan="3" height="34" valign="top"> - <hr align="right" size="1" width="100%"> - -<!-- Breadcrumb --> - <div class="breadcrumb" align="left"><a href="http://rollitout.jboss.com/new_look/home">Home</a> > <a href="http://rollitout.jboss.com/new_look/home">Relational Persistence For Idiomatic Java</a></div> - - </td></tr> - <tr> - <td colspan="4" valign="top"><table border="0" cellpadding="0" cellspacing="0"> -<tbody><tr> - <td valign="top" width="219"><!-- Sidebar Menu --> - <table border="0" cellpadding="0" cellspacing="0" width="219"> - <tbody><tr> - <td colspan="2" valign="top"><img src="dotcom_files/hdr_green_side.gif" height="10" width="219"></td> - </tr> - <!-- Autogenerated(?) Menu --> - <tr> - <td width="175"><div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[0].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[0].style.color = '#ffffff';" style="padding: 5px; background-color: rgb(92, 92, 79); margin-top: 1px; margin-right: 1px;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 12px;" href="http://localhost:8080/wiki/space/JEMS/Products">Products</a> - </div> - - <div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[1].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[1].style.color = '#ffffff';" style="padding: 3px; background-color: rgb(92, 92, 79); margin-right: 1px;"> <a style="padding: 3px; color: rgb(255, 255, 255); text-decoration: none; font-size: 10px; line-height: 10px;" href="http://localhost:8080/wiki/space/JEMS/Products">JBoss AS</a> - - </div> - <div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[1].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[1].style.color = '#ffffff';" style="padding: 3px; background-color: rgb(92, 92, 79); margin-right: 1px;"> <a style="padding: 3px; color: rgb(255, 255, 255); text-decoration: none; font-size: 10px; line-height: 9px;" href="http://localhost:8080/wiki/space/JEMS/Products">JBoss EEE</a> - </div> - <div style="padding: 3px; background-color: rgb(92, 92, 79); margin-right: 1px;"> - </div> - - <div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[0].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[0].style.color = '#ffffff';" style="padding: 5px; background-color: rgb(92, 92, 79); margin-top: 1px; margin-right: 1px;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 12px;" href="http://localhost:8080/wiki/space/JEMS/Download">Download</a> - </div> - - <div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[0].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[0].style.color = '#ffffff';" style="padding: 5px; background-color: rgb(92, 92, 79); margin-top: 1px; margin-right: 1px;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 12px;" href="http://localhost:8080/wiki/space/JEMS/Documentation">Documentation</a> - </div> - - <div onmouseover="this.style.backgroundColor='#cccccc'; this.childNodes[0].style.color = '#000000';" onmouseout="this.style.backgroundColor='#5c5c4f'; this.childNodes[0].style.color = '#ffffff';" style="padding: 5px; background-color: rgb(92, 92, 79); margin-top: 1px; margin-bottom: 1px; margin-right: 1px;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 12px;" href="http://localhost:8080/wiki/space/JEMS/foo">Foo Bar</a> - </div> - -<!-- Autogenerated Menu Ends --> - <!-- Sidebar End --> - </td> - <td width="44"> </td> - </tr> - <tr> - <td><img src="dotcom_files/side_nav_green_btm.gif" height="13" width="175"></td> - <td> </td> - </tr> - </tbody></table> - <!-- Ads --> - - </td> - <td valign="top"> </td> - <td valign="top" width="100%"> - -<!-- Content Area --> -<a name="A1"></a> -<h1>Relational Persistence For Idiomatic Java</h1> -<img style="float: right; margin-left: 15px; margin-right: 15px; margin-bottom: 5px;" src="dotcom_files/hibernate_logo.gif" alt="" border="0"><p>Hibernate -is a powerful, ultra-high performance object/relational persistence and -query service for Java. Hibernate lets you develop persistent classes -following common Java idiom - including association, inheritance, -polymorphism, composition and the Java collections framework. The <em>Hibernate Query Language</em>, -designed as a "minimal" object-oriented extension to SQL, provides an -elegant bridge between the object and relational worlds. Hibernate also -allows you to express queries using native SQL or Java-based Criteria -and Example queries. Hibernate is now the most popular -object/relational mapping solution for Java.</p><p>All SQL database -management systems are supported. Of course, Hibernate integrates -elegantly (and without restrictions) with all popular J2EE application -servers and web containers. Hibernate can also be used in standalone -Java applications. See our <a href="http://rollitout.jboss.com/197.html">complete introduction</a> and <a href="http://rollitout.jboss.com/200.html">road map</a> for more information.</p><p>Hibernate is a Professional Open Source project and a critical component of the <a href="http://www.jboss.com/products/overview">JBoss Enterprise Middleware System</a> -(JEMS) suite of products. Professional Open Source combines the -benefits of FREE open source software with the expert support services -and accountability you expect from a trusted company. JBoss Inc. offers -a range of <a href="http://rollitout.jboss.com/149.html">24x7 Professional Support, Consulting, and Training services</a> to assist you with Hibernate. Additionally, the <a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a> -open source license is sufficiently flexible to allow the use of -Hibernate in both open source and commercial projects (see the <a href="http://rollitout.jboss.com/196.html">LicenseFAQ</a> for details).</p><p><strong>If you are a first time user, follow <a href="http://rollitout.jboss.com/152.html">this road map</a> to learn Hibernate quickly.</strong></p> - -<hr size="1"> - - -<table class="rappsboxsimple" style="float: right; margin-left: 20px; margin-top: 18px; margin-bottom: 15px;" border="0" cellpadding="0" cellspacing="0"> - - - <tbody><tr> - <th colspan="4" style="border-style: solid; border-color: rgb(223, 223, 223); border-width: 0px 0px 1px; padding: 2px; font-weight: bold;" align="left">Recent site updates:</th> - </tr> - - - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>today, 09:11</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/7.html">Hibernate</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/7.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>yesterday, 08:55</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/243.html">Pagination</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/243.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>yesterday, 07:31</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/248.html">paginationCode</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/248.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>17 Apr 2005, 20:40</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/30.html">Download Overview</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/30.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>16 Apr 2005, 12:21</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/280.html">Proxy Visitor Pattern</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/280.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>15 Apr 2005, 18:43</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/40.html">Design Patterns</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/40.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>14 Apr 2005, 09:16</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/100.html">non-default TimeZone</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/100.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>11 Apr 2005, 19:37</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/152.html">Getting Started</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/152.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>11 Apr 2005, 19:35</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/22.html">Documentation Overview</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/22.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - <tr style="white-space: nowrap;" onmouseover="mover(this, '#DFDFDF')" onmouseout="mout(this, '#FFFFFF')" valign="top"> - <td class="monospace" style="padding: 0px 5px;" align="right" nowrap="nowrap"><tt>11 Apr 2005, 19:15</tt></td> - - <td class="monospace"> </td> - <td style=""><a href="http://rollitout.jboss.com/175.html">Hibernate Training</a></td> - <td style="padding: 0px 5px;">[<a target="_blank" href="http://rollitout.jboss.com/175.html?cmd=diffhist&refnode=7">Diff</a>]</td> - </tr> - - - <tr> - <th colspan="4" style="border-style: solid; border-color: rgb(223, 223, 223); border-width: 1px 0px 0px; padding: 2px; font-weight: bold;" align="right"> - CVS Changelog: - <a href="http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate2/changelog.txt?only_with_tag=HEAD&view=markup"> - - Hibernate2 - </a>, - <a href="http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate3/changelog.txt?only_with_tag=HEAD&view=markup"> - Hibernate3 - </a> - - </th> - </tr> - -</tbody></table> - - - -<a name="A2"></a><h4><em>18.04.2004</em> - First Hibernate3 maintenance release</h4> -<blockquote><p><a href="http://rollitout.jboss.com/30.html">Hibernate 3.0.1</a> -fixes minor issues and introduces interesting new HQL features -(expressions in aggregation functions, various new projection options) -as well as seamless <a href="http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/04/12#current-session">J2EE/JTA container integration of Hibernate Sessions</a>.</p></blockquote> -<a name="A3"></a><h4><em>07.04.2005</em> - Hibernate Annotations 3.0 Preview beta 1 for Hibernate 3.0 final released</h4> -<blockquote><p>Hibernate Annotations 3.0 Preview beta 1 has been -released today. This is a huge step forward to EJB3/JSR-220 compliance -(almost complete early draft 2 support), we've also added better -support for Hibernate features. <a href="http://annotations.hibernate.org/">More info...</a></p></blockquote> - -<a name="A4"></a><h4><em>31.03.2005</em> - Hibernate 3.0 final released</h4> -<blockquote><p>Hibernate 3.0 has been released today and contains minor fixes and new functionality (two new database dialects) - <a href="http://rollitout.jboss.com/30.html">Download</a></p></blockquote> -<a name="A5"></a><h4><em>18.03.2005</em> - Hibernate wins in 15th Jolt Award selection</h4> -<blockquote><p>Hibernate 2.1 won the 15th Jolt Product Excellence Award in the category <em>Libraries, Framworks, and Components</em> -- the second year in a row! <em><a href="http://www.sdmagazine.com/pressroom/jolt_winners_2005.pdf">List of winners</a> (PDF)...</em></p></blockquote> - -<a name="A6"></a><h4><em>16.03.2005</em> - Rio Java Summit</h4> -<blockquote><p>Gavin King will be speaking at the <a href="http://www.riojug.org/rjs2005/index.jsp">Rio Java Summit</a> this weekend.</p></blockquote> -<a name="A7"></a><h4><em>15.03.2005</em> - Position vacant: Hibernate consultant for JBoss</h4> -<blockquote><p>JBoss, Inc is looking to hire a full-time Hibernate -consultant based in the United States to help deliver Hibernate-related -onsite consulting and training. We're looking for someone with -significant experience building enterprise applications using -Hibernate. JBoss knowledge is useful but not essential. Please send -resumes to <a href="mailto:gavin%20%28at%29%20hibernate%20%28dot%29%20org">mailto:gavin (at) hibernate (dot) org</a>.</p></blockquote> - -<a name="A8"></a><h4><em>11.03.2005</em> - Response to innaccurate Versant spam emailing</h4> -<blockquote><p>If you were one of the recipients of a recent mass emailing by Versant, you might like to read <a href="http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/03/11#versant">a set of corrections published on the Hibernate team weblog</a>. -It is not the usual policy of the Hibernate team to respond to false -claims made by commercial vendors (we only have so many hours in the -day). However, in this case we have a pattern of very aggressive -anti-Hibernate marketing materials by one particular vendor, and feel -it is necessary to clear up any resulting confusion.</p></blockquote> -<a name="A9"></a><h4> <em>28.02.2005</em> - Hibernate 3.0 release candidate</h4> -<blockquote><p>Hibernate 3.0 is finally production ready! Check the announcement <a href="http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/02/28#3announce">here</a> and download the release candidate <a href="http://www.hibernate.org/Download/DownloadOverview">here</a>. -Brand new in this release: HQL bulk/update delete queries and -relational/XML schema mappings for reporting, data import/export and -messaging.</p><p>This is a big day for the Hibernate Team, and we'd like to thank everyone who supported us over the last 3 years!</p><p>UPDATE: Don't forget to read the <a href="http://www.hibernate.org/Documentation/Hibernate3MigrationGuide">migration guide</a>!</p></blockquote> - -<a name="A10"></a><h4><em>12.02.2005</em> - Hibernate 3.0 beta 4</h4> -<blockquote><p>This is the last beta for Hibernate 3.0. This release -includes a number of important enhancements and new features along with -a number of bugfixes and substantially rewritten documentation. <a href="http://sourceforge.net/project/shownotes.php?release_id=304169">Changelog</a>, <a href="http://sourceforge.net/project/showfiles.php?group_id=40712&package_id=127784&release_id=304169">download</a>.</p></blockquote> -<a name="A11"></a><h4>Get the inside story on Hibernate3 at JBoss World!</h4> -<blockquote><p><a href="http://www.jboss.org/jbworld/index.html">JBoss World 2005</a> -is the first annual JBoss user's conference in Atlanta, GA, March 1-2. -Virtually the entire Hibernate team will be in the same place at one -time (a very rare occurrence), for the official launch of Hibernate -3.0. Come along and learn all about the new features of Hibernate, the -brand new Hibernate toolset, our EJB3 persistence implementation, and -our plans for the future.</p></blockquote> -<a name="A12"></a><h4><em>30.01.2005</em> - Hibernate 3.0 beta 3, 2.1.8</h4> - -<blockquote><p>Hibernate 3.0 beta 3 features several new features, -including a completely revamped criteria query API with full support -for projection, grouping, aggregation. We are just weeks away from a -Hibernate3 release candidate, so please try out this release and let us -know about any bugs that might have slipped through!</p><p>Hibernate 2.1.8 is a maintenance release of Hibernate 2.1, including several bugfixes.</p></blockquote> -<a name="A13"></a><h4><em>25.01.2005</em> - New preview releases: Tools and Annotations</h4> -<blockquote><p>The toolset for Hibernate 2.x is an important feature -for many Hibernate developers. However, better integration of the tools -and new ideas for graphical helpers are our motivation for the new -Hibernate3 toolset. Get the first preview of our new Eclipse plugins <a href="http://tools.hibernate.org/">here</a>.</p><p>We also released another preview version of the <a href="http://annotations.hibernate.org/">EJB3/Hibernate3 Annotations</a> for JDK 5.0. Feedback welcome!</p></blockquote> - - - - - - - </td> - <td valign="top"> </td> -</tr> -</tbody></table></td> - </tr> -</tbody> - </table> -<!-- Foot --> -<table style="margin-top: 1px;" border="0" cellpadding="0" cellspacing="0"> - <tbody><tr> - - <td valign="top"><img src="dotcom_files/swoosh_green.gif" alt="" border="0" height="105" width="116"></td> - <td align="center" valign="bottom" width="100%"><div id="page-bottom"> -JBoss is a registered trademark and servicemark of JBoss Inc. -© 2002-2005 JBoss Inc. All rights reserved. <a href="http://rollitout.jboss.com/privacy_policy" class="smallwhite">Our privacy policy</a> - - -</div></td> - </tr> - </tbody></table> - - </body></html> \ No newline at end of file Deleted: trunk/forge/portal-extensions/forge-theme/index.jsp =================================================================== --- trunk/forge/portal-extensions/forge-theme/index.jsp 2005-08-17 16:03:17 UTC (rev 886) +++ trunk/forge/portal-extensions/forge-theme/index.jsp 2005-08-17 16:06:18 UTC (rev 887) @@ -1,392 +0,0 @@ -<!-- - JBoss, the OpenSource J2EE webOS - Distributable under LGPL license. - See terms of license at gnu.org. - --> -<%! - - /** Left region index. */ - private static final int LEFT = 0; - - /** Center region index. */ - private static final int CENTER = 1; - - /** Right region index. */ - private static final int RIGHT = 2; - - /** Map a (region,mode) to an image path. */ - private static final Map[] MODE_IMG_PATH = new Map[]{new HashMap(),new HashMap(),new HashMap()}; - - /** Map a (windowState,mode) to an image path. */ - private static final Map[] WINDOW_STATE_IMG_PATH = new Map[]{new HashMap(),new HashMap(),new HashMap()}; - - static - { - MODE_IMG_PATH[LEFT].put("edit", "/nodesk/images/portlet_left_top/edit.gif"); - MODE_IMG_PATH[LEFT].put("view", "/nodesk/images/portlet_left_top/view.gif"); - MODE_IMG_PATH[LEFT].put("help", "/nodesk/images/portlet_left_top/help.gif"); - MODE_IMG_PATH[CENTER].put("edit", "/nodesk/images/portlet_middle_top/edit.gif"); - MODE_IMG_PATH[CENTER].put("view", "/nodesk/images/portlet_middle_top/view.gif"); - MODE_IMG_PATH[CENTER].put("help", "/nodesk/images/portlet_middle_top/help.gif"); - MODE_IMG_PATH[RIGHT].put("edit", "/nodesk/images/portlet_right_top/edit.gif"); - MODE_IMG_PATH[RIGHT].put("view", "/nodesk/images/portlet_right_top/view.gif"); - MODE_IMG_PATH[RIGHT].put("help", "/nodesk/images/portlet_right_top/help.gif"); - WINDOW_STATE_IMG_PATH[LEFT].put("normal", "/nodesk/images/portlet_left_top/normal.gif"); - WINDOW_STATE_IMG_PATH[LEFT].put("minimized", "/nodesk/images/portlet_left_top/minimize.gif"); - WINDOW_STATE_IMG_PATH[LEFT].put("maximized", "/nodesk/images/portlet_left_top/maximize.gif"); - WINDOW_STATE_IMG_PATH[CENTER].put("normal", "/nodesk/images/portlet_middle_top/normal.gif"); - WINDOW_STATE_IMG_PATH[CENTER].put("minimized", "/nodesk/images/portlet_middle_top/minimize.gif"); - WINDOW_STATE_IMG_PATH[CENTER].put("maximized", "/nodesk/images/portlet_middle_top/maximize.gif"); - WINDOW_STATE_IMG_PATH[RIGHT].put("normal", "/nodesk/images/portlet_right_top/normal.gif"); - WINDOW_STATE_IMG_PATH[RIGHT].put("minimized", "/nodesk/images/portlet_right_top/minimize.gif"); - WINDOW_STATE_IMG_PATH[RIGHT].put("maximized", "/nodesk/images/portlet_right_top/maximize.gif"); - } - -%> - -<%@ taglib uri="/WEB-INF/theme-basic-lib.tld" prefix="tb" %> -<%@ page - import="java.util.Iterator, - java.io.Writer, - java.io.IOException, - java.io.StringWriter, - java.util.Map, - java.util.HashMap, - org.jboss.portal.server.theme.LayoutConstants"%> -<% - String contextPath = request.getContextPath(); - int nbCol = 3; - boolean leftIsEmpty = false; - boolean centerIsEmpty = false; - boolean rightIsEmpty = false; - - String left = "left"; - String center = "center"; - String right = "right"; - - String layoutState = (String)request.getAttribute(LayoutConstants.PARAM_LAYOUT_STATE); - if ("maximized".equals(layoutState)) - { - left = ""; - center = "left,center,right"; - right = ""; - leftIsEmpty = true; - centerIsEmpty = false; - rightIsEmpty = true; - } - else - { - %> - <% - } - -%> - -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<title><%= "JBoss Portal :: 2.0 Release Candidate" %></title> -<meta http-equiv="Content-Type" content="text/html;" /> -<script language="JavaScript" type="text/javascript"> -<!-- -function MM_reloadPage(init) { //reloads the window if Nav4 resized - if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { - document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} - else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); -} -MM_reloadPage(true); -//--> -</script> -<link href="<%= contextPath %>/nodesk/css/portal_style.css" rel="stylesheet" type="text/css" /> -<link href="/portal-forums/subSilver/styles.css" rel="stylesheet" type="text/css" /> -<link rel="shortcut icon" href="<%= contextPath %>/images/favicon.ico" /> -</head> -<body> - - <!-- page title--> - -<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="portal-table"> - -<tr><td colspan="<%= nbCol %>"> -<table border="0" cellpadding="0" cellspacing="0"> - <tbody><tr> - <td rowspan="3" bgcolor="#9bcd4b" valign="top"><a href="http://www.jboss.com/"><img src="<%= contextPath %>/nodesk/images/logo_green.gif" alt="JBoss Inc." border="0" height="102" width="383"></a></td> - - <td bgcolor="#9bcd4b" height="22" valign="top"> </td> - <td bgcolor="#9bcd4b" height="22" width="100%"><img src="<%= contextPath %>/nodesk/images/spacer.gif" alt="" border="0" height="1" width="1"></td> - <td height="22" valign="top"> - - <!-- Tabs --> - <table border="0" cellpadding="0" cellspacing="0"><tbody><tr> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#cc1d2e'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#EB1A24'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#901817';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(235, 26, 36); text-align: center;"><a onfocus="if (this.blur) this.blur()" style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/network.html"> JBoss Network </a> - <table style="margin: 0pt;" bgcolor="#901817" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#eb1a24"><img src="<%= contextPath %>/nodesk/images/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#057baa'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#008FD6'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#005EB6';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(0, 143, 214); text-align: center;"><a onfocus="if (this.blur) this.blur()" style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/jems.html"> JEMS </a> - <table style="margin: 0pt;" bgcolor="#005eb6" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#008fd6"><img src="<%= contextPath %>/nodesk/images/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - - <td onmouseover="this.childNodes[0].style.backgroundColor = '#82a53f'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#9BCD4B'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#E79A00';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(155, 205, 75); text-align: center;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/dotcom.html"> JBoss.com </a> - <table style="margin: 0pt;" bgcolor="#e79a00" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#9bcd4b"><img src="<%= contextPath %>/nodesk/images/spacer.gif" alt="" border="0" height="4" width="110"></td> - </tr></tbody></table> - </div></td> - -<td onmouseover="this.childNodes[0].style.backgroundColor = '#bc9131'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6E6E6E';" onmouseout="this.childNodes[0].style.backgroundColor = '#E5B335'; - this.childNodes[0].childNodes[1].style.backgroundColor = '#6C7426';" onmouseup="fireClickEventOnChild(this, 'A')" nowrap="nowrap"><div style="margin-left: 1px; background-color: rgb(229, 179, 53); text-align: center;"><a style="padding: 5px; color: rgb(255, 255, 255); font-weight: bold; text-decoration: none; font-size: 12px; line-height: 18px;" href="http://rollitout.jboss.com/new_look/federation.html"> JBoss Federation </a> - <table style="margin: 0pt;" bgcolor="#6c7426" border="0" cellpadding="0" cellspacing="0" width="110"> - <tbody><tr><td bgcolor="#e5b335"><img src="<%= contextPath %>/nodesk/images/spacer.gif" alt="" border="0" height="4" width="120"></td> - </tr></tbody></table> - - </div></td> - - </tr></tbody></table> - - </td> - -</tr> -<tr><td valign="top"> </td> - <td colspan="2" align="right" valign="middle"> - <!-- Controls --> - - <table border="0" cellpadding="5" cellspacing="0" width="444"> - - <tbody><tr> - - <td align="center"> <a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://forge.sicore.org:8080/portal/auth">Login</a> </td> - - <td align="center"> <a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://forge.sicore.org:8080/portal/index.html?ctrl:id=window.jrunit.UserPortletWindowDefaultJRUnit&ctrl:type=render&ctrl:windowstate=maximized&op=showRegister">Register</a></td> - - - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/wiki/Wiki.jsp?page=PageIndex">Sitemap</a></td> - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/career">Career</a></td> - - <td align="center"><a style="padding: 5px; color: rgb(110, 110, 110); font-weight: normal; text-decoration: none; font-size: 11px; line-height: 18px;" href="http://localhost:8080/contact">Contact Us</a></td> - - - </tr> - - </tbody></table> - - </td></tr> - -<tr><td valign="top"> </td> - <td colspan="2" align="right" valign="middle"> - - - </td></tr> - </tbody></table> -</td></tr> -<tr><td colspan="<%= nbCol %>"><img src="<%= contextPath %>/nodesk/images/side_nav_green_btm.gif... [truncated message content] |
From: <jbo...@li...> - 2005-08-17 16:03:21
|
Author: szimano Date: 2005-08-17 12:03:17 -0400 (Wed, 17 Aug 2005) New Revision: 886 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: grrr... forge Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 16:02:56 UTC (rev 885) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 16:03:17 UTC (rev 886) @@ -33,7 +33,7 @@ private Matcher myMatcher; /* URL components, later to be configurable */ - private String portalHome = "http://localhost:8080/portal/"; + private String portalHome = "http://forge.sicore.org:8080/portal/"; private String wikiHome = "index.html?ctrl:id=window.default.WikiPortletWindow"; |
From: <jbo...@li...> - 2005-08-17 16:03:04
|
Author: szimano Date: 2005-08-17 12:02:56 -0400 (Wed, 17 Aug 2005) New Revision: 885 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiType.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: init() in WikiPlugin Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-17 15:46:28 UTC (rev 884) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-17 16:02:56 UTC (rev 885) @@ -74,65 +74,96 @@ boolean status = false; - Properties pageProps = getPageProps(page.getName()); + if (pageExists(page.getName())) { // page exists on harddisk - add new version + Properties pageProps = getPageProps(page.getName()); - pageProps.setProperty(page.getLastVersion() + ".author", page - .getLastAuthor().getName()); + pageProps.setProperty(page.getLastVersion() + ".author", page + .getLastAuthor().getName()); - try { - pageProps.store(new FileOutputStream(new File(pathToMedia + "/OLD/" - + page.getName() + "/page.properties")), - "Saved by FileDataSource of JBoss Wiki"); - } catch (Exception e) { - System.err.println("[FILEDATASOURCE]: Cannot save property file: " - + e.toString()); - } + try { + pageProps.store(new FileOutputStream(new File(pathToMedia + + "/OLD/" + page.getName() + "/page.properties")), + "Saved by FileDataSource of JBoss Wiki"); + } catch (Exception e) { + System.err + .println("[FILEDATASOURCE]: Cannot save property file: " + + e.toString()); + } - System.out.println("Opening files"); - File pageFile = new File(pathToMedia + "/OLD/" + page.getName() + "/" - + (page.getLastVersion() - 1) + ".txt"); - File pageOldFile = new File(pathToMedia + "/" + page.getName() + ".txt"); + System.out.println("Opening files"); + File pageFile = new File(pathToMedia + "/OLD/" + page.getName() + + "/" + (page.getLastVersion() - 1) + ".txt"); + File pageOldFile = new File(pathToMedia + "/" + page.getName() + + ".txt"); - FileOutputStream pageFileWriter; - FileInputStream pageFileReader; + FileOutputStream pageFileWriter; + FileInputStream pageFileReader; - try { - pageFileWriter = new FileOutputStream(pageFile); - pageFileReader = new FileInputStream(pageOldFile); + try { + pageFileWriter = new FileOutputStream(pageFile); + pageFileReader = new FileInputStream(pageOldFile); - int b; + int b; - while ((b = pageFileReader.read()) != -1) { - pageFileWriter.write(b); - } + while ((b = pageFileReader.read()) != -1) { + pageFileWriter.write(b); + } - pageFileWriter.close(); + pageFileWriter.close(); - pageOldFile.delete(); + pageOldFile.delete(); - pageFileWriter = new FileOutputStream(pageOldFile); + pageFileWriter = new FileOutputStream(pageOldFile); - String pageContent = page.getContent(); + String pageContent = page.getContent(); - for (int i = 0; i < pageContent.length(); i++) { - pageFileWriter.write((int) pageContent.charAt(i)); + for (int i = 0; i < pageContent.length(); i++) { + pageFileWriter.write((int) pageContent.charAt(i)); + } + + pageFileWriter.close(); + status = true; + } catch (FileNotFoundException fnfe) { + System.err.println("[FILEDATASOURCE]: Cannot save page: " + + fnfe.toString()); + } catch (IOException ioe) { + System.err.println("[FILEDATASOURCE]: Cannot save page: " + + ioe.toString()); } - pageFileWriter.close(); - status = true; - } catch (FileNotFoundException fnfe) { - System.err.println("[FILEDATASOURCE]: Cannot save page: " - + fnfe.toString()); - } catch (IOException ioe) { - System.err.println("[FILEDATASOURCE]: Cannot save page: " - + ioe.toString()); + } else { // there is no page on disk. We have to create new one. + + try { + + // create needed dirs + File newPageFile = new File(pathToMedia+"/OLD/"+page.getName()); + newPageFile.mkdirs(); + + //write the page + newPageFile = new File(pathToMedia+"/OLD/"+page.getName()+"/page.properties"); + + FileOutputStream pageWriter = new FileOutputStream(newPageFile); + + Properties properties = new Properties(); + properties.setProperty(page.getLastVersion()+".author", page.getLastAuthor().getName()); + + properties.store(pageWriter, "Saved by FileDataSource of JBoss Wiki"); + + pageWriter = new FileOutputStream(new File(pathToMedia+"/"+page.getName()+".txt")); + + String pageContent = page.getContent(); + + for (int i = 0; i < pageContent.length(); i++) { + pageWriter.write((int) pageContent.charAt(i)); + } + + status = true; + } + catch (Exception e) { + System.err.println("Cannot write new page: "+e); + status = false; + } } - - /* - * while () String pageContent = page.getContent(); - * - * for (int i = 0; i < page.) pageFileWriter.w - */ return status; } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java 2005-08-17 15:46:28 UTC (rev 884) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java 2005-08-17 16:02:56 UTC (rev 885) @@ -55,6 +55,8 @@ * */ + public abstract void init(); + public void setWikiEngine(WikiEngine wikiEngine) { this.wikiEngine = wikiEngine; @@ -77,5 +79,6 @@ protected String getProperty(String propertyName) { return pluginProps.getProperty(propertyName); } + } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 15:46:28 UTC (rev 884) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 16:02:56 UTC (rev 885) @@ -58,8 +58,11 @@ WikiPage edPage = wikiEngine.getByName((String) rReq .getParameter("editedPage"), wikiContext); - edPage.unlock(rReq.getUser()); - + + if (edPage != null) { //it may be null if the page isn't saved yet + edPage.unlock(rReq.getUser()); + } + // saving, previewing or canceling if (rReq.getParameter("editAction").equals("Save")) { Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiType.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiType.java 2005-08-17 15:46:28 UTC (rev 884) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiType.java 2005-08-17 16:02:56 UTC (rev 885) @@ -102,6 +102,9 @@ plugins.put(pluginName, plugin); plugin.setWikiEngine(wikiEngine); + + // run init() function + plugin.init(); System.out.println("[WikiType:" + name + "]Plugin added: " + pluginName + " class: " + pluginClass); Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 15:46:28 UTC (rev 884) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 16:02:56 UTC (rev 885) @@ -33,7 +33,7 @@ private Matcher myMatcher; /* URL components, later to be configurable */ - private String portalHome = "http://forge.sicore.org:8080/portal/"; + private String portalHome = "http://localhost:8080/portal/"; private String wikiHome = "index.html?ctrl:id=window.default.WikiPortletWindow"; @@ -788,6 +788,12 @@ return newPage; } + @Override + public void init() { + // TODO Auto-generated method stub + + } + // public static void main(String[] args) { |
Author: dam...@jb... Date: 2005-08-17 11:46:28 -0400 (Wed, 17 Aug 2005) New Revision: 884 Added: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp Removed: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp Modified: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/WEB-INF/classes/actions.xml Log: MERGED: -r 849:870 https://svn.labs.jboss.com/trunk/forge/jira-extensions into qa jira-extensions. Modified: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/WEB-INF/classes/actions.xml =================================================================== --- qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/WEB-INF/classes/actions.xml 2005-08-17 15:24:32 UTC (rev 883) +++ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/WEB-INF/classes/actions.xml 2005-08-17 15:46:28 UTC (rev 884) @@ -1293,6 +1293,7 @@ <view name="excel-current">/secure/views/navigator/navigator-excel-current.jsp</view> <view name="full">/secure/views/navigator/navigator-full.jsp</view> <view name="error">/secure/views/navigator/navigator.jsp</view> + <view name="rnotes">/secure/views/navigator/rnotes.jsp</view> </action> <action name="issue.ViewIssue" alias="ViewIssue"> Copied: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator (from rev 870, trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator) Copied: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table (from rev 870, trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table) Deleted: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp =================================================================== --- trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp 2005-08-16 17:24:26 UTC (rev 870) +++ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp 2005-08-17 15:46:28 UTC (rev 884) @@ -1,97 +0,0 @@ -<%@ taglib uri="sitemesh-page" prefix="page" %> -<%@ taglib uri="webwork" prefix="webwork" %> -<page:applyDecorator name="jirapanel"> - <page:param name="title"><webwork:property value="text('navigator.title')"/><webwork:if test="searchRequest/name"> -- <webwork:property value="searchRequest/name"/></webwork:if></page:param> - <page:param name="description"> - <webwork:if test="$decorator == 'printable'"> - <jsp:include page="/includes/navigator/search-request_description.jsp" /> - <br/> - </webwork:if> - - <%-- Test if we have any issues that were found --%> - <webwork:if test="/searchResults/total == 0"> - <webwork:text name="'navigator.results.nomatchingissues'"/> - </webwork:if> - <webwork:else> - <webwork:text name="'navigator.results.displayissues'"> - <webwork:param name="'value0'"><b><webwork:property value="/searchResults/niceStart" /></b></webwork:param> - <webwork:param name="'value1'"><b><webwork:property value="/searchResults/end" /></b></webwork:param> - <webwork:param name="'value2'"><b><webwork:property value="/searchResults/total" /></b></webwork:param> - </webwork:text> <webwork:if test="'printable' == $decorator"><webwork:text name="'navigator.results.asat'"><webwork:param name="'value0'"><b><webwork:property value="/outlookDate/formatDMYHMS(/outlookDate/now)"/></b></webwork:param></webwork:text></webwork:if><br> - </webwork:else> - - </page:param> - <page:param name="width">100%</page:param> - - <jsp:include page="/includes/errormessages.jsp" /> - - <%-- Only show the views if there are issues that match the search criteria--%> - <webwork:if test="/searchResults/total > 0 && 'printable' != $decorator"> - <table border="0" cellpadding="0" cellspacing="0" width="100%"> - <tr> - <td valign="bottom" width=80%><b><webwork:text name="'navigator.results.currentview'"/>:</b><br> - <webwork:if test="'bulk' != $view && 'rnotes' != $view"> - <webwork:text name="'navigator.results.currentview.browser'"/> - </webwork:if> - <webwork:else> - <a href="<webwork:url><webwork:param name="'view'" value="''" /><webwork:param name="'tempMax'" value="'-1'" /><webwork:param name="'decorator'" value="''" /></webwork:url>"><webwork:text name="'navigator.results.currentview.browser'"/></a> - </webwork:else> - | <a href="<webwork:url><webwork:param name="'view'" value="''" /><webwork:param name="'mode'" value="'hide'" /><webwork:param name="'start'" value="'0'" /><webwork:param name="'tempMax'" value="'1000'" /><webwork:param name="'decorator'" value="'printable'" /></webwork:url>"><webwork:text name="'navigator.results.currentview.printable'"/></a> - | <a href="<%= request.getContextPath() %>/secure/IssueNavigator.jspa?view=rss&<webwork:property value="SRQueryString" />&tempMax=25&reset=true&decorator=none"><webwork:text name="'navigator.results.currentview.xml'"/></a> - <webwork:if test="'rnotes' != $view"> - | <a href="<%= request.getContextPath() %>/secure/IssueNavigator.jspa?view=rnotes&tempMax=10000"> - <webwork:text name="Release Notes"/></a> - </webwork:if> - <webwork:else> - | <webwork:text name="Release Notes"/> - </webwork:else> - | <a href="<webwork:url page="/secure/IssueNavigator.jspa"><webwork:param name="'view'" value="'full'"/><webwork:param name="'tempMax'" value="'30'"/></webwork:url>"><webwork:text name="'navigator.results.currentview.full'"/></a> - | <webwork:text name="'navigator.results.currentview.excel'"/> <span class="subText"> - (<a href="<webwork:url page="/secure/IssueNavigator.jspa"><webwork:param name="'view'" value="'excel'"/><webwork:param name="'tempMax'" value="'1000'"/></webwork:url>"><webwork:text name="'navigator.results.currentview.excel.full'"/></a> - | <a href="<webwork:url page="/secure/IssueNavigator.jspa"><webwork:param name="'view'" value="'excel-current'"/></webwork:url>"><webwork:text name="'navigator.results.currentview.excel.current'"/></a>) - </span> - <webwork:component name="'navigatorviews'" template="help.jsp"> - <webwork:param name="'align'" value="'middle'"/> - </webwork:component> - </td> - <td valign="bottom" align="left" width=20% nowrap> - <webwork:if test="hasBulkEditPermissionForSearchRequest == true"> - <img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle> - <b><webwork:text name="'navigator.results.currentview.bulkchange'"/></b> - <a id="bulkedit_all" href="<webwork:url page="/secure/views/bulkedit/BulkEdit1!default.jspa"><webwork:param name="'reset'" value="'true'"/><webwork:param name="'tempMax'" value="/searchResults/total"/></webwork:url>"><webwork:text name="'navigator.results.currentview.bulkchange.allissues'"><webwork:param name="'value0'" value="/searchResults/total"/></webwork:text></a> - <%-- Show the 'All' link if there is more than one pager --%> - <webwork:if test="/searchResults/pages/size > 1"> - | <a id="bulkedit_curr_pg" href="<webwork:url page="/secure/views/bulkedit/BulkEdit1!default.jspa"><webwork:param name="'reset'" value="'true'"/></webwork:url>"><webwork:text name="'navigator.results.currentview.bulkchange.currentpage'"/></a> - </webwork:if> - </webwork:if> - - <webwork:if test="/remoteUser != null && /hasPermission('use')"> - <webwork:if test="/showOverrideColumnLayout == false"> - <br><img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle> - <webwork:text name="'navigator.results.configurenavigator'"> - <webwork:param name="'value0'"><a href="<%= request.getContextPath() %>/secure/ViewUserIssueColumns!default.jspa"><b></webwork:param> - <webwork:param name="'value1'"></b></a></webwork:param> - </webwork:text> - </webwork:if> - <webwork:else> - <br><img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle> - <webwork:text name="'navigator.results.useyourcolumns'"> - <webwork:param name="'value0'"><a href="<%= request.getContextPath() %>/secure/IssueNavigator!columnOverride.jspa"><b></webwork:param> - <webwork:param name="'value1'"></b></a></webwork:param> - </webwork:text> - </webwork:else> - </webwork:if> - - <webwork:if test="/hasSearchRequestColumnLayout() == true && /showOverrideColumnLayout == false"> - <br><img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle> - <webwork:text name="'navigator.results.usefilterscolumns'"> - <webwork:param name="'value0'"><a href="<%= request.getContextPath() %>/secure/IssueNavigator!columnOverride.jspa"><b></webwork:param> - <webwork:param name="'value1'"></b></a></webwork:param> - </webwork:text> - </webwork:if> - </td> - </tr> - </table> - </webwork:if> - -</page:applyDecorator> Copied: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp (from rev 870, trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp) Copied: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator (from rev 870, trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator) Deleted: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp =================================================================== --- trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-16 17:24:26 UTC (rev 870) +++ qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-17 15:46:28 UTC (rev 884) @@ -1,155 +0,0 @@ -<%@ page import="com.atlassian.jira.web.component.IssueTableLayoutBean, - com.atlassian.jira.web.component.IssuePager, - java.util.*, - org.ofbiz.core.entity.GenericValue, - com.atlassian.jira.ComponentManager, - com.atlassian.jira.issue.search.util.QueryCreator, - com.atlassian.jira.web.action.issue.IssueNavigator, - com.atlassian.jira.web.component.IssueTableWebComponent, - com.atlassian.jira.issue.search.SearchResults, - com.atlassian.jira.config.ConstantsManager, - com.atlassian.jira.web.bean.PagerFilter"%> -<%@ taglib uri="webwork" prefix="webwork" %> -<%@ taglib uri="sitemesh-page" prefix="page" %> - -<!-- JIRA PART --> - -<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="ffffff"> - <tr> - <!-- This is here to get around a rendering problem on Mozilla which manifests when viewing the page - over a relatively slow connection. The filterform is rendered to take up more than half the page. By - givving a 'relative' row to the browser first we ensure that the rest of the rows are rendered similarly and - hence the width of the filterform column is fixed. Fixes JRA-5116 --> - <webwork:if test="/mode == 'show'"> - <td width="300" bgcolor="ffffff"></td> - </webwork:if> - <webwork:else> - <td width="214" bgcolor="f0f0f0"></td> - </webwork:else> - <td width="1"><img src="<webwork:url page="/images/border/spacer.gif"/>" height="1" width="1"></td> - <td width="100%"></td> - </tr> - -<tr> - <webwork:if test="/mode == 'show'"> - <td width="300" valign="top" bgcolor="ffffff"> - <jsp:include page="/includes/navigator/filter-form.jsp" flush="false" /> - </td> - </webwork:if> - <webwork:else> - <td width="214" valign="top" bgcolor="f0f0f0"> - <jsp:include page="/includes/navigator/summary-pane.jsp" flush="false" /> - </td> - </webwork:else> - <td width="1" bgcolor="bbbbbb"><img src="<webwork:url page="/images/border/spacer.gif"/>" height="1" width="1"></td> -<td valign="top"> - <table cellspacing="0" cellpadding="10" border="0" width="100%"><tr><td> - -<webwork:if test="/searchResults"> - <jsp:include page="/includes/navigator/table/header.jsp"/> -</webwork:if> -<webwork:else> - <page:applyDecorator name="jirapanel"> - <page:param name="title"><webwork:property value="text('navigator.title')"/></page:param> - <page:param name="width">100%</page:param> - <p> - <webwork:text name="'navigator.desc1'"/> - </p> - <p> - <webwork:text name="'navigator.desc2'"/> - </p> - <jsp:include page="/includes/errormessages.jsp" /> - </page:applyDecorator> -</webwork:else> - -<!-- JBoss part --> - -<webwork:if test="/hasErrorMessages == false && /hasErrors == false" > -<webwork:property value="/" id="issueNavigator" /> -<% - IssueNavigator issueNavigator = (IssueNavigator) request.getAttribute("issueNavigator"); - SearchResults searchResults = issueNavigator.getSearchResults(); - List issues = searchResults.getIssues(); - - Iterator iter; - /* Map: issue type id -> (Set of issue) */ - Map issuesMap = new TreeMap(); - /* Map: issue type id -> issue name */ - Map issuesNamesMap = new HashMap(); - - List allIssueTypes = ComponentManager.getInstance().getConstantsManager().getAllIssueTypes(); - for (iter = allIssueTypes.iterator(); iter.hasNext();) { - GenericValue issueType = (GenericValue)iter.next(); - issuesNamesMap.put(issueType.getString("id"), issueType.getString("name")); - } - - /* Preparing issueMap */ - for (iter = issuesNamesMap.keySet().iterator(); iter.hasNext();) - issuesMap.put(iter.next(), new TreeSet()); - - /* Filling sets in issueMap */ - for (iter = issues.iterator(); iter.hasNext();) { - GenericValue issue = (GenericValue) iter.next(); - ((Set)issuesMap.get(issue.getString("type"))).add(issue); - } - - for (iter = issuesMap.keySet().iterator(); iter.hasNext();) { - String typeId = (String) iter.next(); - Set currIssues = (Set) issuesMap.get(typeId); - if (currIssues.size() > 0) { -%> - <h2><%= issuesNamesMap.get(typeId) %></h2> - - <ul> - <% - for (Iterator iter2 = currIssues.iterator(); iter2.hasNext();) { - GenericValue issue = (GenericValue) iter2.next(); - %> - <li> - [ <a href="<%= request.getContextPath() %>/browse/<%= issue.getString("key") %>"> - <%= issue.getString("key") %> - </a> ] - <%= issue.getString("summary") %> - </li> - <% - } - %> - </ul> -<% - } - } -%> - - <hr /> - <h1>Text source</h1> -<% - for (iter = issuesMap.keySet().iterator(); iter.hasNext();) { - String typeId = (String) iter.next(); - Set currIssues = (Set) issuesMap.get(typeId); - if (currIssues.size() > 0) { -%> - <br /> - ** <%= issuesNamesMap.get(typeId) %> - <br /> - - <% - for (Iterator iter2 = currIssues.iterator(); iter2.hasNext();) { - GenericValue issue = (GenericValue) iter2.next(); - %> - * - [ <%= issue.getString("key") %> ] - <%= issue.getString("summary") %> - <br /> - <% - } - } - } -%> - -</webwork:if> - -<!-- JIRA PART --> - - </td></tr></table> -</td></tr> -</table> Copied: qa/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp (from rev 870, trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp) |
From: <jbo...@li...> - 2005-08-17 15:24:37
|
Author: szimano Date: 2005-08-17 11:24:32 -0400 (Wed, 17 Aug 2005) New Revision: 883 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: props Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 15:22:57 UTC (rev 882) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 15:24:32 UTC (rev 883) @@ -33,7 +33,7 @@ private Matcher myMatcher; /* URL components, later to be configurable */ - private String portalHome = "http://localhost:8080/portal/"; + private String portalHome = "http://forge.sicore.org:8080/portal/"; private String wikiHome = "index.html?ctrl:id=window.default.WikiPortletWindow"; |
Author: szimano Date: 2005-08-17 11:22:57 -0400 (Wed, 17 Aug 2005) New Revision: 882 Added: trunk/forge/portal-extensions/forge-wiki/src/etc/ trunk/forge/portal-extensions/forge-wiki/src/etc/org/ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/filedatasource.properties trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties Removed: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties Modified: trunk/forge/portal-extensions/forge-wiki/project.xml trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: wiki prop files moved to /src/etc + added wikiPlugins.properties Modified: trunk/forge/portal-extensions/forge-wiki/project.xml =================================================================== --- trunk/forge/portal-extensions/forge-wiki/project.xml 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/project.xml 2005-08-17 15:22:57 UTC (rev 882) @@ -42,4 +42,18 @@ <version>3.8.1</version> <jar>javax.servlet.jsp.jar</jar> </dependency> + + <build> + <sourceDirectory>src/java</sourceDirectory> + <resources> + <resource> + <directory>src/etc/</directory> + <include>**/*.properties</include> + </resource> + <resource> + <directory>src/etc/</directory> + <include>**/*.xml</include> + </resource> + </resources> + </build> </project> Added: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml 2005-08-17 15:22:57 UTC (rev 882) @@ -0,0 +1,22 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + +<wikiTypes> + <wikiType> + <name>HTML</name> + <class>org.jboss.wiki.plugins.HTMLWikiType</class> + <plugin> + <name>wikiToHtmlTranslator</name> + <class>org.jboss.wiki.plugins.HTMLTranslator</class> + </plugin> + + <!--<plugin> + <name>trail</name> + <class>org.jboss.wiki.plugins.TrailPlugin</class> + </plugin>--> + + </wikiType> +</wikiTypes> \ No newline at end of file Added: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/filedatasource.properties =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/filedatasource.properties 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/filedatasource.properties 2005-08-17 15:22:57 UTC (rev 882) @@ -0,0 +1,4 @@ +# FileDataSource configuration file + +# pathToMedia - points, where JSPWiki file structure is situated +pathToMedia = /usr/local/forge/wiki Added: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/wikiPlugins.properties 2005-08-17 15:22:57 UTC (rev 882) @@ -0,0 +1,2 @@ +# WikiPlugin properties. Use it wise. +htmlTranslatorURL = http://localhost:8080/portal/ Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPlugin.java 2005-08-17 15:22:57 UTC (rev 882) @@ -8,6 +8,10 @@ *************************************************/ package org.jboss.wiki; +import java.io.IOException; +import java.io.InputStream; +import java.util.Properties; + /** * <p></p> * @@ -21,6 +25,10 @@ public abstract class WikiPlugin { protected WikiEngine wikiEngine; + + private Properties pluginProps; + + final static String propFileName = "wikiPlugins.properties"; /** * <p></p> * @@ -49,6 +57,25 @@ public void setWikiEngine(WikiEngine wikiEngine) { this.wikiEngine = wikiEngine; + + // we can treat it as "init" function - it's executed after creating instance of plugin + // load props + + pluginProps = new Properties(); + + try { + + InputStream propsStream = FileDataSource.class.getResourceAsStream(propFileName); + + pluginProps.load(propsStream); + } + catch (Exception e) { + System.err.println("[WikiPlugin]: Cannot load WikiPlugin property file: "+e); + } } + + protected String getProperty(String propertyName) { + return pluginProps.getProperty(propertyName); + } } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-17 15:22:57 UTC (rev 882) @@ -26,8 +26,6 @@ public class WikiTypeHandler extends DefaultHandler { - private String lastWikiType = ""; - private Stack<String> elements = new Stack<String>(); private boolean isInsidePlugin = false; Deleted: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml 2005-08-17 15:22:57 UTC (rev 882) @@ -1,22 +0,0 @@ -<!-- - JBoss, the OpenSource J2EE webOS - Distributable under LGPL license. - See terms of license at gnu.org. - --> - -<wikiTypes> - <wikiType> - <name>HTML</name> - <class>org.jboss.wiki.plugins.HTMLWikiType</class> - <plugin> - <name>wikiToHtmlTranslator</name> - <class>org.jboss.wiki.plugins.HTMLTranslator</class> - </plugin> - - <!--<plugin> - <name>trail</name> - <class>org.jboss.wiki.plugins.TrailPlugin</class> - </plugin>--> - - </wikiType> -</wikiTypes> \ No newline at end of file Deleted: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties 2005-08-17 15:22:57 UTC (rev 882) @@ -1,4 +0,0 @@ -# FileDataSource configuration file - -# pathToMedia - points, where JSPWiki file structure is situated -pathToMedia = /usr/local/forge/wiki Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 13:45:27 UTC (rev 881) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 15:22:57 UTC (rev 882) @@ -33,7 +33,7 @@ private Matcher myMatcher; /* URL components, later to be configurable */ - private String portalHome = "http://forge.sicore.org:8080/portal/"; + private String portalHome = "http://localhost:8080/portal/"; private String wikiHome = "index.html?ctrl:id=window.default.WikiPortletWindow"; @@ -766,6 +766,7 @@ {} public WikiPage process(final WikiPage wikiPage) { + System.out.println("propertu: "+getProperty("htmlTranslatorURL")); WikiPage newPage = null; try { |
From: <jbo...@li...> - 2005-08-17 13:45:40
|
Author: aron.gombas Date: 2005-08-17 09:45:27 -0400 (Wed, 17 Aug 2005) New Revision: 881 Added: trunk/labs/kosmos/build/portlet-gridsphere-deploy.properties trunk/labs/kosmos/build/portlet-liferay-deploy.properties trunk/labs/kosmos/build/portlet-sun-portal-server-deploy.properties Log: Blank property files added Added: trunk/labs/kosmos/build/portlet-gridsphere-deploy.properties =================================================================== --- trunk/labs/kosmos/build/portlet-gridsphere-deploy.properties 2005-08-17 13:43:06 UTC (rev 880) +++ trunk/labs/kosmos/build/portlet-gridsphere-deploy.properties 2005-08-17 13:45:27 UTC (rev 881) @@ -0,0 +1 @@ + Added: trunk/labs/kosmos/build/portlet-liferay-deploy.properties =================================================================== --- trunk/labs/kosmos/build/portlet-liferay-deploy.properties 2005-08-17 13:43:06 UTC (rev 880) +++ trunk/labs/kosmos/build/portlet-liferay-deploy.properties 2005-08-17 13:45:27 UTC (rev 881) @@ -0,0 +1 @@ + Added: trunk/labs/kosmos/build/portlet-sun-portal-server-deploy.properties =================================================================== --- trunk/labs/kosmos/build/portlet-sun-portal-server-deploy.properties 2005-08-17 13:43:06 UTC (rev 880) +++ trunk/labs/kosmos/build/portlet-sun-portal-server-deploy.properties 2005-08-17 13:45:27 UTC (rev 881) @@ -0,0 +1 @@ + |
From: <jbo...@li...> - 2005-08-17 13:43:20
|
Author: aron.gombas Date: 2005-08-17 09:43:06 -0400 (Wed, 17 Aug 2005) New Revision: 880 Added: trunk/labs/kosmos/deploy-portlet-gridsphere.xml trunk/labs/kosmos/deploy-portlet-liferay.xml trunk/labs/kosmos/deploy-portlet-sun-portal-server.xml Modified: trunk/labs/kosmos/deploy-portlet-pluto.xml Log: Blank deploy scripts added Added: trunk/labs/kosmos/deploy-portlet-gridsphere.xml =================================================================== --- trunk/labs/kosmos/deploy-portlet-gridsphere.xml 2005-08-17 13:41:36 UTC (rev 879) +++ trunk/labs/kosmos/deploy-portlet-gridsphere.xml 2005-08-17 13:43:06 UTC (rev 880) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Kosmos Portlet deploy-script for Gridsphere --> +<!-- $Id$ --> +<project basedir="." default="redeploy" name="Kosmos Portlet on Gridsphere"> + <description>Kosmos Portlet Module deploy-file</description> + + <property name="module.name" value="portlet"/> + <property name="container.name" value="gridsphere"/> + <import file="build/deploy.xml"/> +</project> Added: trunk/labs/kosmos/deploy-portlet-liferay.xml =================================================================== --- trunk/labs/kosmos/deploy-portlet-liferay.xml 2005-08-17 13:41:36 UTC (rev 879) +++ trunk/labs/kosmos/deploy-portlet-liferay.xml 2005-08-17 13:43:06 UTC (rev 880) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Kosmos Portlet deploy-script for Liferay --> +<!-- $Id$ --> +<project basedir="." default="redeploy" name="Kosmos Portlet on Liferay"> + <description>Kosmos Portlet Module deploy-file</description> + + <property name="module.name" value="portlet"/> + <property name="container.name" value="liferay"/> + <import file="build/deploy.xml"/> +</project> Modified: trunk/labs/kosmos/deploy-portlet-pluto.xml =================================================================== --- trunk/labs/kosmos/deploy-portlet-pluto.xml 2005-08-17 13:41:36 UTC (rev 879) +++ trunk/labs/kosmos/deploy-portlet-pluto.xml 2005-08-17 13:43:06 UTC (rev 880) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Kosmos Portlet deploy-script for JBoss Portal --> +<!-- Kosmos Portlet deploy-script for Pluto --> <!-- $Id$ --> -<project basedir="." default="redeploy" name="Kosmos Portlet on JBoss Portal"> +<project basedir="." default="redeploy" name="Kosmos Portlet on Pluto"> <description>Kosmos Portlet Module deploy-file</description> <property name="module.name" value="portlet"/> Added: trunk/labs/kosmos/deploy-portlet-sun-portal-server.xml =================================================================== --- trunk/labs/kosmos/deploy-portlet-sun-portal-server.xml 2005-08-17 13:41:36 UTC (rev 879) +++ trunk/labs/kosmos/deploy-portlet-sun-portal-server.xml 2005-08-17 13:43:06 UTC (rev 880) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Kosmos Portlet deploy-script for Sun Java System Portal Server --> +<!-- $Id$ --> +<project basedir="." default="redeploy" name="Kosmos Portlet on Sun Java System Portal Server"> + <description>Kosmos Portlet Module deploy-file</description> + + <property name="module.name" value="portlet"/> + <property name="container.name" value="sun-portal-server"/> + <import file="build/deploy.xml"/> +</project> |
From: <jbo...@li...> - 2005-08-17 13:41:48
|
Author: aron.gombas Date: 2005-08-17 09:41:36 -0400 (Wed, 17 Aug 2005) New Revision: 879 Added: trunk/labs/kosmos/conf-portlet/gridsphere/ trunk/labs/kosmos/conf-portlet/liferay/ trunk/labs/kosmos/conf-portlet/pluto/ trunk/labs/kosmos/conf-portlet/sun-portal-server/ Log: More config added |
From: <jbo...@li...> - 2005-08-17 12:22:08
|
Author: szimano Date: 2005-08-17 08:21:58 -0400 (Wed, 17 Aug 2005) New Revision: 878 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/Credentials.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/MediaDataSource.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp Log: editing (real one) and loging fixed Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/Credentials.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/Credentials.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/Credentials.java 2005-08-17 12:21:58 UTC (rev 878) @@ -1,5 +1,14 @@ - package org.jboss.wiki; +/************************************************** + * * + * JBoss Labs: Creating Professional Open Source * + * * + * Distributable under LGPL license. * + * See terms of license at gnu.org. * + * * + *************************************************/ +package org.jboss.wiki; + /** * <p></p> * Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/FileDataSource.java 2005-08-17 12:21:58 UTC (rev 878) @@ -1,3 +1,11 @@ +/************************************************** + * * + * JBoss Labs: Creating Professional Open Source * + * * + * Distributable under LGPL license. * + * See terms of license at gnu.org. * + * * + *************************************************/ package org.jboss.wiki; import java.io.File; @@ -2,2 +10,4 @@ import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; import java.io.IOException; @@ -20,7 +30,7 @@ * </p> * */ - private final String propFileName = "filedatasource.properties";//"/home/tomek/java/sandbox/new_svn/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties"; + private final String propFileName = "filedatasource.properties";// "/home/tomek/java/sandbox/new_svn/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/filedatasource.properties"; private String pathToMedia; @@ -32,7 +42,8 @@ fileDSProps = new Properties(); try { - fileDSProps.load(FileDataSource.class.getResourceAsStream(propFileName)); + fileDSProps.load(FileDataSource.class + .getResourceAsStream(propFileName)); } catch (IOException ioe) { System.err.println("Can't load the file " + propFileName + "\n" + ioe); @@ -59,8 +70,70 @@ } public boolean savePage(WikiPage page, String languageCode) { - // TODO Auto-generated method stub - return false; + // TODO Languages + + boolean status = false; + + Properties pageProps = getPageProps(page.getName()); + + pageProps.setProperty(page.getLastVersion() + ".author", page + .getLastAuthor().getName()); + + try { + pageProps.store(new FileOutputStream(new File(pathToMedia + "/OLD/" + + page.getName() + "/page.properties")), + "Saved by FileDataSource of JBoss Wiki"); + } catch (Exception e) { + System.err.println("[FILEDATASOURCE]: Cannot save property file: " + + e.toString()); + } + + System.out.println("Opening files"); + File pageFile = new File(pathToMedia + "/OLD/" + page.getName() + "/" + + (page.getLastVersion() - 1) + ".txt"); + File pageOldFile = new File(pathToMedia + "/" + page.getName() + ".txt"); + + FileOutputStream pageFileWriter; + FileInputStream pageFileReader; + + try { + pageFileWriter = new FileOutputStream(pageFile); + pageFileReader = new FileInputStream(pageOldFile); + + int b; + + while ((b = pageFileReader.read()) != -1) { + pageFileWriter.write(b); + } + + pageFileWriter.close(); + + pageOldFile.delete(); + + pageFileWriter = new FileOutputStream(pageOldFile); + + String pageContent = page.getContent(); + + for (int i = 0; i < pageContent.length(); i++) { + pageFileWriter.write((int) pageContent.charAt(i)); + } + + pageFileWriter.close(); + status = true; + } catch (FileNotFoundException fnfe) { + System.err.println("[FILEDATASOURCE]: Cannot save page: " + + fnfe.toString()); + } catch (IOException ioe) { + System.err.println("[FILEDATASOURCE]: Cannot save page: " + + ioe.toString()); + } + + /* + * while () String pageContent = page.getContent(); + * + * for (int i = 0; i < page.) pageFileWriter.w + */ + return status; } public boolean postSave() { @@ -90,8 +163,9 @@ } public WikiPage getPage(String pageName) { - System.out.println("[WIKI:FileDataSource]: Getting new page: "+pageName); - + System.out.println("[WIKI:FileDataSource]: Getting new page: " + + pageName); + WikiPage page = null; File pageFile = new File(pathToMedia + "/" + pageName + ".txt"); @@ -128,7 +202,7 @@ } page = new WikiPage(pageName, author, pageContent, i, - new Date()); + new Date(), this); } } @@ -170,15 +244,15 @@ if (page != null) { if (page.getLastVersion() < version) { - System.out.println("There is no version " + version + " of page " - + pageName); + System.out.println("There is no version " + version + + " of page " + pageName); return null; } - + page.setPageContent(getContentAtVersion(pageName, version)); - + page.setLastAuthor(getAuthorAtVersion(pageName, version)); - + } return page; } @@ -234,16 +308,15 @@ System.out .println("Page WhatIsJBossForge doesn't exist at version 7"); } - + page = fds.getPageAtVersion("Dupa", 7); if (page != null) { page.showPage(); } else { - System.out - .println("Page Dupa doesn't exist at version 7"); + System.out.println("Page Dupa doesn't exist at version 7"); } - + page = fds.getPageAtVersion("WhatIsJBossForge", 70); if (page != null) { @@ -259,8 +332,7 @@ if (pageFile.exists()) { return true; - } - else { + } else { return false; } } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/MediaDataSource.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/MediaDataSource.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/MediaDataSource.java 2005-08-17 12:21:58 UTC (rev 878) @@ -1,4 +1,12 @@ - package org.jboss.wiki; +/************************************************** + * * + * JBoss Labs: Creating Professional Open Source * + * * + * Distributable under LGPL license. * + * See terms of license at gnu.org. * + * * + *************************************************/ +package org.jboss.wiki; /** * <p></p> * Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiEngine.java 2005-08-17 12:21:58 UTC (rev 878) @@ -58,6 +58,7 @@ private MediaDataSource mediaDataSource; + private String wikiID = (new Date()).toString(); /** * <p> * Does ... @@ -120,7 +121,7 @@ * @param wikiContext */ public WikiPage getByName(String pageName, WikiContext wikiContext) { - + WikiPage ret = null; if (pages.containsKey(pageName)) { @@ -286,6 +287,10 @@ init(); } + public MediaDataSource getMediaDataSource() { + return mediaDataSource; + } + public static void main(String[] args) { WikiEngine we = new WikiEngine(); @@ -294,7 +299,7 @@ WikiContext wc = new WikiContext(null, wt); WikiPage wp = new WikiPage("name", new Credentials("tomek"), - "[content|ble sme]", 1, new Date()); + "[content|ble sme]", 1, new Date(), we.getMediaDataSource()); wp = wc.process(wp); Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPage.java 2005-08-17 12:21:58 UTC (rev 878) @@ -105,41 +105,15 @@ private String pageContent; - /** - * <p> - * Does ... - * </p> - * - * - * @return - * @param pageName - * @param data - * @param pageAuthor - * @param pageDate - */ - public static WikiPage createPage(String pageName, Object data, - String pageAuthor, java.util.Date pageDate) { - // your code here - return null; - } - /** - * <p> - * Does ... - * </p> - * - * - * @param pageName - * @param pageAuthor - * @param path - */ public WikiPage(String pageName, Credentials pageAuthor, - String pageContent, int pageVersion, Date editDate) { + String pageContent, int pageVersion, Date editDate, MediaDataSource mediaDataSource) { name = pageName; lastAuthor = pageAuthor; this.pageContent = pageContent; lastVersion = pageVersion; this.editDate = editDate; + this.mediaDataSource = mediaDataSource; } /** @@ -162,7 +136,7 @@ * */ public void save() { - // your code here + mediaDataSource.savePage(this, null); } /** @@ -187,9 +161,8 @@ * @return * @param mds */ - public boolean setMediaDataSource(MediaDataSource mds) { - // your code here - return false; + public void setMediaDataSource(MediaDataSource mds) { + mediaDataSource = mds; } /** @@ -317,7 +290,7 @@ @Override public Object clone() throws CloneNotSupportedException { WikiPage clonedPage = new WikiPage(getName(), getLastAuthor(), - getPageContent(), getLastVersion(), getEditDate()); + getPageContent(), getLastVersion(), getEditDate(), mediaDataSource); return clonedPage; } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiPortlet.java 2005-08-17 12:21:58 UTC (rev 878) @@ -38,8 +38,9 @@ public void processAction(JBossActionRequest rReq, JBossActionResponse rResp) { - WikiContext wikiContext = new WikiContext(rReq.getUser(), wikiEngine - .getWikiType("HTML")); + // wikiContext is null - to get refernece to actual page + + WikiContext wikiContext = null; if (rReq.getParameter("action") != null) { rResp.setRenderParameter("action", rReq.getParameter("action")); @@ -71,7 +72,7 @@ if (edPage == null) { edPage = new WikiPage(rReq.getParameter("editedPage"), - credentials, "", 0, new Date()); + credentials, "", 0, new Date(), wikiEngine.getMediaDataSource()); } // set new content @@ -96,8 +97,9 @@ public void doView(JBossRenderRequest rReq, JBossRenderResponse rRes) throws PortletException, java.io.IOException { - WikiPage noSuchPage = new WikiPage("", new Credentials(""), "There is no such page. Click on EDIT to start it.", 0, null); - + WikiPage noSuchPage = new WikiPage("", new Credentials(""), + "There is no such page. Click on EDIT to start it.", 0, null, wikiEngine.getMediaDataSource()); + String page = "Wiki.jsp"; String wikiPage = defaultPage; @@ -122,7 +124,7 @@ // wikiPage = defaultPage; pageToShow = new WikiPage(wikiPage, new Credentials(rReq - .getUser().getUserName()), "", 0, new Date()); + .getUser().getUserName()), "", 0, new Date(), wikiEngine.getMediaDataSource()); // wikiEngine.getByName(wikiPage, wikiContext); } @@ -148,12 +150,11 @@ if (pageToShow == null) { try { - pageToShow = (WikiPage)noSuchPage.clone(); - } - catch (CloneNotSupportedException cnse){ + pageToShow = (WikiPage) noSuchPage.clone(); + } catch (CloneNotSupportedException cnse) { System.out.println(cnse); } - + pageToShow.setName(wikiPage); } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-17 12:21:58 UTC (rev 878) @@ -133,6 +133,7 @@ try { wikiType = (WikiType)Class.forName(s).newInstance(); + wikiType.setWikiEngine(wikiEngine); } catch(Exception e) { System.err.println("Cannot load WikiType class: "+e); @@ -140,7 +141,7 @@ if (wikiTypeName != null) { wikiType.setName(wikiTypeName); - wikiType.setWikiEngine(wikiEngine); + wikiTypeName = null; } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypes.xml 2005-08-17 12:21:58 UTC (rev 878) @@ -1,3 +1,9 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + <wikiTypes> <wikiType> <name>HTML</name> Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-17 12:21:58 UTC (rev 878) @@ -1,3 +1,12 @@ +/************************************************** + * * + * JBoss Labs: Creating Professional Open Source * + * * + * Distributable under LGPL license. * + * See terms of license at gnu.org. * + * * + *************************************************/ + package org.jboss.wiki.plugins; /** Modified: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Edit.jsp 2005-08-17 12:21:58 UTC (rev 878) @@ -1,3 +1,9 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + <%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %> <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %> <%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %> @@ -29,6 +35,7 @@ </textarea> <input type="hidden" name="editedPage" value="<%=wikiPage%>" /> +<input type="hidden" name="page" value="<%=wikiPage%>" /> <input type="submit" value="Save" name="editAction" /> <input type="submit" value="Preview" name="editAction" /> <input type="submit" value="Cancel" name="editAction" /> Modified: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp 2005-08-16 23:10:25 UTC (rev 877) +++ trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp 2005-08-17 12:21:58 UTC (rev 878) @@ -1,3 +1,9 @@ +<!-- + JBoss, the OpenSource J2EE webOS + Distributable under LGPL license. + See terms of license at gnu.org. + --> + <%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %> <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %> <%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %> @@ -60,7 +66,7 @@ -<a href="<%=actionURL%>">More info...</a> <a href="<%=actionURL%>">Attach file...</a> +<a href="<%=actionURL%>&action=Info&page=<%=wikiPage%>">More info...</a> <a href="<%=actionURL%>">Attach file...</a> </td> </tr> </table> |
From: <jbo...@li...> - 2005-08-16 23:10:28
|
Author: ral...@jb... Date: 2005-08-16 19:10:25 -0400 (Tue, 16 Aug 2005) New Revision: 877 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: too many got the out image Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:53:36 UTC (rev 876) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 23:10:25 UTC (rev 877) @@ -645,7 +645,7 @@ + "action" + page + pageName + "\">" + link.substring(0, border) - + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; + + "</a>"; } else result = "<u>"+link.substring(0, border)+"</u>"+"<a href=\"" |
From: <jbo...@li...> - 2005-08-16 22:53:38
|
Author: ral...@jb... Date: 2005-08-16 18:53:36 -0400 (Tue, 16 Aug 2005) New Revision: 876 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: yet forgot one more case Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:31:02 UTC (rev 875) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:53:36 UTC (rev 876) @@ -634,7 +634,7 @@ // [...|externallink] - opens in new window { result = "<a href=\"" + link.substring(border + 1) + "\"target=\"_blank\">" - + link.substring(0, border) + "</a>"; + + link.substring(0, border) + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; } //case [...|wikipagelink] else { |
From: <jbo...@li...> - 2005-08-16 22:31:11
|
Author: ral...@jb... Date: 2005-08-16 18:31:02 -0400 (Tue, 16 Aug 2005) New Revision: 875 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: ops, forgot the [...|...] case Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:26:18 UTC (rev 874) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:31:02 UTC (rev 875) @@ -644,7 +644,8 @@ result = "<a href=\"" + portalHome + wikiHome + actionType + "action" + page + pageName + "\">" - + link.substring(0, border) + "</a>"; + + link.substring(0, border) + + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; } else result = "<u>"+link.substring(0, border)+"</u>"+"<a href=\"" @@ -658,7 +659,8 @@ { if (isExternalLink(link)) { - result = "<a href=\"" + link + "\"target=\"_blank\">" + link + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; + result = "<a href=\"" + link + "\"target=\"_blank\">" + link + + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; } else { pageName = cleanLink(link); // System.out.println("********pageName is "+pageName); |
From: <jbo...@li...> - 2005-08-16 22:26:23
|
Author: ral...@jb... Date: 2005-08-16 18:26:18 -0400 (Tue, 16 Aug 2005) New Revision: 874 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: added image to external links Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 21:42:31 UTC (rev 873) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 22:26:18 UTC (rev 874) @@ -658,10 +658,10 @@ { if (isExternalLink(link)) { - result = "<a href=\"" + link + "\"target=\"_blank\">" + link + "</a>"; + result = "<a href=\"" + link + "\"target=\"_blank\">" + link + "</a><img src=\"/file-access/default/members/jbosswiki/images/out.png\"/>"; } else { pageName = cleanLink(link); - System.out.println("********pageName is "+pageName); + // System.out.println("********pageName is "+pageName); if(wikiEngine.pageExists(pageName)) { result = "<a href=\"" + portalHome + wikiHome + actionType + "action" + page + cleanLink(link) + "\">" + link @@ -749,11 +749,12 @@ return clean.toString(); } + + //not sure what it is supposed to do but neccessary to compile + public void next() + {} public WikiPage process(final WikiPage wikiPage) { - - System.out.println("wikiEngine: "+wikiEngine); - WikiPage newPage = null; try { @@ -775,11 +776,8 @@ return newPage; } - public void next() { - // TODO Auto-generated method stub + - } - // public static void main(String[] args) { // String wikitext = "__Forge Portal__FORGE USER HOW TO:\\\\\n" // + "[Add a new project and modify its |
From: <jbo...@li...> - 2005-08-16 21:42:33
|
Author: soh...@jb... Date: 2005-08-16 17:42:31 -0400 (Tue, 16 Aug 2005) New Revision: 873 Modified: trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java Log: fixed a bug that prevents a local copy of Blogs being created from SVN Modified: trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java =================================================================== --- trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java 2005-08-16 21:16:47 UTC (rev 872) +++ trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java 2005-08-16 21:42:31 UTC (rev 873) @@ -111,6 +111,15 @@ if (!blogEntriesSet.contains(repoEntries[j])) { // New blog entry, creating. try { + + //make sure the path where this blogFile is being created + //exists before creating the file + if(blogFile.getParentFile()!=null && !blogFile.getParentFile().exists()) + { + //creates the complete path where this blogFile needs to be stored + blogFile.getParentFile().mkdirs(); + } + blogFile.createNewFile(); // Creating the meta file |
From: <jbo...@li...> - 2005-08-16 21:16:51
|
Author: szimano Date: 2005-08-16 17:16:47 -0400 (Tue, 16 Aug 2005) New Revision: 872 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: wikiEnigne plugin fix Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-16 20:47:56 UTC (rev 871) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/WikiTypeHandler.java 2005-08-16 21:16:47 UTC (rev 872) @@ -57,8 +57,6 @@ } else if ((qName.equals("wikiType")) && (wikiType != null)) { // add WikiType - wikiType.setWikiEngine(wikiEngine); - wikiEngine.addWikiType(wikiType.getName(), wikiType); wikiType = null; wikiTypeName = null; @@ -142,6 +140,7 @@ if (wikiTypeName != null) { wikiType.setName(wikiTypeName); + wikiType.setWikiEngine(wikiEngine); wikiTypeName = null; } Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 20:47:56 UTC (rev 871) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 21:16:47 UTC (rev 872) @@ -751,6 +751,9 @@ } public WikiPage process(final WikiPage wikiPage) { + + System.out.println("wikiEngine: "+wikiEngine); + WikiPage newPage = null; try { |
From: <jbo...@li...> - 2005-08-16 20:48:03
|
Author: ral...@jb... Date: 2005-08-16 16:47:56 -0400 (Tue, 16 Aug 2005) New Revision: 871 Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java Log: corrected types of links Modified: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 17:24:26 UTC (rev 870) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/HTMLTranslator.java 2005-08-16 20:47:56 UTC (rev 871) @@ -1,7 +1,7 @@ package org.jboss.wiki.plugins; /** - * @author rali + * @author <a href="mailto:ral...@jb...">Rali Genova </a> * * */ @@ -41,6 +41,7 @@ public String[] notextlinks; private String[] mediaFormats = { "*.png", "*.jpeg", "*.gif" }; + private boolean m_allowHTML = false; private boolean m_isbold = false; @@ -68,7 +69,7 @@ private PushbackReader m_in; public HTMLTranslator() { - + } /** @@ -119,58 +120,48 @@ // Check if any lists need closing down. // - if( newLine && ch != '*' && ch != ' ' && m_listlevel > 0 ) - { + if (newLine && ch != '*' && ch != ' ' && m_listlevel > 0) { buf.append("</LI>\n"); - for( ; m_listlevel > 0; m_listlevel-- ) - { + for (; m_listlevel > 0; m_listlevel--) { buf.append("</UL>\n"); } } - if( newLine && ch != '#' && ch != ' ' && m_numlistlevel > 0 ) - { + if (newLine && ch != '#' && ch != ' ' && m_numlistlevel > 0) { buf.append("</LI>\n"); - for( ; m_numlistlevel > 0; m_numlistlevel-- ) - { + for (; m_numlistlevel > 0; m_numlistlevel--) { buf.append("</OL>\n"); } } - if( newLine && ch != '|' && m_istable ) - { + if (newLine && ch != '|' && m_istable) { buf.append("</TABLE>\n"); m_istable = false; m_closeTag = null; } - switch (ch) { case '\r': // DOS linefeeds we forget s = null; break; - case '\n': + case '\n': // // Close things like headings, etc. // - if( m_closeTag != null ) - { - buf.append( m_closeTag ); + if (m_closeTag != null) { + buf.append(m_closeTag); m_closeTag = null; } m_isdefinition = false; - if( newLine ) - { + if (newLine) { // Paragraph change. buf.append("<P>\n"); - } - else - { + } else { buf.append("\n"); newLine = true; } @@ -180,108 +171,91 @@ s = handleBackslash(); break; - case '_': + case '_': s = handleUnderscore(); break; - - case '\'': + + case '\'': s = handleApostrophe(); break; - case '{': + case '{': s = handleOpenbrace(); break; - case '}': + case '}': s = handleClosebrace(); break; - case '-': + case '-': s = handleDash(); break; - case '!': - if( newLine ) - { + case '!': + if (newLine) { s = handleHeading(); - } - else - { + } else { s = "!"; } break; - case ';': - if( newLine ) - { + case ';': + if (newLine) { s = handleDefinitionList(); - } - else - { + } else { s = ";"; } break; - case ':': - if( m_isdefinition ) - { + case ':': + if (m_isdefinition) { s = "</DT><DD>"; m_isdefinition = false; - } - else - { + } else { s = ":"; } break; - case '[': + case '[': s = handleOpenbracket(); break; - case '*': - if( newLine ) - { + case '*': + if (newLine) { s = handleUnorderedList(); - } - else - { + } else { s = "*"; } break; - case '#': - if( newLine ) - { + case '#': + if (newLine) { s = handleOrderedList(); - } - else - { + } else { s = "#"; } break; - case '|': - s = handleBar( newLine ); + case '|': + s = handleBar(newLine); break; - case '<': + case '<': s = m_allowHTML ? "<" : "<"; break; - case '>': + case '>': s = m_allowHTML ? ">" : ">"; break; - case '\"': + case '\"': s = m_allowHTML ? "\"" : """; break; - /* - case '&': - s = "&"; - break; - */ - case '~': + /* + * case '&': s = "&"; break; + */ + case '~': s = handleTilde(); break; case -1: @@ -295,14 +269,14 @@ } if (s != null) { buf.append(s); - + newLine = false; } } translatedContent = buf.toString(); - // translatedContent = translatedContent.replace("\n", "<BR>\n"); - // System.out.println("final string : "+ translatedContent); + // translatedContent = translatedContent.replace("\n", "<BR>\n"); + // System.out.println("final string : "+ translatedContent); return translatedContent; } @@ -316,25 +290,22 @@ return patterns; } - + /** - * Generic escape of next character or entity. + * Generic escape of next character or entity. */ - private String handleTilde() - throws IOException - { + private String handleTilde() throws IOException { int ch = nextToken(); - if( ch == '|' ) + if (ch == '|') return "|"; - if( Character.isUpperCase( (char) ch ) ) - { - return String.valueOf( (char)ch ); + if (Character.isUpperCase((char) ch)) { + return String.valueOf((char) ch); } // No escape. - pushBack( ch ); + pushBack(ch); return "~"; } @@ -484,54 +455,43 @@ return count; } - - private String handleBar( boolean newLine ) - throws IOException -{ - StringBuffer sb = new StringBuffer(); - if( !m_istable && !newLine ) - { - return "|"; - } + private String handleBar(boolean newLine) throws IOException { + StringBuffer sb = new StringBuffer(); - if( newLine ) - { - if( !m_istable ) - { - sb.append("<TABLE CLASS=\"wikitable\" BORDER=\"1\">\n"); - m_istable = true; + if (!m_istable && !newLine) { + return "|"; } - sb.append("<TR>"); - m_closeTag = "</TD></TR>"; - } - - int ch = nextToken(); + if (newLine) { + if (!m_istable) { + sb.append("<TABLE CLASS=\"wikitable\" BORDER=\"1\">\n"); + m_istable = true; + } - if( ch == '|' ) - { - if( !newLine ) - { - sb.append("</TH>"); + sb.append("<TR>"); + m_closeTag = "</TD></TR>"; } - sb.append("<TH>"); - m_closeTag = "</TH></TR>"; - } - else - { - if( !newLine ) - { - sb.append("</TD>"); - } - sb.append("<TD>"); - pushBack( ch ); - } - return sb.toString(); -} + int ch = nextToken(); + if (ch == '|') { + if (!newLine) { + sb.append("</TH>"); + } + sb.append("<TH>"); + m_closeTag = "</TH></TR>"; + } else { + if (!newLine) { + sb.append("</TD>"); + } + sb.append("<TD>"); + pushBack(ch); + } + return sb.toString(); + } + private String handleDefinitionList() throws IOException { if (!m_isdefinition) { m_isdefinition = true; @@ -665,37 +625,57 @@ * @param string * @return */ - private String handleHyperlinks(String link) { +private String handleHyperlinks(String link) { String result = ""; + String pageName = ""; int border = link.indexOf('|'); if (border != -1) { if (isExternalLink(link.substring(border + 1)))//case - // [...|externallink] + // [...|externallink] - opens in new window { - result = "<a href=\"" + link.substring(border + 1) + "\">" + result = "<a href=\"" + link.substring(border + 1) + "\"target=\"_blank\">" + link.substring(0, border) + "</a>"; - } else //case [...|wikipagelink] + } //case [...|wikipagelink] + else { + pageName = cleanLink(link.substring(border + 1)); + if(wikiEngine.pageExists(pageName)) + { result = "<a href=\"" + portalHome + wikiHome + actionType + "action" + page - + cleanLink(link.substring(border + 1)) + "\">" + + pageName + "\">" + link.substring(0, border) + "</a>"; + } + else + result = "<u>"+link.substring(0, border)+"</u>"+"<a href=\"" + + portalHome + wikiHome + actionType + + "action" + page + + pageName + "\">" + + "?" + "</a>"; } } else //[...] case { + if (isExternalLink(link)) { - result = "<a href=\"" + link + "\">" + link + "</a>"; + result = "<a href=\"" + link + "\"target=\"_blank\">" + link + "</a>"; } else { - result = "<a href=\"" + portalHome + wikiHome + actionType + pageName = cleanLink(link); + System.out.println("********pageName is "+pageName); + if(wikiEngine.pageExists(pageName)) + { result = "<a href=\"" + portalHome + wikiHome + actionType + "action" + page + cleanLink(link) + "\">" + link + "</a>"; + } + else + result = "<u>"+pageName+"</u>"+"<a href=\"" + portalHome + wikiHome + actionType + + "action" + page + pageName + "\">" + "?" + + "</a>"; } } return result; } - /** * Figures out if a link is an off-site link. This recognizes the most * common protocols by checking how it starts. @@ -706,23 +686,6 @@ || link.startsWith("news:") || link.startsWith("file:"); } - public String prepareText(String text) { - int index; - - { - index = text.indexOf('$', 0); - } - System.out.println("index of $ " + index); - - if (index != -1) - return text.substring(0, index - 1) + '\\' + "$" - + prepareText(text.substring(index + 1)); - else { - - return text; - } - } - private int nextToken() throws IOException { return m_in.read(); } |
From: <jbo...@li...> - 2005-08-16 17:24:31
|
Author: adamw Date: 2005-08-16 13:24:26 -0400 (Tue, 16 Aug 2005) New Revision: 870 Modified: trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp Log: Release notes text source Modified: trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp =================================================================== --- trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-16 16:48:11 UTC (rev 869) +++ trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-16 17:24:26 UTC (rev 870) @@ -119,6 +119,33 @@ } } %> + + <hr /> + <h1>Text source</h1> +<% + for (iter = issuesMap.keySet().iterator(); iter.hasNext();) { + String typeId = (String) iter.next(); + Set currIssues = (Set) issuesMap.get(typeId); + if (currIssues.size() > 0) { +%> + <br /> + ** <%= issuesNamesMap.get(typeId) %> + <br /> + + <% + for (Iterator iter2 = currIssues.iterator(); iter2.hasNext();) { + GenericValue issue = (GenericValue) iter2.next(); + %> + * + [ <%= issue.getString("key") %> ] + <%= issue.getString("summary") %> + <br /> + <% + } + } + } +%> + </webwork:if> <!-- JIRA PART --> |
From: <jbo...@li...> - 2005-08-16 16:48:55
|
Author: ral...@jb... Date: 2005-08-16 12:48:11 -0400 (Tue, 16 Aug 2005) New Revision: 869 Removed: trunk/forge/portal-extensions/forge-wiki/data/Readwritelockaspect.txt Log: older version or ReadWriteLockAspect Deleted: trunk/forge/portal-extensions/forge-wiki/data/Readwritelockaspect.txt =================================================================== --- trunk/forge/portal-extensions/forge-wiki/data/Readwritelockaspect.txt 2005-08-16 16:35:32 UTC (rev 868) +++ trunk/forge/portal-extensions/forge-wiki/data/Readwritelockaspect.txt 2005-08-16 16:48:11 UTC (rev 869) @@ -1,105 +0,0 @@ -!!! Read/Write Lock Aspect -available within our CVS - -!!Goal -This Aspect is an example of an implementation of the Read/Write Lock pattern. -It allows u to define at the method level a read/write lock using -either annotation or an XML file - -The implementation is based on the concurrent package from Doug Lea. - -!!Problem - -!Let's see a simple example defining the problem to solve. -{{{ -public class Account -{ -private float balance; - -public Account(float balance) -{ - this.balance=balance; -} - -public void debit(float amount) -{ -// Implementation to debit the account balance - ... -} - -public void credit(float amount) -{ -// Implementation to credit the account balance -... -} - -public String toString() -{ -// Implementation to format the account description -... -} -} -}}} - -The above class required to support concurrency invocation of the method debit,credit -and toString method. - -!!Traditional Implementation. -The traditional solution without AOP would be to implement the same code within the debit -and credit account to acquire/release a write lock.A read lock would be required for the toString method. - -!!Solution with Read/Write Lock Aspect - -The concurrency code is refactored within the Read/Write Lock Aspect.So the new Aspect can be applied -against any method using annotation or an XML file. - -!Here the new code of the Account class with annotation - -{{{ -public class Account -{ -private float balance; - -public Account(float balance) -this.balance=balance; -} - -/** -* @@org.jboss.aop.patterns.readwritelock.writeLockOperation -*/ -public void debit(float amount) -{ -// Implementation to debit the account balance -... -} - -/** -* @@org.jboss.aop.patterns.readwritelock.writeLockOperation -*/ -public void credit(float amount) -{ - // Implementation to credit the account balance -... -} - -/** -* @@org.jboss.aop.patterns.readwritelock.readLockOperation -*/ -public String toString() -{ -// Implementation to format the account description -... -} -} -}}} - - -!!Configuration - -The deployment description of the Read/Write Lock Aspect -*[JBOSS-AOP.xml|readwritelockjboss-aop] - - -!!Author - -*Claude Hussenet (mailto:chu...@ya...) |
From: <jbo...@li...> - 2005-08-16 16:35:44
|
Author: adamw Date: 2005-08-16 12:35:32 -0400 (Tue, 16 Aug 2005) New Revision: 868 Modified: trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp Log: Release notes view Modified: trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp =================================================================== --- trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp 2005-08-16 16:15:50 UTC (rev 867) +++ trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/includes/navigator/table/header.jsp 2005-08-16 16:35:32 UTC (rev 868) @@ -39,7 +39,7 @@ | <a href="<webwork:url><webwork:param name="'view'" value="''" /><webwork:param name="'mode'" value="'hide'" /><webwork:param name="'start'" value="'0'" /><webwork:param name="'tempMax'" value="'1000'" /><webwork:param name="'decorator'" value="'printable'" /></webwork:url>"><webwork:text name="'navigator.results.currentview.printable'"/></a> | <a href="<%= request.getContextPath() %>/secure/IssueNavigator.jspa?view=rss&<webwork:property value="SRQueryString" />&tempMax=25&reset=true&decorator=none"><webwork:text name="'navigator.results.currentview.xml'"/></a> <webwork:if test="'rnotes' != $view"> - | <a href="<%= request.getContextPath() %>/secure/IssueNavigator.jspa?view=rnotes"> + | <a href="<%= request.getContextPath() %>/secure/IssueNavigator.jspa?view=rnotes&tempMax=10000"> <webwork:text name="Release Notes"/></a> </webwork:if> <webwork:else> Modified: trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp =================================================================== --- trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-16 16:15:50 UTC (rev 867) +++ trunk/forge/jira-extensions/jira-file-modifications/jira-3.2/edit-webapp/secure/views/navigator/rnotes.jsp 2005-08-16 16:35:32 UTC (rev 868) @@ -7,7 +7,8 @@ com.atlassian.jira.web.action.issue.IssueNavigator, com.atlassian.jira.web.component.IssueTableWebComponent, com.atlassian.jira.issue.search.SearchResults, - com.atlassian.jira.config.ConstantsManager"%> + com.atlassian.jira.config.ConstantsManager, + com.atlassian.jira.web.bean.PagerFilter"%> <%@ taglib uri="webwork" prefix="webwork" %> <%@ taglib uri="sitemesh-page" prefix="page" %> @@ -68,8 +69,8 @@ <% IssueNavigator issueNavigator = (IssueNavigator) request.getAttribute("issueNavigator"); SearchResults searchResults = issueNavigator.getSearchResults(); - Collection issues = searchResults.getIssues(); - + List issues = searchResults.getIssues(); + Iterator iter; /* Map: issue type id -> (Set of issue) */ Map issuesMap = new TreeMap(); |