JBoss Tools SVN: r7118 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-03-25 12:32:28 -0400 (Tue, 25 Mar 2008)
New Revision: 7118
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java
Log:
JBIDE-1949
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java 2008-03-25 16:26:40 UTC (rev 7117)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java 2008-03-25 16:32:28 UTC (rev 7118)
@@ -158,4 +158,12 @@
return false;
}
+ public void save() {
+ if(attributes != null) attributes.store();
+ }
+
+ public void load() {
+ if(attributes != null) attributes.load();
+ }
+
}
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java 2008-03-25 16:26:40 UTC (rev 7117)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java 2008-03-25 16:32:28 UTC (rev 7118)
@@ -17,11 +17,12 @@
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.meta.action.XEntityData;
+import org.jboss.tools.common.meta.action.impl.SpecialWizardControlListener;
import org.jboss.tools.common.meta.action.impl.SpecialWizardSupport;
import org.jboss.tools.common.meta.action.impl.WizardDataValidator;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
-public class DefaultStandardWizard extends Wizard {
+public class DefaultStandardWizard extends Wizard implements SpecialWizardControlListener {
protected SpecialWizardSupport support = null;
protected DefaultStandardStep[] steps = new DefaultStandardStep[0];
Composite pageContainer;
@@ -29,6 +30,7 @@
public void setSupport(SpecialWizardSupport support) {
this.support = support;
+ support.setControlListener(this);
}
public boolean performFinish() {
@@ -123,5 +125,17 @@
wizardStep.isNextEnabled = isNextEnabled;
getContainer().updateButtons();
}
+
+ public void action(String name) {
+ try {
+ DefaultStandardStep step = steps[support.getStepId()];
+ step.save();
+ support.action(name);
+
+ } catch (Exception e) {
+ ModelUIPlugin.getPluginLog().logError(e);
+ }
+
+ }
}
18 years
JBoss Tools SVN: r7117 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common: meta/constraint/impl and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-03-25 12:26:40 -0400 (Tue, 25 Mar 2008)
New Revision: 7117
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintInt.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintListInt.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintProperties.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeEditorImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelEntityImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/files/handlers/TargetHolder.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/handlers/RunAntHandler.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/icons/impl/XModelObjectIcon.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/impl/XStudioDataLoaderImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/extension/ExtensionPointUtil.java
Log:
JBIDE-893
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -225,12 +225,7 @@
public Object createInstance() {
if(name == null || name.trim().length() == 0) return null;
validate();
- try {
- return ModelFeatureFactory.getInstance().createFeatureInstance(name);
- } catch (Exception e) {
- name = null;
- return null;
- }
+ return ModelFeatureFactory.getInstance().createFeatureInstance(name);
}
private void validate() {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintInt.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintInt.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintInt.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -32,7 +32,7 @@
try {
int i = Integer.parseInt(value);
return (i >= min && i <= max);
- } catch (Exception e) {
+ } catch (NumberFormatException e) {
//ignore
return false;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintListInt.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintListInt.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintListInt.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -18,7 +18,7 @@
if(values.contains(value)) return true;
try {
return (Integer.parseInt(value) >= 0);
- } catch (Exception e) {
+ } catch (NumberFormatException e) {
//ignore
return false;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintProperties.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintProperties.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeConstraintProperties.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -40,7 +40,7 @@
if(v == null || v.length() == 0) return def;
try {
return Integer.parseInt(v);
- } catch (Exception e) {
+ } catch (NumberFormatException e) {
//ignore
return def;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeEditorImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeEditorImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/constraint/impl/XAttributeEditorImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -37,22 +37,14 @@
}
private void findViewerName() {
- try {
- viewer = viewer.substring(1, viewer.length() - 1);
- viewer = getMetaModel().getMapping("AttributeEditor").getValue(viewer);
- } catch (Exception e) {
- //ignore
- viewer = null;
- }
+ if(viewer == null || viewer.length() < 2) return;
+ viewer = viewer.substring(1, viewer.length() - 1);
+ viewer = getMetaModel().getMapping("AttributeEditor").getValue(viewer);
}
protected void setDefaultClassName() {
- try {
- editor = getMetaModel().getMapping("AttributeEditor").getValue(getName());
- } catch (Exception e) {
- //ignore
- }
+ editor = getMetaModel().getMapping("AttributeEditor").getValue(getName());
}
public void load(Element element) {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelEntityImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelEntityImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelEntityImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -252,13 +252,9 @@
}
public void setAdoptManager(String adoptclass) {
- try {
- if(adoptclass != null && adoptclass.length() > 0) {
- adopt = new XAdoptWrapper(adoptclass, this);
- }
- } catch (Exception e) {
- ModelPlugin.getPluginLog().logError("XModelEntityImpl:setAdoptManager:" + e.getMessage());
- }
+ if(adoptclass != null && adoptclass.length() > 0) {
+ adopt = new XAdoptWrapper(adoptclass, this);
+ }
}
void validateChildren() {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -45,8 +45,8 @@
}
private XModelMetaDataImpl() {
+ long t = System.currentTimeMillis();
try {
- long t = System.currentTimeMillis();
XMetaDataLoader.loadMetaModel(this);
instance = this;
@@ -60,14 +60,14 @@
XModelEntity[] es = this.entities.values().toArray(new XModelEntity[0]);
for (int i = 0; i < es.length; i++) ((XModelEntityImpl)es[i]).validate();
- if(reportLoadingTime) {
- long dt = - t + (t = System.currentTimeMillis());
- ModelPlugin.getPluginLog().logInfo("Meta model loaded in " + dt + " ms");
- }
} catch (Exception e) {
ModelPlugin.getPluginLog().logError(e);
throw new RuntimeException("Cannot create metamodel: " + e.getMessage());
}
+ if(reportLoadingTime) {
+ long dt = - t + (t = System.currentTimeMillis());
+ ModelPlugin.getPluginLog().logInfo("Meta model loaded in " + dt + " ms");
+ }
}
public XIconList getIconList() {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/files/handlers/TargetHolder.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/files/handlers/TargetHolder.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/files/handlers/TargetHolder.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -1,6 +1,7 @@
package org.jboss.tools.common.model.files.handlers;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.QualifiedName;
import org.jboss.tools.common.meta.action.XAction;
import org.jboss.tools.common.model.XModelObject;
@@ -53,7 +54,7 @@
QualifiedName n = new QualifiedName("", action.getName() + "_lastPath");
try {
folder.getProject().setPersistentProperty(n, path);
- } catch (Exception e) {
+ } catch (CoreException e) {
ModelPlugin.getPluginLog().logError("CreateFileSuppport:TargetHolder:saveLastPath:" + e.getMessage());
}
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/handlers/RunAntHandler.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/handlers/RunAntHandler.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/handlers/RunAntHandler.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -20,6 +20,7 @@
import org.jboss.tools.common.meta.action.impl.AbstractHandler;
import org.jboss.tools.common.model.XModelException;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.util.extension.ExtensionPointUtil;
/**
@@ -40,8 +41,12 @@
Platform.getBundle(pluginId);
try {
return (IObjectActionDelegate)ExtensionPointUtil.findClassByElementId("org.eclipse.ui.popupMenus", actionId);
- } catch (Exception ex) {
- ///XStudioPlugin.log(ex);
+ } catch (IllegalArgumentException ex) {
+ //ignore
+ } catch (CoreException ex) {
+ //ignore
+ } catch (ClassCastException ex) {
+ ModelPlugin.getPluginLog().logError(ex);
}
return null;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/icons/impl/XModelObjectIcon.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/icons/impl/XModelObjectIcon.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/icons/impl/XModelObjectIcon.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -76,7 +76,7 @@
private int getIconHash(String[] types) {
int res = 0;
for (int i = 0; i < types.length; i++) {
- ImageComponent component = (ImageComponent)components.get(types[i]);
+ ImageComponent component = components.get(types[i]);
if(component != null) res += component.getHash(object);
}
return res;
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -374,16 +374,12 @@
}
////ProjectWatcher
- private void loadWatcher() {
- try {
- if(getProperties().get("project") == null) return;
- XObjectLoader l = (XObjectLoader)ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.common.model.project.WatcherLoader");
- XModelObject fs = getByPath("FileSystems");
- if(l != null && fs != null) l.load(fs);
- } catch (Exception t) {
- ModelPlugin.getPluginLog().logError("XModelImpl:loadWatcher:" + t.getMessage());
- }
- }
+ private void loadWatcher() {
+ if(getProperties().get("project") == null) return;
+ XObjectLoader l = (XObjectLoader)ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.common.model.project.WatcherLoader");
+ XModelObject fs = getByPath("FileSystems");
+ if(l != null && fs != null) l.load(fs);
+ }
public boolean isDummy() {
return "RootDummy".equals(getRoot().getModelEntity().getName());
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -385,7 +385,7 @@
public String getMainIconName() {
try {
return getModelEntity().getRenderer().getIconInfo("main");
- } catch (Exception e) {
+ } catch (NullPointerException e) {
return "main.closedbox";
}
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -12,6 +12,7 @@
import java.util.*;
import org.eclipse.core.resources.*;
+import org.eclipse.core.runtime.CoreException;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.impl.XModelObjectImpl;
@@ -45,7 +46,7 @@
IMarker[] ms = new IMarker[0];
try {
ms = ModelPlugin.getWorkspace().getRoot().findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
- } catch (Exception e) {
+ } catch (CoreException e) {
ModelPlugin.getPluginLog().logError(e);
}
reload(ms, errorObjects, IMarker.SEVERITY_ERROR);
@@ -68,9 +69,9 @@
if(attr != null && attr.length() > 0) ((XModelObjectImpl)o).addErrorAttributeDirty(attr);
}
synchronized(objects) {
- Iterator it = objects.iterator();
+ Iterator<XModelObject> it = objects.iterator();
while(it.hasNext()) {
- XModelObject o = (XModelObject)it.next();
+ XModelObject o = it.next();
if(!es.contains(o)) {
if(o.getErrorState() == severity) {
o.setErrorState(0);
@@ -124,7 +125,7 @@
IMarker[] ms = null;
try {
ms = file.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
- } catch (Exception e) {
+ } catch (CoreException e) {
//ignore no markers - no problem
return null;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/impl/XStudioDataLoaderImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/impl/XStudioDataLoaderImpl.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/impl/XStudioDataLoaderImpl.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -11,6 +11,7 @@
package org.jboss.tools.common.model.options.impl;
import java.io.File;
+import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
@@ -104,7 +105,7 @@
if(f.exists() && (!f.isFile() || !f.canWrite())) return;
try {
if(!f.exists()) f.createNewFile();
- } catch (Exception e1) {
+ } catch (IOException e1) {
ModelPlugin.getPluginLog().logError("XStudioDataLoaderImpl:save:Cannot create file:" + e1.getMessage());
return;
}
@@ -116,7 +117,7 @@
check(xs.getChildNodes(), names);
try {
XModelObjectLoaderUtil.serialize(xs, f.getAbsolutePath());
- } catch (Exception e2) {
+ } catch (IOException e2) {
ModelPlugin.getPluginLog().logError(e2);
}
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/extension/ExtensionPointUtil.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/extension/ExtensionPointUtil.java 2008-03-25 16:14:01 UTC (rev 7116)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/extension/ExtensionPointUtil.java 2008-03-25 16:26:40 UTC (rev 7117)
@@ -14,12 +14,12 @@
public class ExtensionPointUtil {
- public static Object findClassByElementId(String pointId, String id) throws Exception {
+ public static Object findClassByElementId(String pointId, String id) throws CoreException, IllegalArgumentException {
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(pointId);
return findClassByElementId(point, id);
}
- public static Object findClassByElementId(IExtensionPoint point, String id) throws Exception {
+ public static Object findClassByElementId(IExtensionPoint point, String id) throws CoreException, IllegalArgumentException {
IConfigurationElement element = getElementById(point, id);
if(element == null)
throw new IllegalArgumentException("Configuration element with id=" + id + " is not found");
18 years
JBoss Tools SVN: r7116 - in trunk/seam: plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-03-25 12:14:01 -0400 (Tue, 25 Mar 2008)
New Revision: 7116
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveChange.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveParticipant.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamMoveParticipant.java
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/testwebroot/
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/webroot/
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/webroot/WebContent/
Removed:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/WebContent/
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/.settings/org.jboss.tools.seam.core.prefs
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1919 Added move folder refactoring.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2008-03-25 16:13:59 UTC (rev 7115)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2008-03-25 16:14:01 UTC (rev 7116)
@@ -291,7 +291,6 @@
<extension
point="org.eclipse.ltk.core.refactoring.renameParticipants">
-
<renameParticipant
class="org.jboss.tools.seam.internal.core.refactoring.SeamProjectRenameParticipant"
id="org.jboss.tools.seam.internal.core.refactoring.SeamProjectRenameParticipant"
@@ -328,7 +327,21 @@
</with>
</enablement>
</renameParticipant>
+ </extension>
+ <extension
+ point="org.eclipse.ltk.core.refactoring.moveParticipants">
+ <moveParticipant
+ class="org.jboss.tools.seam.internal.core.refactoring.SeamFolderMoveParticipant"
+ id="org.jboss.tools.seam.internal.core.refactoring.SeamFolderMoveParticipant"
+ name="name">
+ <enablement>
+ <with variable="element">
+ <or>
+ <instanceof value="org.eclipse.core.resources.IFolder"/>
+ </or>
+ </with>
+ </enablement>
+ </moveParticipant>
</extension>
-
</plugin>
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveChange.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveChange.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveChange.java 2008-03-25 16:14:01 UTC (rev 7116)
@@ -0,0 +1,103 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.internal.core.refactoring;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.osgi.service.prefs.BackingStoreException;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class SeamFolderMoveChange extends SeamProjectChange {
+
+ private IResource oldResource;
+ private IContainer destination;
+ private List<String> relevantProperties = new ArrayList<String>();
+
+ /**
+ * @param project
+ */
+ public SeamFolderMoveChange(IProject project, IResource oldResource, IContainer destination) {
+ super(project);
+ this.oldResource = oldResource;
+ this.destination = destination;
+
+ if(oldResource.getProject().equals(destination.getProject())) {
+ IEclipsePreferences ps = getSeamPreferences();
+ for (int i = 0; i < FOLDER_PROPERTIES.length; i++) {
+ String propertyValue = ps.get(FOLDER_PROPERTIES[i], null);
+ if(propertyValue==null) {
+ continue;
+ }
+ String oldPathString = oldResource.getFullPath().toString();
+ if(propertyValue.equals(oldPathString) ||
+ propertyValue.startsWith(oldPathString + "/")) {
+ relevantProperties.add(FOLDER_PROPERTIES[i]);
+ }
+ }
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.refactoring.SeamProjectChange#isRelevant()
+ */
+ @Override
+ public boolean isRelevant() {
+ return relevantProperties.size()>0;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#perform(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ @Override
+ public Change perform(IProgressMonitor pm) throws CoreException {
+ if(!isRelevant()) {
+ return null;
+ }
+ try {
+ pm.beginTask(getName(), 1);
+
+ IEclipsePreferences ps = getSeamPreferences();
+ for (String propertyName: relevantProperties) {
+ String propertyValue = ps.get(propertyName, "");
+ String oldPathString = oldResource.getFullPath().toString();
+ String newPath = destination.getFullPath().append(oldResource.getName()).toString();
+ if(propertyValue.equals(oldPathString)) {
+ ps.put(propertyName, newPath);
+ } else if(propertyValue.startsWith(oldPathString + "/")) {
+ newPath = newPath + propertyValue.substring(oldPathString.length());
+ ps.put(propertyName, newPath);
+ }
+ }
+ try {
+ ps.flush();
+ } catch (BackingStoreException e) {
+ SeamCorePlugin.getPluginLog().logError(e);
+ }
+ IResource newResource = destination.getFile(new Path(oldResource.getName()));
+ IContainer oldContainer = oldResource.getParent();
+ return new SeamFolderMoveChange(project, newResource, oldContainer);
+ } finally {
+ pm.done();
+ }
+ }
+}
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveParticipant.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveParticipant.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamFolderMoveParticipant.java 2008-03-25 16:14:01 UTC (rev 7116)
@@ -0,0 +1,59 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.internal.core.refactoring;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class SeamFolderMoveParticipant extends SeamMoveParticipant {
+
+ private IResource oldResource;
+
+ public static final String PARTICIPANT_NAME="seam-FolderMoveParticipant";
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
+ */
+ @Override
+ public String getName() {
+ return PARTICIPANT_NAME;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
+ */
+ @Override
+ protected boolean initialize(Object element) {
+ if(!(element instanceof IFolder)) {
+ return false;
+ }
+ oldResource = (IResource)element;
+
+ return true;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.refactoring.SeamMoveParticipant#createChange(org.eclipse.core.resources.IProject, java.lang.Object)
+ */
+ @Override
+ protected SeamProjectChange createChange(IProject project, Object destination) {
+ if(destination instanceof IContainer) {
+ IContainer container = (IContainer)destination;
+ return new SeamFolderMoveChange(project, oldResource, container);
+ }
+ return null;
+ }
+}
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamMoveParticipant.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamMoveParticipant.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamMoveParticipant.java 2008-03-25 16:14:01 UTC (rev 7116)
@@ -0,0 +1,61 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.internal.core.refactoring;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.CompositeChange;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.MoveParticipant;
+
+/**
+ * @author Alexey Kazakov
+ */
+abstract public class SeamMoveParticipant extends MoveParticipant {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
+ */
+ @Override
+ public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ @Override
+ public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
+ if (!pm.isCanceled()) {
+ Object destination = getArguments().getDestination();
+ if(destination == null) {
+ return null;
+ }
+ CompositeChange change = new CompositeChange("Update Seam Projects");
+ IProject[] ps = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ for (int i = 0; i < ps.length; i++) {
+ SeamProjectChange c = createChange(ps[i], destination);
+ if(c.isRelevant()) change.add(c);
+ }
+ if(change.getChildren().length > 0) {
+ return change;
+ }
+ }
+ return null;
+ }
+
+ abstract protected SeamProjectChange createChange(IProject project, Object destination);
+}
\ No newline at end of file
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/.settings/org.jboss.tools.seam.core.prefs
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/.settings/org.jboss.tools.seam.core.prefs 2008-03-25 16:13:59 UTC (rev 7115)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/RefactoringTestProject-war/.settings/org.jboss.tools.seam.core.prefs 2008-03-25 16:14:01 UTC (rev 7116)
@@ -8,7 +8,7 @@
seam.project.connection.profile=DefaultDS
seam.project.deployment.type=ear
seam.project.settings.version=1.1
-seam.project.web.root.folder=/RefactoringTestProject-war/WebContent
+seam.project.web.root.folder=/RefactoringTestProject-war/webroot/WebContent
seam.runtime.name=jboss-seam-2.0.0.GA
seam.test.creating=true
seam.test.project=RefactoringTestProject-test
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java 2008-03-25 16:13:59 UTC (rev 7115)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java 2008-03-25 16:14:01 UTC (rev 7116)
@@ -31,6 +31,14 @@
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.rename.RenameResourceProcessor;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.IConfirmQuery;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.ICreateTargetQueries;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.ICreateTargetQuery;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.IReorgQueries;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgPolicyFactory;
+import org.eclipse.jdt.internal.corext.refactoring.reorg.IReorgPolicy.IMovePolicy;
+import org.eclipse.jdt.internal.corext.refactoring.structure.JavaMoveRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.tagging.INameUpdating;
import org.eclipse.jdt.internal.corext.refactoring.tagging.IReferenceUpdating;
import org.eclipse.jdt.internal.corext.refactoring.tagging.ITextUpdating;
@@ -62,8 +70,9 @@
static String actionSourceFolderPath = "/" + ejbProjectName + "/" + actionSourceFolderName;
static String modelSourceFolderPath = "/" + warProjectName + "/" + modelSourceFolderName;
static String testSourceFolderPath = "/" + testProjectName + "/" + testSourceFolderName;
+ static String viewFolderParentName = "webroot";
static String viewFolderName = "WebContent";
- static String viewFolderPath = "/" + warProjectName + "/" + viewFolderName;
+ static String viewFolderPath = "/" + warProjectName + "/" + viewFolderParentName + "/" + viewFolderName;
static String actionPackageName = "ejbdemo";
static String modelPackageName = "wardemo";
static String testPackageName = "testdemo";
@@ -184,6 +193,12 @@
assertCorrectProperties();
}
+ public void testViewFolderMove() throws CoreException {
+ viewFolderParentName = "testwebroot";
+ moveFolder(viewFolderPath, "/" + warProjectName + "/" + viewFolderParentName);
+ assertCorrectProperties();
+ }
+
private void assertCorrectProperties() {
updateFields();
@@ -227,7 +242,7 @@
actionSourceFolderPath = "/" + ejbProjectName + "/" + actionSourceFolderName;
modelSourceFolderPath = "/" + warProjectName + "/" + modelSourceFolderName;
testSourceFolderPath = "/" + testProjectName + "/" + testSourceFolderName;
- viewFolderPath = "/" + warProjectName + "/" + viewFolderName;
+ viewFolderPath = "/" + warProjectName + "/" + viewFolderParentName + "/" + viewFolderName;
}
private IPackageFragmentRoot renameSourceFolder(String folderPath, String newFolderName) throws CoreException {
@@ -370,4 +385,62 @@
}
EditorTestHelper.joinBackgroundActivities();
}
+
+ private IFolder moveFolder(String folderPath, String destinationFolderPath) throws CoreException {
+ IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(folderPath);
+ assertNotNull("Can't find folder: " + folderPath, resource);
+ IResource destination = ResourcesPlugin.getWorkspace().getRoot().findMember(destinationFolderPath);
+ assertNotNull("Can't find destination folder: " + destinationFolderPath, destination);
+
+ IMovePolicy policy = null;
+ JavaMoveProcessor processor = null;
+ try {
+ policy = ReorgPolicyFactory.createMovePolicy(new IResource[]{resource}, new IJavaElement[0]);
+ processor = new JavaMoveProcessor(policy);
+ processor.setDestination(destination);
+ } catch (JavaModelException e) {
+ JUnitUtils.fail("Exception during perform folder moving: " + folderPath, e);
+ }
+ JavaMoveRefactoring refactoring = new JavaMoveRefactoring(processor);
+ processor.setCreateTargetQueries(new ICreateTargetQueries(){
+ public ICreateTargetQuery createNewPackageQuery() {
+ return null;
+ }
+ });
+ processor.setReorgQueries(new IReorgQueries(){
+ public IConfirmQuery createSkipQuery(String queryTitle, int queryID) {
+ return null;
+ }
+ public IConfirmQuery createYesNoQuery(String queryTitle, boolean allowCancel, int queryID) {
+ return null;
+ }
+ public IConfirmQuery createYesYesToAllNoNoToAllQuery(String queryTitle, boolean allowCancel, int queryID) {
+ return null;
+ }
+ });
+
+ // perform
+ Object[] elements = processor.getElements();
+ RenameSelectionState state = elements.length==1?new RenameSelectionState(elements[0]):null;
+ RefactoringExecutionHelper helper= new RefactoringExecutionHelper(refactoring,
+ RefactoringCore.getConditionCheckingFailedSeverity(),
+ RefactoringSaveHelper.SAVE_ALL,
+ WorkbenchUtils.getActiveShell(),
+ WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow());
+ try {
+ helper.perform(true, true);
+ } catch (InterruptedException e) {
+ JUnitUtils.fail("Exception during perform folder moving: " + folderPath, e);
+ } catch (InvocationTargetException e) {
+ JUnitUtils.fail("Exception during perform folder moving: " + folderPath, e);
+ }
+
+ EditorTestHelper.joinBackgroundActivities();
+
+ String newFolderPath = destination.getFullPath().append(resource.getName()).toString();
+ resource = ResourcesPlugin.getWorkspace().getRoot().findMember(newFolderPath);
+ assertNotNull("Can't find folder: " + newFolderPath, resource);
+
+ return (IFolder)resource;
+ }
}
\ No newline at end of file
18 years
JBoss Tools SVN: r7115 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2008-03-25 12:13:59 -0400 (Tue, 25 Mar 2008)
New Revision: 7115
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
Log:
Code adjustment.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java 2008-03-25 15:42:47 UTC (rev 7114)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java 2008-03-25 16:13:59 UTC (rev 7115)
@@ -91,7 +91,7 @@
} else if (VpeTemplateManager.TAG_FACET.equals(name)) {
type = TYPE_FACET;
creator = new VpeFacetCreator(templateSection, dependencyMap, caseSensitive);
- } else if (VpeTemplateManager.TAG_List.equals(name)) {
+ } else if (VpeTemplateManager.TAG_LIST.equals(name)) {
type = TYPE_LIST;
creator = new VpeListCreator(templateSection, dependencyMap, caseSensitive);
// gavs
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-03-25 15:42:47 UTC (rev 7114)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-03-25 16:13:59 UTC (rev 7115)
@@ -27,6 +27,7 @@
import org.jboss.tools.jst.web.tld.TaglibData;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.XmlUtil;
import org.osgi.framework.Bundle;
import org.w3c.dom.Document;
@@ -36,127 +37,178 @@
public class VpeTemplateManager {
- static final String TEMPLATES_FILE_LIST_NAME = "vpe-templates-list.xml";
- static final String AUTO_TEMPLATES_FILE_NAME = "templates/vpe-templates-auto.xml";
- static final String TEMPLATES_FOLDER = File.separator + "templates" + File.separator;
- public static final String VPE_PREFIX = "vpe:";
- //gavs
- static final String TAG_List = VPE_PREFIX + "list";
- static final String ATTR_LIST_ORDERED = "ordered";
- static final String[] ATTR_LIST_PROPERTIES = {"ordered", "style","class","title","lang","dir"};
- //gavs
+ static final String TEMPLATES_FILE_LIST_NAME = "vpe-templates-list.xml"; //$NON-NLS-1$
+ static final String AUTO_TEMPLATES_FILE_NAME = "templates/vpe-templates-auto.xml"; //$NON-NLS-1$
+ static final String TEMPLATES_FOLDER = File.separator + "templates" + File.separator; //$NON-NLS-1$
+ public static final String VPE_PREFIX = "vpe:"; //$NON-NLS-1$
- //bela_n
- static final String TAG_LABELED_FORM = VPE_PREFIX + "labeledForm";
- static final String ATTR_LABELED_FORM_LABEL = "labelName";
- static final String ATTR_LABELED_FORM_DEFAULT_LABEL = "label";
- static final String[] ATTR_LABELED_FORM_PROPERTIES = {"style","class","width","border","frame","rules","cellspacing","cellpadding","bgcolor","title"};
- //bela_n
+ static final String TAG_LIST = VPE_PREFIX + "list"; //$NON-NLS-1$
+ static final String ATTR_LIST_ORDERED = "ordered"; //$NON-NLS-1$
+ static final String[] ATTR_LIST_PROPERTIES = {
+ "ordered", //$NON-NLS-1$
+ "style", //$NON-NLS-1$
+ "class", //$NON-NLS-1$
+ "title", //$NON-NLS-1$
+ "lang", //$NON-NLS-1$
+ "dir" //$NON-NLS-1$
+ };
+
+ static final String TAG_LABELED_FORM = VPE_PREFIX + "labeledForm"; //$NON-NLS-1$
+ static final String ATTR_LABELED_FORM_LABEL = "labelName"; //$NON-NLS-1$
+ static final String ATTR_LABELED_FORM_DEFAULT_LABEL = "label"; //$NON-NLS-1$
+ static final String[] ATTR_LABELED_FORM_PROPERTIES = {
+ "style", //$NON-NLS-1$
+ "class", //$NON-NLS-1$
+ "width", //$NON-NLS-1$
+ "border", //$NON-NLS-1$
+ "frame", //$NON-NLS-1$
+ "rules", //$NON-NLS-1$
+ "cellspacing", //$NON-NLS-1$
+ "cellpadding", //$NON-NLS-1$
+ "bgcolor", //$NON-NLS-1$
+ "title" //$NON-NLS-1$
+ };
- static final String TAG_TEMPLATES_LIST = VPE_PREFIX + "templates-list";
- static final String TAG_TEMPLATES = VPE_PREFIX + "templates";
- static final String TAG_TEMPLATE_TAGLIB = VPE_PREFIX + "template-taglib";
- static final String TAG_TAG = VPE_PREFIX + "tag";
- static final String TAG_IF = VPE_PREFIX + "if";
- static final String TAG_TEMPLATE = VPE_PREFIX + "template";
- static final String TAG_COPY = VPE_PREFIX + "copy";
- static final String TAG_GRID = VPE_PREFIX + "grid";
- static final String TAG_PANELGRID = VPE_PREFIX + "panelgrid";
- static final String TAG_ELEMENT = VPE_PREFIX + "element";
- static final String TAG_ATTRIBUTE = VPE_PREFIX + "attribute";
- static final String TAG_VALUE = VPE_PREFIX + "value";
- static final String TAG_XMLNS = VPE_PREFIX + "xmlns";
- static final String TAG_ANY = VPE_PREFIX + "any";
- static final String TAG_TAGLIB = VPE_PREFIX + "taglib";
- static final String TAG_LINK = VPE_PREFIX + "link";
- static final String TAG_LOAD_BUNDLE = VPE_PREFIX + "load-bundle";
- static final String TAG_DATATABLE = VPE_PREFIX + "datatable";
- static final String TAG_DATATABLE_COLUMN = VPE_PREFIX + "column";
- static final String TAG_COMMENT = VPE_PREFIX + "comment";
- static final String TAG_STYLE = VPE_PREFIX + "style";
- static final String TAG_JSPROOT = VPE_PREFIX + "jsproot";
- static final String TAG_RESIZE = VPE_PREFIX + "resize";
- static final String TAG_DND = VPE_PREFIX + "dnd";
- static final String TAG_FACET = VPE_PREFIX + "facet";
- static final String TAG_MY_FACES_PAGE_LAYOUT = VPE_PREFIX + "panellayout";
+ static final String TAG_TEMPLATES_LIST = VPE_PREFIX + "templates-list"; //$NON-NLS-1$
+ static final String TAG_TEMPLATES = VPE_PREFIX + "templates"; //$NON-NLS-1$
+ static final String TAG_TEMPLATE_TAGLIB = VPE_PREFIX + "template-taglib"; //$NON-NLS-1$
+ static final String TAG_TAG = VPE_PREFIX + "tag"; //$NON-NLS-1$
+ static final String TAG_IF = VPE_PREFIX + "if"; //$NON-NLS-1$
+ static final String TAG_TEMPLATE = VPE_PREFIX + "template"; //$NON-NLS-1$
+ static final String TAG_COPY = VPE_PREFIX + "copy"; //$NON-NLS-1$
+ static final String TAG_GRID = VPE_PREFIX + "grid"; //$NON-NLS-1$
+ static final String TAG_PANELGRID = VPE_PREFIX + "panelgrid"; //$NON-NLS-1$
+ static final String TAG_ELEMENT = VPE_PREFIX + "element"; //$NON-NLS-1$
+ static final String TAG_ATTRIBUTE = VPE_PREFIX + "attribute"; //$NON-NLS-1$
+ static final String TAG_VALUE = VPE_PREFIX + "value"; //$NON-NLS-1$
+ static final String TAG_XMLNS = VPE_PREFIX + "xmlns"; //$NON-NLS-1$
+ static final String TAG_ANY = VPE_PREFIX + "any"; //$NON-NLS-1$
+ static final String TAG_TAGLIB = VPE_PREFIX + "taglib"; //$NON-NLS-1$
+ static final String TAG_LINK = VPE_PREFIX + "link"; //$NON-NLS-1$
+ static final String TAG_LOAD_BUNDLE = VPE_PREFIX + "load-bundle"; //$NON-NLS-1$
+ static final String TAG_DATATABLE = VPE_PREFIX + "datatable"; //$NON-NLS-1$
+ static final String TAG_DATATABLE_COLUMN = VPE_PREFIX + "column"; //$NON-NLS-1$
+ static final String TAG_COMMENT = VPE_PREFIX + "comment"; //$NON-NLS-1$
+ static final String TAG_STYLE = VPE_PREFIX + "style"; //$NON-NLS-1$
+ static final String TAG_JSPROOT = VPE_PREFIX + "jsproot"; //$NON-NLS-1$
+ static final String TAG_RESIZE = VPE_PREFIX + "resize"; //$NON-NLS-1$
+ static final String TAG_DND = VPE_PREFIX + "dnd"; //$NON-NLS-1$
+ static final String TAG_FACET = VPE_PREFIX + "facet"; //$NON-NLS-1$
+ static final String TAG_MY_FACES_PAGE_LAYOUT = VPE_PREFIX + "panellayout"; //$NON-NLS-1$
- public static final String TAG_TEXT_FORMATING = VPE_PREFIX + "textFormating";
- public static final String TAG_FORMAT = VPE_PREFIX + "format";
- public static final String TAG_FORMAT_ATTRIBUTE = VPE_PREFIX + "formatAttribute";
+ public static final String TAG_TEXT_FORMATING = VPE_PREFIX + "textFormating"; //$NON-NLS-1$
+ public static final String TAG_FORMAT = VPE_PREFIX + "format"; //$NON-NLS-1$
+ public static final String TAG_FORMAT_ATTRIBUTE = VPE_PREFIX + "formatAttribute"; //$NON-NLS-1$
- public static final String ATTR_FORMAT_TYPE = "type";
- public static final String ATTR_FORMAT_ADD_CHILDREN = "addChildren";
- public static final String ATTR_FORMAT_ADD_PARENT = "addParent";
- public static final String ATTR_FORMAT_ADD_CHILDREN_HANDLER = "addChildrenHandler";
- public static final String ATTR_FORMAT_HANDLER = "handler";
- public static final String ATTR_FORMAT_SET_DEFAULT = "setDefault";
- public static final String ATTR_FORMAT_ATTRIBUTE_TYPE = "type";
- public static final String ATTR_FORMAT_ATTRIBUTE_NAME = "name";
- public static final String ATTR_FORMAT_ATTRIBUTE_VALUE = "value";
- public static final String ATTR_FORMAT_ATTRIBUTE_CASE_SENSITIVE = "caseSensitive";
- public static final String ATTR_FORMAT_ATTRIBUTE_TRUE_VALUE = "true";
- public static final String ATTR_FORMAT_ADD_CHILDREN_ALLOW_VALUE = "allow";
- public static final String ATTR_FORMAT_ADD_CHILDREN_DENY_VALUE = "deny";
- public static final String ATTR_FORMAT_ADD_CHILDREN_ITSELF_VALUE = "itself";
- public static final String ATTR_FORMAT_ATTRIBUTE_TYPE_STYLE_VALUE = "style";
+ public static final String ATTR_FORMAT_TYPE = "type"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_CHILDREN = "addChildren"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_PARENT = "addParent"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_CHILDREN_HANDLER = "addChildrenHandler"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_HANDLER = "handler"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_SET_DEFAULT = "setDefault"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_TYPE = "type"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_NAME = "name"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_VALUE = "value"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_CASE_SENSITIVE = "caseSensitive"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_TRUE_VALUE = "true"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_CHILDREN_ALLOW_VALUE = "allow"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_CHILDREN_DENY_VALUE = "deny"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ADD_CHILDREN_ITSELF_VALUE = "itself"; //$NON-NLS-1$
+ public static final String ATTR_FORMAT_ATTRIBUTE_TYPE_STYLE_VALUE = "style"; //$NON-NLS-1$
- static final String ATTR_DIRECTIVE_TAGLIB_URI = "uri";
- static final String ATTR_DIRECTIVE_TAGLIB_PREFIX = "prefix";
+ static final String ATTR_DIRECTIVE_TAGLIB_URI = "uri"; //$NON-NLS-1$
+ static final String ATTR_DIRECTIVE_TAGLIB_PREFIX = "prefix"; //$NON-NLS-1$
- static final String ATTR_TAG_NAME = "name";
- static final String ATTR_TAG_CASE_SENSITIVE = "case-sensitive";
+ static final String ATTR_TAG_NAME = "name"; //$NON-NLS-1$
+ static final String ATTR_TAG_CASE_SENSITIVE = "case-sensitive"; //$NON-NLS-1$
+ static final String ATTR_VALUE_YES = "yes"; //$NON-NLS-1$
+ static final String ATTR_VALUE_NO = "no"; //$NON-NLS-1$
- static final String ATTR_IF_TEST = "test";
+ static final String ATTR_IF_TEST = "test"; //$NON-NLS-1$
- static final String ATTR_TEMPLATE_CLASS = "class";
- static final String ATTR_TEMPLATE_CHILDREN = "children";
- static final String ATTR_TEMPLATE_MODIFY = "modify";
+ static final String ATTR_TEMPLATE_CLASS = "class"; //$NON-NLS-1$
+ static final String ATTR_TEMPLATE_CHILDREN = "children"; //$NON-NLS-1$
+ static final String ATTR_TEMPLATE_MODIFY = "modify"; //$NON-NLS-1$
/** ATTR_TEMPLATE_HAVE_VISUAL_PREVIEW */
- static final String ATTR_TEMPLATE_HAVE_VISUAL_PREVIEW = "haveVisualPreview";
+ static final String ATTR_TEMPLATE_HAVE_VISUAL_PREVIEW = "haveVisualPreview"; //$NON-NLS-1$
- static final String ATTR_COPY_ATTRS = "attrs";
+ static final String ATTR_COPY_ATTRS = "attrs"; //$NON-NLS-1$
- static final String ATTR_ELEMENT_NAME = "name";
+ static final String ATTR_ELEMENT_NAME = "name"; //$NON-NLS-1$
- static final String ATTR_ATTRIBUTE_NAME = "name";
- static final String ATTR_ATTRIBUTE_VALUE = "value";
+ static final String ATTR_ATTRIBUTE_NAME = "name"; //$NON-NLS-1$
+ static final String ATTR_ATTRIBUTE_VALUE = "value"; //$NON-NLS-1$
- static final String ATTR_VALUE_EXPR = "expr";
+ static final String ATTR_VALUE_EXPR = "expr"; //$NON-NLS-1$
- static final String ATTR_PANELGRID_TABLE_SIZE = "table-size";
- static final String ATTR_PANELGRID_HEADER_CLASS = "headerClass";
- static final String ATTR_PANELGRID_FOOTER_CLASS = "footerClass";
- static final String ATTR_PANELGRID_ROW_CLASSES = "rowClasses";
- static final String ATTR_PANELGRID_COLUMN_CLASSES = "columnClasses";
- static final String ATTR_PANELGRID_CAPTION_CLASS = "captionClass";
- static final String ATTR_PANELGRID_CAPTION_STYLE = "captionStyle";
- static final String ATTR_PANELGRID_RULES = "rules";
- static final String[] ATTR_PANELGRID_PROPERTIES = {"style","class","width","border","frame","cellspacing","cellpadding","bgcolor","title"};
+ static final String ATTR_PANELGRID_TABLE_SIZE = "table-size"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_ROW_CLASSES = "rowClasses"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_COLUMN_CLASSES = "columnClasses"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_CAPTION_CLASS = "captionClass"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_CAPTION_STYLE = "captionStyle"; //$NON-NLS-1$
+ static final String ATTR_PANELGRID_RULES = "rules"; //$NON-NLS-1$
+ static final String[] ATTR_PANELGRID_PROPERTIES = {
+ "style", //$NON-NLS-1$
+ "class", //$NON-NLS-1$
+ "width", //$NON-NLS-1$
+ "border", //$NON-NLS-1$
+ "frame", //$NON-NLS-1$
+ "cellspacing", //$NON-NLS-1$
+ "cellpadding", //$NON-NLS-1$
+ "bgcolor", //$NON-NLS-1$
+ "title" //$NON-NLS-1$
+ };
- static final String ATTR_GRID_LAYOUT = "layout";
- static final String ATTR_GRID_TABLE_SIZE = "table-size";
- static final String[] ATTR_GRID_PROPERTIES = {"style","class","width","border","frame","cellspacing","cellpadding","bgcolor","title","dir"};
+ static final String ATTR_GRID_LAYOUT = "layout"; //$NON-NLS-1$
+ static final String ATTR_GRID_TABLE_SIZE = "table-size"; //$NON-NLS-1$
+ static final String[] ATTR_GRID_PROPERTIES = {
+ "style", //$NON-NLS-1$
+ "class", //$NON-NLS-1$
+ "width", //$NON-NLS-1$
+ "border", //$NON-NLS-1$
+ "frame", //$NON-NLS-1$
+ "cellspacing", //$NON-NLS-1$
+ "cellpadding", //$NON-NLS-1$
+ "bgcolor", //$NON-NLS-1$
+ "title", //$NON-NLS-1$
+ "dir" //$NON-NLS-1$
+ };
- static final String ATTR_ANY_DISPLAY = "display";
- static final String ATTR_ANY_ICON = "icon";
- static final String ATTR_ANY_VALUE = "value";
- static final String ATTR_ANY_BORDER = "border";
- static final String ATTR_ANY_VALUE_COLOR = "value-color";
- static final String ATTR_ANY_VALUE_BACKGROUND_COLOR = "value-background-color";
- static final String ATTR_ANY_BACKGROUND_COLOR = "background-color";
- static final String ATTR_ANY_BORDER_COLOR = "border-color";
- static final String[] ATTR_ANY_PROPERTIES = {"title"};
+ static final String ATTR_ANY_DISPLAY = "display"; //$NON-NLS-1$
+ static final String ATTR_ANY_ICON = "icon"; //$NON-NLS-1$
+ static final String ATTR_ANY_VALUE = "value"; //$NON-NLS-1$
+ static final String ATTR_ANY_BORDER = "border"; //$NON-NLS-1$
+ static final String ATTR_ANY_VALUE_COLOR = "value-color"; //$NON-NLS-1$
+ static final String ATTR_ANY_VALUE_BACKGROUND_COLOR = "value-background-color"; //$NON-NLS-1$
+ static final String ATTR_ANY_BACKGROUND_COLOR = "background-color"; //$NON-NLS-1$
+ static final String ATTR_ANY_BORDER_COLOR = "border-color"; //$NON-NLS-1$
+ static final String[] ATTR_ANY_PROPERTIES = {"title"}; //$NON-NLS-1$
- static final String ATTR_DATATABLE_HEADER_CLASS = "headerClass";
- static final String ATTR_DATATABLE_FOOTER_CLASS = "footerClass";
- static final String ATTR_DATATABLE_ROW_CLASSES = "rowClasses";
- static final String ATTR_DATATABLE_COLUMN_CLASSES = "columnClasses";
- static final String[] ATTR_DATATABLE_PROPERTIES = {"width", "bgcolor","border","cellpadding","cellspacing","frame","rules","class","style","title", "dir", "rowClasses"};
+ static final String ATTR_DATATABLE_HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ static final String ATTR_DATATABLE_FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
+ static final String ATTR_DATATABLE_ROW_CLASSES = "rowClasses"; //$NON-NLS-1$
+ static final String ATTR_DATATABLE_COLUMN_CLASSES = "columnClasses"; //$NON-NLS-1$
+ static final String[] ATTR_DATATABLE_PROPERTIES = {
+ "width", //$NON-NLS-1$
+ "bgcolor", //$NON-NLS-1$
+ "border", //$NON-NLS-1$
+ "cellpadding", //$NON-NLS-1$
+ "cellspacing", //$NON-NLS-1$
+ "frame", //$NON-NLS-1$
+ "rules", //$NON-NLS-1$
+ "class", //$NON-NLS-1$
+ "style", //$NON-NLS-1$
+ "title", //$NON-NLS-1$
+ "dir", //$NON-NLS-1$
+ "rowClasses" //$NON-NLS-1$
+ };
- public static final String ATTR_LINK_HREF = "href";
- public static final String ATTR_LINK_REL = "rel";
- public static final String ATTR_LINK_EXT = "ext";
+ public static final String ATTR_LINK_HREF = "href"; //$NON-NLS-1$
+ public static final String ATTR_LINK_REL = "rel"; //$NON-NLS-1$
+ public static final String ATTR_LINK_EXT = "ext"; //$NON-NLS-1$
private static VpeTemplateManager instance = null;
private static Object monitor = new Object();
@@ -174,13 +226,14 @@
private Set<String> withoutWhitespaceContainerSet = new HashSet<String>();
private Set<String> withoutPseudoElementContainerSet = new HashSet<String>();
- /**
+ /*
* Added by Max Areshkau(mareshkau(a)exadel.com)
- * This property identify namespace which should be used to load some specific class.
+ */
+ /** This property identify namespace which should be used to load some specific class.
* For example in rich:dataTable can be h:column, but rich:dataTable is separate plugin,
* so to render h:column we should load the specific class for h:column from richfaces template
*/
- private static final String NAMESPACE_IDENTIFIER_ATTRIBUTE="namespaceIdentifier";
+ private static final String NAMESPACE_IDENTIFIER_ATTRIBUTE = "namespaceIdentifier"; //$NON-NLS-1$
private VpeTemplateManager() {
@@ -201,7 +254,7 @@
}
}
- public VpeTemplate getTemplate(VpePageContext pageContext, Node sourceNode, Set dependencySet) {
+ public VpeTemplate getTemplate(VpePageContext pageContext, Node sourceNode, Set<?> dependencySet) {
VpeTemplate template = getTemplateImpl(pageContext, sourceNode, dependencySet);
if (template != null) {
return template;
@@ -210,7 +263,7 @@
}
}
- private VpeTemplate getTemplateImpl(VpePageContext pageContext, Node sourceNode, Set dependencySet) {
+ private VpeTemplate getTemplateImpl(VpePageContext pageContext, Node sourceNode, Set<?> dependencySet) {
String name = getTemplateName(pageContext, sourceNode);
if (name == null) {
return null;
@@ -227,31 +280,26 @@
}
private String getTemplateName(VpePageContext pageContext, Node sourceNode) {
-
String sourcePrefix = sourceNode.getPrefix();
-
- if (sourcePrefix == null || ((IDOMElement)sourceNode).isJSPTag() || "jsp".equals(sourcePrefix)) {
-
+
+ if (sourcePrefix == null
+ || ((IDOMElement)sourceNode).isJSPTag()
+ || "jsp".equals(sourcePrefix)) { //$NON-NLS-1$
return sourceNode.getNodeName();
}
List<TaglibData> taglibs = XmlUtil.getTaglibsForNode(sourceNode,pageContext.getSourceBuilder().getStructuredTextViewer().getDocument());
-
TaglibData sourceNodeTaglib = XmlUtil.getTaglibForPrefix(sourcePrefix, taglibs);
if(sourceNodeTaglib == null) {
-
return null;
}
String sourceNodeUri = sourceNodeTaglib.getUri();
-
-
String templateTaglibPrefix = getTemplateTaglibPrefix(sourceNodeUri);
if(templateTaglibPrefix != null) {
-
- return templateTaglibPrefix+":"+sourceNode.getLocalName();
+ return templateTaglibPrefix + ":" + sourceNode.getLocalName(); //$NON-NLS-1$
}
return null;
@@ -273,10 +321,12 @@
if (autoTemplateFile != null) {
loadTemplates(autoTemplateFile.getPath(),autoTemplateFile.getConfigurableElement());
}
+
VpeTemplateFile[] templateFiles = templateFileList.getTemplateFiles();
for (int i = 0; i < templateFiles.length; i++) {
loadTemplates(templateFiles[i].getPath(),templateFiles[i].getConfigurableElement());
}
+
if (defTemplate == null) {
defTemplate = createDefTemplate();
}
@@ -295,6 +345,7 @@
if (root == null || !TAG_TEMPLATES.equals(root.getNodeName())) {
return;
}
+
NodeList children = root.getChildNodes();
if (children != null) {
int len = children.getLength();
@@ -305,8 +356,7 @@
setTagElement((Element)node, confElement);
} else if (TAG_TEMPLATE.equals(node.getNodeName())) {
setDefTemplate(createTemplate((Element)node,confElement, true));
- }
- else if (TAG_TEMPLATE_TAGLIB.equals(node.getNodeName())) {
+ } else if (TAG_TEMPLATE_TAGLIB.equals(node.getNodeName())) {
setTemplateTaglib((Element)node);
}
}
@@ -317,7 +367,7 @@
private void setTagElement(Element tagElement,IConfigurationElement confElement) {
String name = tagElement.getAttribute(ATTR_TAG_NAME);
if (name.length() > 0) {
- boolean caseSensitive = !"no".equals(tagElement.getAttribute(ATTR_TAG_CASE_SENSITIVE));
+ boolean caseSensitive = !ATTR_VALUE_NO.equals(tagElement.getAttribute(ATTR_TAG_CASE_SENSITIVE));
Map<String,VpeTemplateSet> tags;
if (caseSensitive) {
tags = caseSensitiveTags;
@@ -325,11 +375,13 @@
name = name.toLowerCase();
tags = ignoreSensitiveTags;
}
+
VpeTemplateSet set = (VpeTemplateSet) tags.get(name);
if (set == null) {
set = new VpeTemplateSet();
tags.put(name, set);
}
+
addChildren(tagElement, set, confElement, caseSensitive);
}
}
@@ -381,10 +433,12 @@
public void setAnyTemplate(VpeAnyData data) {
String elementName = data.getName();
boolean caseSensitive = data.isCaseSensitive();
+
Element root = loadAutoTemplate();
if (root == null) {
root = XMLUtilities.createDocumentElement(TAG_TEMPLATES);
}
+
Set<String> prefixSet = new HashSet<String>();
Node tagElement = null;
NodeList children = root.getChildNodes();
@@ -394,7 +448,7 @@
Node node = children.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
if (TAG_TAG.equals(node.getNodeName())) {
- if (caseSensitive == !"no".equals(((Element)node).getAttribute(ATTR_TAG_CASE_SENSITIVE))) {
+ if (caseSensitive == !ATTR_VALUE_NO.equals(((Element)node).getAttribute(ATTR_TAG_CASE_SENSITIVE))) {
String name = ((Element)node).getAttribute(ATTR_TAG_NAME);
if (caseSensitive && name.equals(elementName) || !caseSensitive && name.equalsIgnoreCase(elementName)) {
tagElement = node;
@@ -402,10 +456,9 @@
}
} else if (TAG_TEMPLATE_TAGLIB.equals(node.getNodeName())) {
Node prefixAttr = node.getAttributes().getNamedItem(ATTR_DIRECTIVE_TAGLIB_PREFIX);
- String prefix = prefixAttr != null ? prefixAttr.getNodeValue() : "";
+ String prefix = prefixAttr != null ? prefixAttr.getNodeValue() : ""; //$NON-NLS-1$
if (prefix.length() > 0) {
prefixSet.add(prefix);
-;
}
} else {
root.removeChild(node);
@@ -461,7 +514,7 @@
return root;
}
- public List getAnyTemplates() {
+ public List<VpeAnyData> getAnyTemplates() {
List<VpeAnyData> anyTemplateList = new ArrayList<VpeAnyData>();
Map<String,Node> taglibs = new HashMap<String,Node>();
@@ -478,66 +531,89 @@
if (node.getNodeType() == Node.ELEMENT_NODE) {
if (TAG_TAG.equals(node.getNodeName())) {
Node attr = ((Element)node).getAttributeNode(ATTR_TAG_NAME);
- VpeAnyData anyData = new VpeAnyData(attr != null ? attr.getNodeValue() : "");
+ VpeAnyData anyData = new VpeAnyData(attr != null ? attr.getNodeValue() : ""); //$NON-NLS-1$
attr = ((Element)node).getAttributeNode(ATTR_TAG_CASE_SENSITIVE);
- anyData.setCaseSensitive("yes".equalsIgnoreCase(attr.getNodeValue()));
+ anyData.setCaseSensitive(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
Element templateNode = getChildNode(node, TAG_TEMPLATE);
if (templateNode != null) {
- attr = ((Element)templateNode).getAttributeNode(ATTR_TEMPLATE_CHILDREN);
- if (attr != null) anyData.setChildren("yes".equalsIgnoreCase(attr.getNodeValue()));
- attr = ((Element)templateNode).getAttributeNode(ATTR_TEMPLATE_MODIFY);
- if (attr != null) anyData.setModify("yes".equalsIgnoreCase(attr.getNodeValue()));
+ attr = templateNode.getAttributeNode(ATTR_TEMPLATE_CHILDREN);
+ if (attr != null) {
+ anyData.setChildren(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
+ }
+
+ attr = templateNode.getAttributeNode(ATTR_TEMPLATE_MODIFY);
+ if (attr != null) {
+ anyData.setModify(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
+ }
Element anyNode = getChildNode(templateNode, TAG_ANY);
if (anyNode != null) {
- attr = ((Element)anyNode).getAttributeNode(ATTR_TEMPLATE_CHILDREN);
- if (attr != null) anyData.setChildren("yes".equalsIgnoreCase(attr.getNodeValue()));
+ attr = anyNode.getAttributeNode(ATTR_TEMPLATE_CHILDREN);
+ if (attr != null) {
+ anyData.setChildren(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_DISPLAY);
- if (attr != null) anyData.setDisplay(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_DISPLAY);
+ if (attr != null) {
+ anyData.setDisplay(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_ICON);
- if (attr != null) anyData.setShowIcon("yes".equalsIgnoreCase(attr.getNodeValue()));
+ attr = anyNode.getAttributeNode(ATTR_ANY_ICON);
+ if (attr != null){
+ anyData.setShowIcon(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_VALUE);
- if (attr != null) anyData.setValue(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_VALUE);
+ if (attr != null) {
+ anyData.setValue(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_BORDER);
- if (attr != null) anyData.setBorder(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_BORDER);
+ if (attr != null) {
+ anyData.setBorder(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_VALUE_COLOR);
- if (attr != null) anyData.setValueColor(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_VALUE_COLOR);
+ if (attr != null) {
+ anyData.setValueColor(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_VALUE_BACKGROUND_COLOR);
- if (attr != null) anyData.setValueBackgroundColor(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_VALUE_BACKGROUND_COLOR);
+ if (attr != null) {
+ anyData.setValueBackgroundColor(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_BACKGROUND_COLOR);
- if (attr != null) anyData.setBackgroundColor(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_BACKGROUND_COLOR);
+ if (attr != null) {
+ anyData.setBackgroundColor(attr.getNodeValue());
+ }
- attr = ((Element)anyNode).getAttributeNode(ATTR_ANY_BORDER_COLOR);
- if (attr != null) anyData.setBorderColor(attr.getNodeValue());
+ attr = anyNode.getAttributeNode(ATTR_ANY_BORDER_COLOR);
+ if (attr != null) {
+ anyData.setBorderColor(attr.getNodeValue());
+ }
}
}
+
anyTemplateList.add(anyData);
} else if (TAG_TEMPLATE_TAGLIB.equals(node.getNodeName())) {
Node prefixAttr = node.getAttributes().getNamedItem(ATTR_DIRECTIVE_TAGLIB_PREFIX);
- String prefix = prefixAttr != null ? prefixAttr.getNodeValue() : "";
+ String prefix = prefixAttr != null ? prefixAttr.getNodeValue() : ""; //$NON-NLS-1$
if (prefix.length() > 0) {
taglibs.put(prefix, node);
-;
}
}
}
}
}
- for (Iterator iter = anyTemplateList.iterator(); iter.hasNext();) {
- VpeAnyData element = (VpeAnyData) iter.next();
+ for (Iterator<VpeAnyData> iter = anyTemplateList.iterator(); iter.hasNext();) {
+ VpeAnyData element = iter.next();
String prefix = element.getPrefix();
if (taglibs.containsKey(prefix)) {
Node node = (Node)taglibs.get(prefix);
Node uriAttr = node.getAttributes().getNamedItem(ATTR_DIRECTIVE_TAGLIB_URI);
- String uri = uriAttr != null ? uriAttr.getNodeValue() : "";
+ String uri = uriAttr != null ? uriAttr.getNodeValue() : ""; //$NON-NLS-1$
element.setUri(uri);
}
}
@@ -562,14 +638,14 @@
}
- public void setAnyTemplates(List templates) {
+ public void setAnyTemplates(List<VpeAnyData> templates) {
if (templates != null) {
Set<String> prefixSet = new HashSet<String>();
Element root = XMLUtilities.createDocumentElement(TAG_TEMPLATES);
Document document = root.getOwnerDocument();
- for (Iterator iter = templates.iterator(); iter.hasNext();) {
- VpeAnyData data = (VpeAnyData) iter.next();
+ for (Iterator<VpeAnyData> iter = templates.iterator(); iter.hasNext();) {
+ VpeAnyData data = iter.next();
root.appendChild(createNewTagElement(document, data));
String prefix = data.getPrefix();
if (prefix != null && prefix.length() > 0 && !prefixSet.contains(prefix)) {
@@ -591,11 +667,11 @@
private Element createNewTagElement(Document document, VpeAnyData data) {
Element newTagElement = document.createElement(TAG_TAG);
newTagElement.setAttribute(ATTR_TAG_NAME, data.getName());
- newTagElement.setAttribute(ATTR_TAG_CASE_SENSITIVE, data.isCaseSensitive() ? "yes" : "no");
+ newTagElement.setAttribute(ATTR_TAG_CASE_SENSITIVE, data.isCaseSensitive() ? ATTR_VALUE_YES : ATTR_VALUE_NO);
Element newTemplateElement = document.createElement(TAG_TEMPLATE);
- newTemplateElement.setAttribute(ATTR_TEMPLATE_CHILDREN, data.isChildren() ? "yes" : "no");
- newTemplateElement.setAttribute(ATTR_TEMPLATE_MODIFY, data.isModify() ? "yes" : "no");
+ newTemplateElement.setAttribute(ATTR_TEMPLATE_CHILDREN, data.isChildren() ? ATTR_VALUE_YES : ATTR_VALUE_NO);
+ newTemplateElement.setAttribute(ATTR_TEMPLATE_MODIFY, data.isModify() ? ATTR_VALUE_YES : ATTR_VALUE_NO);
newTagElement.appendChild(newTemplateElement);
Element newAnyElement = document.createElement(TAG_ANY);
@@ -614,7 +690,7 @@
if (data.getBorderColor() != null && data.getBorderColor().length() > 0)
newAnyElement.setAttribute(ATTR_ANY_BORDER_COLOR, data.getBorderColor());
- newAnyElement.setAttribute(ATTR_ANY_ICON, data.isShowIcon() ? "yes" : "no");
+ newAnyElement.setAttribute(ATTR_ANY_ICON, data.isShowIcon() ? ATTR_VALUE_YES : ATTR_VALUE_NO);
newTemplateElement.appendChild(newAnyElement);
@@ -691,19 +767,29 @@
private Element createDefTemplateElement() {
Element newTemplateElement = XMLUtilities.createDocumentElement(TAG_TEMPLATE);
- newTemplateElement.setAttribute(ATTR_TEMPLATE_CHILDREN, "yes");
- newTemplateElement.setAttribute(ATTR_TEMPLATE_MODIFY, "no");
+ newTemplateElement.setAttribute(ATTR_TEMPLATE_CHILDREN, ATTR_VALUE_YES);
+ newTemplateElement.setAttribute(ATTR_TEMPLATE_MODIFY, ATTR_VALUE_NO);
Document document = newTemplateElement.getOwnerDocument();
Element newAnyElement = document.createElement(TAG_ANY);
- newAnyElement.setAttribute(ATTR_ANY_VALUE, "{name()}");
- newAnyElement.setAttribute("title", "{tagstring()}");
+ newAnyElement.setAttribute(ATTR_ANY_VALUE, "{name()}"); //$NON-NLS-1$
+ newAnyElement.setAttribute("title", "{tagstring()}"); //$NON-NLS-1$ //$NON-NLS-2$
newTemplateElement.appendChild(newAnyElement);
return newTemplateElement;
}
static String[] WITHOUT_WHITESPACE_ELEMENT_NAMES = {
- "table", "caption", "col", "colgroup", "thead", "tbody", "tfoot", "th", "tr", "td"
+ HTML.TAG_TABLE,
+ HTML.TAG_CAPTION,
+ HTML.TAG_COL,
+ HTML.TAG_COLGROUP,
+ HTML.TAG_THEAD,
+ HTML.TAG_TBODY,
+ HTML.TAG_TFOOT,
+ HTML.TAG_TH,
+ HTML.TAG_TR,
+ HTML.TAG_TD
};
+
private void initWithoutWhitespaceContainerSet() {
for (int i = 0; i < WITHOUT_WHITESPACE_ELEMENT_NAMES.length; i++) {
withoutWhitespaceContainerSet.add(WITHOUT_WHITESPACE_ELEMENT_NAMES[i]);
@@ -711,8 +797,8 @@
}
private void initPseudoElementContainerSet() {
- withoutPseudoElementContainerSet.add("br");
- withoutPseudoElementContainerSet.add("input");
+ withoutPseudoElementContainerSet.add(HTML.TAG_BR);
+ withoutPseudoElementContainerSet.add(HTML.TAG_INPUT);
}
public boolean isWithoutWhitespaceContainer(String name) {
@@ -723,6 +809,7 @@
return withoutPseudoElementContainerSet.contains(name.toLowerCase());
}
+ @SuppressWarnings("unchecked")
private VpeTemplate createTemplate(Element templateElement,IConfigurationElement confElement, boolean caseSensitive) {
VpeTemplate template = null;
String templateClassName = templateElement.getAttribute(VpeTemplateManager.ATTR_TEMPLATE_CLASS);
@@ -746,7 +833,7 @@
} catch (Exception e2) {
String message = e.getMessage();
if(message==null) {
- message = "Can't get VPE template class: " + templateClassName;
+ message = "Can't get VPE template class: " + templateClassName; //$NON-NLS-1$
}
VpePlugin.getPluginLog().logWarning(message, e);
return null;
@@ -760,9 +847,9 @@
}
private VpeTemplate createDefTemplate() {
- VpeTemplate defTemplate = new VpeHtmlTemplate();
- defTemplate.init(createDefTemplateElement(), true);
- return defTemplate;
+ VpeTemplate localDefTemplate = new VpeHtmlTemplate();
+ localDefTemplate.init(createDefTemplateElement(), true);
+ return localDefTemplate;
}
/**
18 years
JBoss Tools SVN: r7114 - trunk/struts/docs/struts_tools_ref_guide/en.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 11:42:47 -0400 (Tue, 25 Mar 2008)
New Revision: 7114
Added:
trunk/struts/docs/struts_tools_ref_guide/en/master.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - adding master.xml to new Struts Tools ref guide
Added: trunk/struts/docs/struts_tools_ref_guide/en/master.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/master.xml (rev 0)
+++ trunk/struts/docs/struts_tools_ref_guide/en/master.xml 2008-03-25 15:42:47 UTC (rev 7114)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"../../resources/support/docbook-dtd/docbookx.dtd"
+
+[
+<!ENTITY introduction SYSTEM "modules/introduction.xml">
+<!ENTITY struts_tools SYSTEM "modules/struts_tools.xml">
+<!ENTITY struts_project_verification SYSTEM "modules/struts_project_verification.xml">
+]>
+<book>
+ <bookinfo>
+ <title>Struts Tools Reference Guide</title>
+ <copyright>
+ <year>2008</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <releaseinfo>
+ <para>Version: 2.0.0.GA</para>
+ </releaseinfo>
+ </bookinfo>
+
+ <toc/>
+
+ &introduction;
+ &struts_tools;
+ &struts_project_verification;
+</book>
\ No newline at end of file
18 years
JBoss Tools SVN: r7113 - trunk/struts/docs/struts_tools_ref_guide.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 11:24:20 -0400 (Tue, 25 Mar 2008)
New Revision: 7113
Added:
trunk/struts/docs/struts_tools_ref_guide/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - adding pom.xml to new Struts Tools ref guide
Added: trunk/struts/docs/struts_tools_ref_guide/pom.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/pom.xml (rev 0)
+++ trunk/struts/docs/struts_tools_ref_guide/pom.xml 2008-03-25 15:24:20 UTC (rev 7113)
@@ -0,0 +1,104 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>struts-tools-reference-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Struts_Tools_Reference_Guide_(${translation})</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>highlight</artifactId>
+ <version>3.1.4.GA</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+
+</project>
18 years
JBoss Tools SVN: r7112 - in trunk/struts/docs/struts_tools_ref_guide/en: images and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 11:21:56 -0400 (Tue, 25 Mar 2008)
New Revision: 7112
Added:
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/Thumbs.db
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_10.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_11.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_12.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_13.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_14.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_15.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_16.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_17.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_18.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_19.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_2.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_20.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_21.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_22.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_23.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_24.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_25.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_26.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_27.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_28.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_29.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_30.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_31.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_32.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_33.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_34.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_35.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_36.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_37.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_38.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_39.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3_1.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_4.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_40.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_41.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_42.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_43.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_44.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_45.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_46.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_47.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_48.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_49.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_5.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_50.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_51.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_6.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_7.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_8.png
trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_9.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
trunk/struts/docs/struts_tools_ref_guide/en/modules/
trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_project_verification.xml
trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - adding images and modules folders to new Struts Tools ref guide
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/Thumbs.db
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/Thumbs.db
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_10.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_11.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_12.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_13.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_14.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_15.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_15.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_16.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_16.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_17.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_17.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_18.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_18.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_19.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_19.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_20.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_20.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_21.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_21.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_22.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_22.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_23.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_23.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_24.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_24.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_25.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_25.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_26.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_26.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_27.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_27.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_28.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_28.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_29.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_29.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_30.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_30.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_31.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_31.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_32.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_32.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_33.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_33.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_34.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_34.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_35.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_35.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_36.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_36.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_37.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_37.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_38.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_38.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_39.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_39.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_3_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_40.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_40.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_41.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_41.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_42.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_42.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_43.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_43.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_44.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_44.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_45.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_45.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_46.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_46.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_47.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_47.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_48.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_48.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_49.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_49.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_50.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_50.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_51.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_51.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_7.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_8.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_9.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/struts/struts_9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml (rev 0)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-03-25 15:21:56 UTC (rev 7112)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="intoduction">
+ <?dbhtml filename="introduction.html"?>
+
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Introduction</title>
+
+ <para>If you prefer develop web applications using Struts technology JBoss Developer Studio also meets your needs.
+
+ JBDS supports the Struts 1.1, 1.2.x versions.</para>
+</chapter>
\ No newline at end of file
Added: trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_project_verification.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_project_verification.xml (rev 0)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_project_verification.xml 2008-03-25 15:21:56 UTC (rev 7112)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="struts_project_verification">
+ <?dbhtml filename="struts_project_verification.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Struts Tools</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Struts Project Verification</title>
+
+ <para>JBoss Developer Studio provides the same functionality for Struts
+ projects. To configure Struts project verification select <emphasis>
+ <property>Window > Preferences</property>
+ </emphasis> from the menu bar, select <emphasis>
+ <property>JBoss Tools > Web > Verification</property>
+ </emphasis> from the Preferences dialog box and then expand the
+ Struts Rules node.</para>
+ <figure>
+ <title>Struts Rules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_8.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Suppose you are working in the Source viewer for a Struts
+ configuration file as shown below:</para>
+ <figure>
+ <title>Struts Configuration File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_9.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>While typing a class name or entering it from the graphical editor,
+ you might make a minor typo (like <emphasis role="italic">
+ <property>"sample.GreetingAction1"</property>
+ </emphasis> instead of <emphasis role="italic">
+ <property>"sample.GreetingAction"</property>
+ </emphasis>). After saving the file,
+ <property>verification</property> checks to make sure everything is
+ correct and finds the error below:</para>
+ <figure>
+ <title>Error Reporting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_10.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Notice that the Package Explorer View shows a marked folder and a
+ marked file where the error is.</para>
+ <para>You can place the cursor over the line with the error to view a
+ detailed error message:</para>
+ <figure>
+ <title>Error Message</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_11.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The verification also checks to make sure you have specified the
+ correct JSP page for the forward:</para>
+ <figure>
+ <title>JSP Page Verification</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_12.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Once you place the cursor over the line, you can see the error
+ message:</para>
+ <figure>
+ <title>Error Message</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_13.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>You can always invoke the verification by switching to the Diagram
+ viewer, right-clicking and selecting <emphasis>
+ <property>Verify</property>
+ </emphasis> from the context menu:</para>
+ <figure>
+ <title>Verify Command</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/verif_valid/verif_valid_14.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+</chapter>
\ No newline at end of file
Added: trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml (rev 0)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml 2008-03-25 15:21:56 UTC (rev 7112)
@@ -0,0 +1,1039 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="struts_tools">
+ <?dbhtml filename="struts_tools.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Struts Tools</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Struts support</title>
+
+ <section id="WorkingWithStrutsProjects866">
+
+ <title>Working with Projects</title>
+
+ <para>JBoss Developer Studio provides the following functionality when
+ working with Struts:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Create new <property>Struts projects</property></para>
+ </listitem>
+ <listitem>
+ <para>Import (open) existing Struts projects. You can import
+ any project structure</para>
+ </listitem>
+ <listitem>
+ <para>Add <property>Struts capabilities</property> to any
+ existing Eclipse project</para>
+ </listitem>
+ <listitem>
+ <para>Import and add Struts capabilities to any existing
+ project created outside Eclipse.</para>
+ </listitem>
+ </itemizedlist>
+
+
+ <section id="CreatingANewStrutsProjec745t">
+
+ <title>Creating a New Struts Project</title>
+
+
+ <para>JBoss Developer Studio includes a New Struts Project Wizard
+ that radically simplifies the process for getting started
+ with a new Struts project. You just need to follow these
+ steps:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Select<emphasis>
+ <property>File > New >
+ Project...</property>
+ </emphasis> from the menu bar. Then, select <emphasis>
+ <property>JBoss Tools Web > Struts >
+ Struts Project</property>
+ </emphasis> in this dialog box. Click <emphasis>
+ <property>Next</property>:
+ </emphasis></para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Selecting Struts Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_2.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>On this form, provide the <property>Project
+ Name</property>. You can also select
+ where to create the project or use the
+ default path.</para>
+ <para>Next to <property>Struts
+ Environment</property> set which Struts
+ version to use.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Creating Struts Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_3.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>Don't put spaces in project names since some
+ OS could experience problems with their processing
+ and searching these files.</para>
+ </tip>
+
+ <para>You can select the KickStart template, then the project
+ created will include a simple Hello World type application
+ that is ready to run.</para>
+
+ <figure>
+ <title>Choosing Struts Template </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_3_1.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Next, you register this application with the
+ current servlet container defined for your
+ workspace (JBoss AS, by default) in order to
+ allow you to test your application more
+ easily while still developing it. A new
+ entry will be added in the servlet container
+ configuration file to enable running the
+ application in-place (called null deployment
+ or link deployment). Uncheck the <emphasis
+ role="italic">
+ <property>"Target
+ Server"</property>
+ </emphasis> check box if for some reason you
+ don't want to register your
+ application at this point.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Registering The Project at Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_4.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>On the next form, you can select the TLD files
+ to include in this project:</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Selecting Tag Libraries</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_5.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After the project is created, you should have the following
+ project structure (if you used the KickStart template):</para>
+
+ <figure>
+ <title>Project Structure</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_6.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>If you want to hide the jar files from Web App
+ Libraries in view, select the down-pointing arrow in
+ the upper right corner, select
+ <emphasis>Filters...</emphasis>, check the box next
+ to Name filter patterns (matching names will be
+ hidden), and type *.jar into the field. Then, click
+ OK. </para>
+ </tip>
+ </section>
+ <section id="ImportingAnExistingStrutsProjectWithAnyStructure9653">
+
+ <title>Importing an Existing Struts Project with Any Structure</title>
+
+ <para>For detailed information on migration projects to JBoss
+ Developer Studio see <ulink
+ url="../../../Exadel-migration/en/html_single/index.html"
+ >Migration Guide</ulink>.</para>
+
+ </section>
+ <section id="AddingStrutsCapabilityToAnExistingWebApplication532">
+
+ <title>Adding Struts Capability to an Existing Web Application</title>
+
+ <para>With JBoss Developer Studio you can add <property>Struts
+ capabilities</property> (including Struts libraries,
+ tag libraries and a Struts configuration file) to any
+ existing Web application project in your Eclipse workspace.
+ By adding a Struts Nature to your project, you can now edit
+ files using JBoss Developer Studio editors, such as the
+ Struts configuration editor and the JBoss Tools JSP editor.</para>
+ <para>To add Struts Nature to your existing Project right-click the
+ project and select <emphasis>
+ <property>JBoss Tools > Add Struts
+ Capabilities</property>
+ </emphasis> from the context menu. This will start the
+ process of adding all necessary libraries and files to make
+ this a Web Struts project.</para>
+
+ <figure>
+ <title>Adding Struts Capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_7.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the wizard you should point to location of your deployment
+ descriptor file web.xml and name of the project.</para>
+
+ <figure>
+ <title>Choosing Project Location</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_8.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>After hitting <emphasis>
+ <property>Next</property>, </emphasis> you will see
+ the following screen. This screen simply means that you need
+ to add at least one Struts module to your project to make
+ this project a Struts project. Adding a Struts module means
+ that a new struts-config.xml will be added to your project
+ and registered in the web.xml file. In addition, all
+ required Struts libraries will be added. To add a Struts
+ module, select the <emphasis>
+ <property>Add Struts Support</property>
+ </emphasis> button.</para>
+ <figure>
+ <title>Project Modules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_9.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Here you can select what Struts <property>Version</property>,
+ <property>Servlet Class</property>, <property>URL
+ Pattern</property> and <property>TLD</property>s to
+ add to this project.</para>
+
+ <figure>
+ <title>Selecting Struts Support Options</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_10.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>When done, you will see the default Struts module
+ configuration information. See how to Edit <link
+ linkend="SupportForMultipleStrutsModules75">Struts
+ modules</link>.</para>
+
+ <figure>
+ <title>Project Configuration Information</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_11.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the last screen you can set the different folders for your
+ project as well as register this application with a servlet
+ container. If you want the libraries (.jar files) will be
+ automatically added to your project, click on the checkbox <emphasis>
+ <property>Add Libraries</property>.</emphasis></para>
+
+ <figure>
+ <title>Registering the Project at Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_12.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>When done, you can open end edit the struts-config.xml file
+ using usefull Struts configuration file editor provided by
+ JBDS. (The Struts configuration is shown below in the Tree
+ viewer).</para>
+
+ <figure>
+ <title>Struts-config.xml File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_13.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ </section>
+ <section id="GraphicalEditorForStrutsConfigurationFiles564">
+
+ <title>Graphical Editor for Struts Configuration Files</title>
+
+ <para>The Struts configuration file editor has three modes with different
+ representation of <emphasis>
+ <property>struts-config.xml</property>: </emphasis>Diagram,
+ Tree and Source. The modes can be selected via the tabs at the
+ bottom of the editor. Any changes made in one mode are immediately
+ visible when you switch to any other mode.</para>
+
+ <para>When working in Source view, you always have all the following
+ features available:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Content Assist</para>
+ </listitem>
+ <listitem>
+ <para>Open On Selection</para>
+ </listitem>
+ <listitem>
+ <para>File Folding</para>
+ </listitem>
+ </itemizedlist>
+ <section id="StrutsDiagramMode453">
+
+ <title>Diagram Mode</title>
+
+ <para>The Diagram mode graphically displays the Web flow of the
+ application defined in the Struts configuration file.</para>
+
+ <figure>
+ <title>Diagram Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_14.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The Diagram mode allows to edit navigation in your Struts
+ application. Just by right-clicking anywhere on the diagram,
+ you can use a context menu to create the building blocks of
+ a Struts application:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Actions</para>
+ </listitem>
+ <listitem>
+ <para>Global forwards</para>
+ </listitem>
+ <listitem>
+ <para>Global exceptions</para>
+ </listitem>
+ <listitem>
+ <para>JSP Pages</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Diagram Context Menu</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_15.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Along the upper-left side of the editor is a stack of seven
+ icons for changing the behavior of the cursor in the
+ diagram. </para>
+
+ <figure>
+ <title>Editor Icons</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_16.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The first icon switches to the default regular selection
+ cursor, the second to the marquee selection cursor and the
+ third to the new connection cursor. The last four icons
+ switch the cursor to an insert cursor for each type of
+ Struts build block listed above (and in the order listed).</para>
+
+ <para>For instance, clicking on the first of these four icons (the
+ one with the gears) will switch the cursor to insert
+ actions. Clicking anywhere in the diagram with this cursor
+ has the same effect as right-click and selecting <emphasis>
+ <property>Add > Action...</property>
+ </emphasis> from the context menu with the regular cursor
+ active. It's just more efficient to use this cursor
+ if you're adding more than one action at once.</para>
+
+
+ </section>
+ <section id="StrutsTreeMode42">
+
+ <title>Tree Mode</title>
+
+ <para>The Tree mode represents the different elements of the Struts
+ application that are organized into functional categories on
+ the left-hand side and a form for editing the properties of
+ currently selected items on the right-hand side.</para>
+
+ <figure>
+ <title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_17.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can also right-click on any node in the category tree and
+ perform appropriate operations through a context menu. For
+ instance, by right-clicking on the action-mappings category
+ node, you can add new actions to the application.</para>
+
+ <figure>
+ <title>Tree Context Menu</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_18.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsSourceMode9655">
+
+ <title>Source Mode</title>
+
+ <para>In the Source mode, you have complete editing control of the
+ underlying XML coding.</para>
+
+ <figure>
+ <title>Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_19.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can take advantage of <link
+ linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
+ >code assist</link>.</para>
+
+ <figure>
+ <title>Code Assist</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_20.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The editor will also immediately flag any errors.</para>
+
+ <figure>
+ <title>Errors in Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_21.png"
+ scale="83"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Finally, you can use the Outline view with the editor to
+ easily navigate through the file.</para>
+
+ <figure>
+ <title>Outline View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_22.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <para>Find more information about editor features <link
+ linkend="editors_features">here</link>.</para>
+
+ </section>
+
+ <section id="GraphicalEditorForTilesFiles132">
+
+ <title>Graphical Editor for Tiles Files</title>
+
+ <para>The Tiles configuration file editor has three main modes: Tree,
+ Diagram and Source. The modes can be selected via the tabs at the
+ bottom of the editor. Any changes made in one mode are immediately
+ visible when you switch to any other mode.</para>
+
+ <para>When working in Source view, you always have all following features
+ available:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Content Assist</para>
+ </listitem>
+ <listitem>
+ <para>Open On Selection</para>
+ </listitem>
+ </itemizedlist>
+ <section id="CreateNewTilesFile1422">
+
+ <title>Create New Tiles File</title>
+
+ <para>To create new Tiles files, right click any folder and select <emphasis>
+ <property>New > Tiles File</property>.
+ </emphasis></para>
+ <figure>
+ <title>Creating a New Tiles File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_23.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsTreeView896">
+
+ <title>Tree Mode</title>
+
+ <para>The Tree mode represents the different elements of the Tiles
+ file that are organized into functional categories on the
+ left-hand side and a form for editing the properties of
+ currently selected items on the right-hand side.</para>
+ <figure>
+ <title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_24.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To edit the file, simply right click any node and select among
+ the available actions.</para>
+ <figure>
+ <title>Editing in Tiles Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_25.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsDiagramView4643">
+
+ <title>Diagram Mode</title>
+
+ <para>The Diagram mode allows you to create complex Tiles files in
+ the form of a diagram.</para>
+ <figure>
+ <title>Diagram Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_26.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To create new definitions, simply right click anywhere in the
+ diagram.</para>
+ <figure>
+ <title>Creating New Definition</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_27.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can also use the Diagram toolbar to make editing easier.</para>
+ <figure>
+ <title>Diagram Toolbar</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_28.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para> It contains four icons for changing the cursor state. The
+ first one is the default cursor state for selecting existing
+ nodes. The second icon is marquee selector. The third is
+ used for creating new connections and the last one is for
+ adding definition template to the content.</para>
+ </section>
+ <section id="StrutsSource75">
+
+ <title>Source</title>
+
+ <para>The other mode of the <property>Tiles editor</property> is the
+ Source mode that gives you full control over the source. Any
+ changes here will immediately appear in other modes when you
+ switch to them.</para>
+ <figure>
+ <title>Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_29.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para><link
+ linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
+ >Code assist</link> is available in the Source mode.</para>
+ <figure>
+ <title>Code Assist</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_30.png"
+ scale="85"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Any errors are immediately reported as shown below:</para>
+ <figure>
+ <title>Errors Reporting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_31.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can also use the Outline view together with the
+ editor's Source mode. It provides an easier
+ navigation through the file.</para>
+ <figure>
+ <title>Outline View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_32.png"
+ scale="85"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ </section>
+ <section id="GraphicalEditorForStrutsValidationFiles86">
+
+ <title>Graphical Editor for Struts Validation Files</title>
+
+ <para>Providing full support for development Struts applications JBoss
+ Developer Studio comes with a visual validation editor. To create a
+ new validation file, right click any folder in Project Explorer and
+ select <emphasis>
+ <property>File > New > Other...</property>
+ </emphasis>from the context menu and then <emphasis>
+ <property>JBoss Tools Web > Struts > Validation
+ File</property>. </emphasis></para>
+ <figure>
+ <title>Creating New Validation File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_33.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The validation editor works with five modes: Formsets, Validators,
+ Constants and standard Tree and Source that you can easily switch
+ over using tabs at the bottom of the editor.</para>
+ <para>The Formsets mode shows forms and their elements on the left side and
+ the dialogue for defining their validation rules on the right side.</para>
+ <figure>
+ <title>Formsets Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_34.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The Constants mode let you set constant values for your validation
+ rules.</para>
+ <figure>
+ <title>Constansts Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_35.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The validation file can also be viewed in a Tree mode.</para>
+ <figure>
+ <title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_36.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>At any point you have full control over the source by switching to the
+ Source mode. Any editing in this mode will immediately be available
+ in other modes of the editor.</para>
+ <figure>
+ <title>Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_37.png"
+ scale="85"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can also open your own custom or Struts-standard <emphasis>
+ <property>validation-rules.xml</property>
+ </emphasis> file.</para>
+ <para>The Validators mode shows the validation rules for a selected
+ validator. You can of course add your own rules.</para>
+ <figure>
+ <title>Validators Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_38.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Here are the validation rules shown in the Source mode.</para>
+ <figure>
+ <title>Validation Rules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_39.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="SupportForMultipleStrutsModules75">
+
+ <title>Support for Multiple Struts Modules</title>
+
+ <para>JBoss Developer Studio supports working with Struts projects that have
+ multiple modules. You can easily do the following:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Add new modules</para>
+ </listitem>
+ <listitem>
+ <para>Edit modules for an existing project or during Struts
+ project import</para>
+ </listitem>
+ </itemizedlist>
+
+ <section id="WhenImportingAStrutsProject432">
+
+ <title>When Importing a Struts Project</title>
+
+ <para>During Struts project import, if the project has multiple
+ modules, you will see a screen with all existing modules.
+ You can select each module and edit its details.</para>
+
+ <figure>
+ <title>Configuring Project Modules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_40.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="EditingModulesInAnExistingProject1">
+
+ <title>Editing Modules in an Existing Project</title>
+ <para>To edit modules in an existing project, right click the
+ project and select <emphasis>
+ <property>JBoss Tools > Modules
+ Configuration</property>. </emphasis></para>
+ <figure>
+ <title>Choosing Modules Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_41.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>You will see the same screen as above where you will be able
+ to select a module and edit its details.</para>
+ <figure>
+ <title>Modules Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_42.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="AddingNewModules1">
+
+ <title>Adding New Modules</title>
+
+ <para>Adding a new module is very simple. First switch to Web
+ Project view. Expand your project to the Configuration
+ folder. Under that folder you should see the current
+ modules. Right click on Configuration and select <emphasis>
+ <property>New > Struts Config</property>.
+ </emphasis></para>
+ <figure>
+ <title>Adding New Modules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_43.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>You will see the screen below. You can specify a new module
+ name and also add the new Struts configuration file to
+ web.xml file.</para>
+ <figure>
+ <title>Adding New Modules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/struts/struts_44.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ </section>
+ <section id="CodeGenerationForActionFormBeanForwardAndExceptionClasses1">
+
+ <title>Code Generation for Action, FormBean, Forward and Exception Classes</title>
+
+ <para>JBoss Developer Studio comes with a <property>code
+ generation</property> feature. You can generate stub code for Struts
+ Actions, FormBeans, Forwards and Exceptions.</para>
+
+ <para>The code generation in JBoss Developer Studio is based on Velocity
+ templates which can be modified for your use. The templates are
+ located at <emphasis>
+ <property> {RedHatDeveloperStudioHome} > templates >
+ codegeneration</property>. </emphasis></para>
+
+ <para>There are a number of ways to invoke code generation. One is simply
+ right-clicking the Struts diagram and selecting <emphasis>
+ <property>Generate Java Code....</property>
+ </emphasis></para>
+
+ <figure>
+ <title>Selecting Generate Java Code</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_45.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On this screen you can select for which elements to generate code. If
+ you select Next you will be able to specify more options for each of
+ the categories you selected.</para>
+
+ <figure>
+ <title>Generate - Step 1</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_46.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>please be careful not to override your existing files.</para>
+ </tip>
+
+ <para>When generation is complete, a result window will appear letting you
+ know how many classes were generated:</para>
+
+ <figure>
+ <title>Generation Finished</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_47.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You don't always have to generate code for all elements at
+ once. You can invoke generation for just an individual Struts
+ artifact as well. Right-click an element on the diagram of the
+ Struts configuration file and select <emphasis>
+ <property>Generate Java Code...</property>
+ </emphasis> from the context menu.</para>
+
+ <figure>
+ <title>Generation For Individual Struts Artifact</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_48.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The same can be done from within the Tree viewer for the editor of the
+ Struts configuration file.</para>
+
+ <figure>
+ <title>Generation in Struts Config Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_49.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsConfigurationFileDebugger097">
+
+ <title>Struts Configuration File Debugger</title>
+
+ <para>JBoss Developer Studio comes with <property>Struts configuration file
+ debugger</property>. It allows you to set break points on
+ Struts diagram and then simply launch the server in debug mode.</para>
+
+ <para>Simply right click an Action or a page and select Add <emphasis>
+ <property>Breakpoint</property>. </emphasis></para>
+ <figure>
+ <title>Adding Breakpoint</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_50.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="CustomizablePageLinksRecognizer1">
+
+ <title>Customizable Page Links Recognizer</title>
+
+ <para><property>Custom page links</property> allow you to define custom
+ Struts page links that will be recognizable in the Struts
+ application diagram. You can define these links by selecting <emphasis>
+ <property>Window > Preferences</property>
+ </emphasis> from the menu bar and then selecting <emphasis>
+ <property>JBoss Tools > Web > Struts >
+ Customization</property>
+ </emphasis> from the Preferences dialog box.</para>
+ <figure>
+ <title>Customization Panel</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_51.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>Find out necessary information on <ulink
+ url="http://struts.apache.org/">Struts technology</ulink> if
+ you don't know enough.</para>
+ </section>
+ </chapter>
\ No newline at end of file
18 years
JBoss Tools SVN: r7111 - in trunk/struts/docs: resources and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 11:05:50 -0400 (Tue, 25 Mar 2008)
New Revision: 7111
Added:
trunk/struts/docs/resources/
trunk/struts/docs/resources/styles/
trunk/struts/docs/resources/styles/en/
trunk/struts/docs/resources/styles/en/Images/
trunk/struts/docs/resources/styles/en/Images/bg_table.gif
trunk/struts/docs/resources/styles/en/Images/ico_important.gif
trunk/struts/docs/resources/styles/en/Images/ico_note.gif
trunk/struts/docs/resources/styles/en/Images/ico_tip.gif
trunk/struts/docs/resources/styles/en/code-highlight.xsl
trunk/struts/docs/resources/styles/en/collapsing-navigation.xsl
trunk/struts/docs/resources/styles/en/eclipse.xsl
trunk/struts/docs/resources/styles/en/fopdf.xsl
trunk/struts/docs/resources/styles/en/highlight.xsl
trunk/struts/docs/resources/styles/en/html.css
trunk/struts/docs/resources/styles/en/html.xsl
trunk/struts/docs/resources/styles/en/html_chunk.xsl
trunk/struts/docs/resources/styles/en/script/
trunk/struts/docs/resources/styles/en/script/toggle.js
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - adding resources folder
Added: trunk/struts/docs/resources/styles/en/Images/bg_table.gif
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/resources/styles/en/Images/bg_table.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/resources/styles/en/Images/ico_important.gif
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/resources/styles/en/Images/ico_important.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/resources/styles/en/Images/ico_note.gif
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/resources/styles/en/Images/ico_note.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/resources/styles/en/Images/ico_tip.gif
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/resources/styles/en/Images/ico_tip.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/resources/styles/en/code-highlight.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/code-highlight.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/code-highlight.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<!--
+
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default"
+ xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
+ >
+
+ <xsl:template match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']|programlisting[@role='CSS']">
+
+ <xsl:variable name="role">
+ <xsl:value-of select="s:toUpperCase(string(@role))" xmlns:s="java:java.lang.String"/>
+ </xsl:variable>
+ <xsl:variable name="child.content">
+ <xsl:apply-templates/>
+ </xsl:variable>
+ <xsl:variable name="factory" select="rf:instance()"/>
+ <xsl:variable name="hiliter" select="rf:getRenderer($factory, string($role))"/>
+ <pre class="{$role}">
+ <xsl:choose>
+ <xsl:when test="$hiliter">
+ <xsl:value-of select="jhr:highlight($hiliter, $role, string($child.content), 'UTF-8', true())"
+ xmlns:jhr="com.uwyn.jhighlight.renderer.Renderer" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$child.content"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </pre>
+
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: trunk/struts/docs/resources/styles/en/collapsing-navigation.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/collapsing-navigation.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/collapsing-navigation.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,199 @@
+<!DOCTYPE xsl:stylesheet>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+ <xsl:template name="subtoc">
+ <xsl:param name="toc-context" select="." />
+ <xsl:param name="nodes" select="NOT-AN-ELEMENT" />
+
+ <xsl:variable name="toc.mark">
+ <xsl:apply-templates mode="toc.mark" select="." />
+ </xsl:variable>
+
+ <xsl:variable name="should.collapse.list"
+ select="string-length(string($toc.mark)) > 0">
+ </xsl:variable>
+
+ <xsl:variable name="toc.on.plus.mark">
+ <xsl:choose>
+ <xsl:when test="$should.collapse.list">
+ <xsl:copy-of select="$toc.mark"></xsl:copy-of>
+ </xsl:when>
+ <xsl:otherwise>
+ <span class="expand_collapse_toc" style="visibility:hidden;">  </span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="nodes.plus" select="$nodes | qandaset" />
+
+ <xsl:variable name="subtoc">
+ <xsl:element name="{$toc.list.type}">
+ <xsl:choose>
+ <xsl:when test="$qanda.in.toc != 0">
+ <xsl:apply-templates mode="toc"
+ select="$nodes.plus">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates mode="toc"
+ select="$nodes">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:variable>
+
+ <xsl:variable name="depth">
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'section'">
+ <xsl:value-of select="count(ancestor::section) + 1" />
+ </xsl:when>
+ <xsl:when test="local-name(.) = 'sect1'">1</xsl:when>
+ <xsl:when test="local-name(.) = 'sect2'">2</xsl:when>
+ <xsl:when test="local-name(.) = 'sect3'">3</xsl:when>
+ <xsl:when test="local-name(.) = 'sect4'">4</xsl:when>
+ <xsl:when test="local-name(.) = 'sect5'">5</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect1'">1</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect2'">2</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect3'">3</xsl:when>
+ <xsl:when test="local-name(.) = 'simplesect'">
+ <!-- sigh... -->
+ <xsl:choose>
+ <xsl:when test="local-name(..) = 'section'">
+ <xsl:value-of
+ select="count(ancestor::section)" />
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect1'">
+ 2
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect2'">
+ 3
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect3'">
+ 4
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect4'">
+ 5
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect5'">
+ 6
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect1'">
+ 2
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect2'">
+ 3
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect3'">
+ 4
+ </xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="depth.from.context"
+ select="count(ancestor::*)-count($toc-context/ancestor::*)" />
+
+ <xsl:variable name="subtoc.list">
+ <xsl:choose>
+ <xsl:when test="$toc.dd.type = ''">
+ <xsl:copy-of select="$subtoc" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="{$toc.dd.type}">
+ <xsl:if test="$should.collapse.list">
+ <xsl:attribute name="style">display:none;</xsl:attribute>
+ </xsl:if>
+ <xsl:copy-of select="$subtoc" />
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+
+ <xsl:element name="{$toc.listitem.type}">
+
+ <xsl:copy-of select="$toc.on.plus.mark"></xsl:copy-of>
+ <xsl:call-template name="toc.line">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:call-template>
+
+ <xsl:if
+ test="$toc.listitem.type = 'li'
+ and $toc.section.depth > $depth and
+ ( ($qanda.in.toc = 0 and count($nodes)>0) or
+ ($qanda.in.toc != 0 and count($nodes.plus)>0) )
+ and $toc.max.depth > $depth.from.context">
+ <xsl:copy-of select="$subtoc.list" />
+ </xsl:if>
+ </xsl:element>
+ <xsl:if
+ test="$toc.listitem.type != 'li'
+ and $toc.section.depth > $depth and
+ ( ($qanda.in.toc = 0 and count($nodes)>0) or
+ ($qanda.in.toc != 0 and count($nodes.plus)>0) )
+ and $toc.max.depth > $depth.from.context">
+ <xsl:copy-of select="$subtoc.list" />
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="section|chapter" mode="toc.mark">
+ <xsl:variable name="subchapters">
+ <xsl:apply-templates select="child::section" mode="toc" />
+ </xsl:variable>
+
+ <xsl:if test="string-length(string($subchapters))">
+ <xsl:call-template name="toggle.expand.mark" />
+ <xsl:call-template name="toggle.collapse.mark" />
+ </xsl:if>
+
+ </xsl:template>
+
+ <xsl:template match="*" mode="toc.mark">
+
+ </xsl:template>
+
+ <xsl:template name="user.head.content">
+ <xsl:param name="node" select="." />
+ <script type="text/javascript" src="script/toggle.js"></script>
+ </xsl:template>
+
+ <xsl:template name="toggle.expand.mark">
+ <xsl:param name="visible" select="true()"/>
+ <span onclick="toc.expand(this)" class="expand_collapse_toc">
+ <xsl:call-template name="render.display">
+ <xsl:with-param name="visible" select="$visible" />
+ </xsl:call-template>
+ <xsl:text>+</xsl:text>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="toggle.collapse.mark">
+ <xsl:param name="visible" select="false()"/>
+ <span onclick="toc.collapse(this)" class="expand_collapse_toc">
+ <xsl:call-template name="render.display">
+ <xsl:with-param name="visible" select="$visible" />
+ </xsl:call-template>
+ <xsl:text>-</xsl:text>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="render.display">
+ <xsl:param name="visible" select="false()"/>
+ <xsl:attribute name="style">
+ <xsl:if test="not($visible)">display:none;</xsl:if>
+ </xsl:attribute>
+ </xsl:template>
+
+
+</xsl:stylesheet>
Added: trunk/struts/docs/resources/styles/en/eclipse.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/eclipse.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/eclipse.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,186 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+
+
+
+ <!-- Import of the original stylesheet which "just" creates
+ a bunch of HTML files from any valid DocBook instance -->
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+
+ <xsl:include href="./highlight.xsl"></xsl:include>
+
+ <!--START HTML_CHUNK -->
+
+ <!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="chunk.section.depth">'5'</xsl:param>
+ <xsl:param name="use.id.as.filename">'1'</xsl:param>
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
+
+ <!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 5 in the TOCs -->
+ <xsl:param name="toc.section.depth">5</xsl:param>
+
+ <!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+ <!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+ <!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+ <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
+
+ <xsl:param name="ignore.image.scaling" select="1"/>
+
+
+<!--END HTML_CHUNK -->
+
+ <!-- You must plug-in your custom templates here -->
+ <xsl:template match="/">
+ <!-- Call original code from the imported stylesheet -->
+ <xsl:apply-imports/>
+
+ <!-- Call custom templates for the ToC and the manifest -->
+ <xsl:call-template name="etoc"/>
+ <xsl:call-template name="plugin.xml"/>
+ </xsl:template>
+
+ <!-- Template for creating auxiliary ToC file -->
+ <xsl:template name="etoc">
+ <xsl:call-template name="write.chunk">
+ <xsl:with-param name="filename" select="'toc.xml'"/>
+ <xsl:with-param name="method" select="'xml'"/>
+ <xsl:with-param name="encoding" select="'utf-8'"/>
+ <xsl:with-param name="indent" select="'yes'"/>
+ <xsl:with-param name="content">
+
+ <!-- Get the title of the root element -->
+ <xsl:variable name="title">
+ <xsl:apply-templates select="/*" mode="title.markup"/>
+ </xsl:variable>
+
+ <!-- Get HTML filename for the root element -->
+ <xsl:variable name="href">
+ <xsl:call-template name="href.target.with.base.dir">
+ <xsl:with-param name="object" select="/*"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <!-- Create root element of ToC file -->
+ <toc label="{$title}" topic="{$href}">
+ <!-- Get ToC for all children of the root element -->
+ <xsl:apply-templates select="/*/*" mode="etoc"/>
+ </toc>
+
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Template which converts all DocBook containers into
+ one entry in the ToC file -->
+ <xsl:template match="book|part|reference|preface|chapter|
+ bibliography|appendix|article|glossary|
+ section|sect1|sect2|sect3|sect4|sect5|
+ refentry|colophon|bibliodiv|index"
+ mode="etoc">
+ <!-- Get the title of the current element -->
+ <xsl:variable name="title">
+ <xsl:apply-templates select="." mode="title.markup"/>
+ </xsl:variable>
+
+ <!-- Get HTML filename for the current element -->
+ <xsl:variable name="href">
+ <xsl:call-template name="href.target.with.base.dir"/>
+ </xsl:variable>
+
+ <!-- Create ToC entry for the current node and process its
+ container-type children further -->
+ <topic label="{$title}" href="{$href}">
+ <xsl:apply-templates select="part|reference|preface|chapter|
+ bibliography|appendix|article|
+ glossary|section|sect1|sect2|
+ sect3|sect4|sect5|refentry|
+ colophon|bibliodiv|index"
+ mode="etoc"/>
+ </topic>
+
+ </xsl:template>
+
+ <!-- Default processing in the etoc mode is no processing -->
+ <xsl:template match="text()" mode="etoc"/>
+
+ <!-- Template for generating the manifest file -->
+ <xsl:template name="plugin.xml">
+ <xsl:call-template name="write.chunk">
+ <xsl:with-param name="filename" select="'plugin.xml'"/>
+ <xsl:with-param name="method" select="'xml'"/>
+ <xsl:with-param name="encoding" select="'utf-8'"/>
+ <xsl:with-param name="indent" select="'yes'"/>
+ <xsl:with-param name="content">
+ <plugin name="{$eclipse.plugin.name}"
+ id="{$eclipse.plugin.id}"
+ version="1.0"
+ provider-name="{$eclipse.plugin.provider}">
+ <extension point="org.eclipse.help.toc">
+ <toc file="toc.xml" primary="true"/>
+ </extension>
+ </plugin>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Customization parameters for the manifest file -->
+ <xsl:param name="eclipse.plugin.name">DocBook Online Help Sample</xsl:param>
+ <xsl:param name="eclipse.plugin.id">com.example.help</xsl:param>
+ <xsl:param name="eclipse.plugin.provider">Example provider</xsl:param>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: trunk/struts/docs/resources/styles/en/fopdf.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/fopdf.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/fopdf.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,543 @@
+<?xml version="1.0"?>
+
+<!--
+ This was originally the XSL FO configuration file for the Hibernate
+ Reference Documentation. It defines a custom titlepage and
+ the parameters for the A4 sized PDF printable output. It is released
+ under the LGPL.
+
+ Modifications were made to better suit the needs of the JBoss documentation.
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="#default">
+
+
+ <!-- import the main docbook.xsl before we apply our overrides -->
+ <xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>
+
+
+ <!-- ########## XRef -->
+ <!-- this controls whether xrefs have the title in it. We
+ don't want that -->
+ <xsl:param name="xref.with.number.and.title" select="0"/>
+
+ <xsl:template match="processing-instruction('lb')">
+ <fo:block>
+ <xsl:text> </xsl:text>
+ </fo:block>
+ </xsl:template>
+
+ <!--########## Custom Title Page -->
+ <xsl:template name="book.titlepage.recto">
+ <fo:block>
+ <fo:table table-layout="fixed" width="175mm">
+ <fo:table-column column-width="175mm"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <xsl:if test="bookinfo/mediaobject">
+ <fo:block>
+ <fo:external-graphic>
+ <xsl:attribute name="src">
+ FILE:<xsl:value-of
+ select="bookinfo/mediaobject/imageobject/imagedata/@fileref" />
+ </xsl:attribute>
+ </fo:external-graphic>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/title">
+ <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/title"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/subtitle">
+ <fo:block font-family="Helvetica" font-size="18pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/subtitle"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/releaseinfo">
+ <fo:block font-family="Helvetica" font-size="12pt"
+ padding="10mm"><xsl:value-of select="bookinfo/releaseinfo"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/copyright">
+ <fo:block font-family="Helvetica" font-size="12pt"
+ padding="10mm">
+
+ <xsl:apply-templates select="bookinfo/copyright"
+ mode="titlepage.mode"/>
+ </fo:block>
+ </xsl:if>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </xsl:template>
+
+ <!-- Prevent blank pages in output -->
+ <xsl:template name="book.titlepage.before.verso"/>
+ <xsl:template name="book.titlepage.verso"/>
+ <xsl:template name="book.titlepage.separator"/>
+
+
+ <!--###################################################
+ Header
+ ################################################### -->
+ <!-- More space in the center header for long text -->
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$body.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="margin-left">-5em</xsl:attribute>
+ <xsl:attribute name="margin-right">-5em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Custom Footer
+ ################################################### -->
+ <!-- This footer prints the Hibernate version number on the left side -->
+ <xsl:template name="footer.content">
+ <xsl:param name="pageclass" select="''"/>
+ <xsl:param name="sequence" select="''"/>
+ <xsl:param name="position" select="''"/>
+ <xsl:param name="gentext-key" select="''"/>
+ <xsl:variable name="Version">
+ <xsl:choose>
+ <xsl:when test="//releaseinfo">
+ <xsl:text></xsl:text>
+ <xsl:value-of select="//releaseinfo"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$sequence='blank'">
+ <xsl:choose>
+ <xsl:when test="$double.sided != 0 and $position = 'left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position = 'center'">
+ <!-- nop -->
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:page-number/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$pageclass='titlepage'">
+ <!-- nop: other titlepage sequences have no footer -->
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Custom Toc Line
+ ################################################### -->
+ <!-- Improve the TOC. -->
+ <xsl:template name="toc.trt">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <fo:block text-align-last="justify" end-indent="{$toc.indent.width}pt" last-line-end-indent="-{$toc.indent.width}pt">
+ <fo:inline keep-with-next.within-line="always">
+ <fo:basic-link internal-destination="{$id}">
+ <!-- Chapter titles should be bold. -->
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'chapter'">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:if test="$label != ''">
+ <xsl:copy-of select="$label"/>
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </fo:basic-link>
+ </fo:inline>
+ <fo:inline keep-together.within-line="always">
+ <xsl:text/>
+ <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
+ leader-alignment="reference-area" keep-with-next.within-line="always"/>
+ <xsl:text/>
+ <fo:basic-link internal-destination="{$id}">
+ <fo:page-number-citation ref-id="{$id}"/>
+ </fo:basic-link>
+ </fo:inline>
+ </fo:block>
+ </xsl:template>
+
+
+ <!--###################################################
+ Extensions
+ ################################################### -->
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+
+ <xsl:param name="linenumbering.extension">1</xsl:param>
+ <xsl:param name="linenumbering.everyNth">1</xsl:param>
+ <xsl:param name="linenumbering.separator">: </xsl:param>
+
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <!-- FOP provide only PDF Bookmarks at the moment -->
+ <xsl:param name="fop1.extensions">1</xsl:param>
+
+
+
+ <!--###################################################
+ Table Of Contents
+ ################################################### -->
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc"> book toc,title</xsl:param>
+ <!-- ,figure,table,equation -->
+ <!-- Show only Sections up to level 5 in the TOCs -->
+ <xsl:param name="toc.section.depth">5</xsl:param>
+ <!-- Dot and Whitespace as separator in TOC between Label and Title-->
+ <xsl:param name="autotoc.label.separator" select="'. '"/>
+
+
+ <!--###################################################
+ Paper & Page Size
+ ################################################### -->
+ <!-- Paper type, no headers on blank pages, no double sided printing -->
+<!-- <xsl:param name="paper.type" select="'A4'"/>-->
+ <xsl:param name="double.sided">0</xsl:param>
+ <xsl:param name="headers.on.blank.pages">0</xsl:param>
+ <xsl:param name="footers.on.blank.pages">0</xsl:param>
+ <!-- Space between paper border and content (chaotic stuff, don't touch) -->
+ <xsl:param name="page.margin.top">5mm</xsl:param>
+ <xsl:param name="region.before.extent">10mm</xsl:param>
+ <xsl:param name="body.margin.top">10mm</xsl:param>
+ <xsl:param name="body.margin.bottom">15mm</xsl:param>
+ <xsl:param name="region.after.extent">10mm</xsl:param>
+ <xsl:param name="page.margin.bottom">0mm</xsl:param>
+ <xsl:param name="page.margin.outer">18mm</xsl:param>
+ <xsl:param name="page.margin.inner">18mm</xsl:param>
+ <!-- No intendation of Titles -->
+ <xsl:param name="title.margin.left">0pc</xsl:param>
+
+
+ <!--###################################################
+ Fonts & Styles
+ ################################################### -->
+ <!-- Default Font size -->
+ <xsl:param name="body.font.master">11</xsl:param>
+ <!-- Line height in body text -->
+ <xsl:param name="line-height">1.4</xsl:param>
+ <!-- Monospaced fonts are smaller than regular text -->
+ <xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="font-size">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Tables
+ ################################################### -->
+ <!-- The table width should be adapted to the paper size -->
+ <xsl:param name="default.table.width">17.4cm</xsl:param>
+ <!-- Some padding inside tables -->
+ <xsl:attribute-set name="table.cell.padding">
+ <xsl:attribute name="padding-left">4pt</xsl:attribute>
+ <xsl:attribute name="padding-right">4pt</xsl:attribute>
+ <xsl:attribute name="padding-top">4pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Only hairlines as frame and cell borders in tables -->
+ <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+
+
+
+ <!--###################################################
+ Labels
+ ################################################### -->
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+
+ <!--###################################################
+ Titles
+ ################################################### -->
+
+ <xsl:attribute-set name="chapter.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <xsl:attribute-set name="appendix.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:template name="appendix.titlepage.before.recto">
+ <xsl:param name="node" select="ancestor-or-self::appendix[1]"/>
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="A"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template name="chapter.titlepage.before.recto">
+ <xsl:param name="node" select="ancestor-or-self::chapter[1]"/>
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="1"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::appendix[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="appendix.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::chapter[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="chapter.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+
+ <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
+ <xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.5"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.25"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="space-before.optimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.0"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Titles of formal objects (tables, examples, ...) -->
+ <xsl:attribute-set name="formal.title.properties"
+ use-attribute-sets="normal.para.spacing">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!-- ########## blockquote -->
+ <xsl:attribute-set name="blockquote.properties">
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Programlistings
+ ################################################### -->
+ <!-- Verbatim text formatting (programlistings) -->
+ <xsl:attribute-set name="verbatim.properties">
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Shade (background) programlistings -->
+ <xsl:param name="shade.verbatim">1</xsl:param>
+ <xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Callouts
+ ################################################### -->
+ <!-- We want to use callouts... -->
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <!-- Place callout bullets at this column in programmlisting.-->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+ <!--
+ No, don't use crappy graphics for the callout bullets. This setting
+ enables some weird Unicode rendering for some fancy bullet points
+ in callouts. By default, this can only count to 10 and produces
+ strange results if you ever have more than 10 callouts for one
+ programlisting. We will fix that next.
+ -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+ <!--
+ Again, fun with DocBook XSL: The callout bullets are rendered in
+ two places: In the programlisting itself and in the list below
+ the listing, with the actual callout text. The rendering in the
+ programlisting is some XSL transformer extension (e.g. a Saxon
+ extension), so we can't change that without messing with the
+ extensions. We only can turn it off by setting this limit to
+ zero, then, a simple bracket style like "(3)" and "(4)" will
+ be used in the programlisting.
+ -->
+ <xsl:param name="callout.unicode.number.limit" select="'0'"/>
+ <!--
+ The callout bullets in the actual callout list will be rendered
+ with an XSL FO template. The default template is broken: limited to 10
+ nice looking Unicode bullet points and then it doesn't print anything,
+ the fallback doesn't work. We implement our own template, which is not
+ as complicated, more ugly, but works. As always, function is more
+ important than form.
+ -->
+ <xsl:template name="callout-bug">
+ <xsl:param name="conum" select="1"/>
+ <fo:inline color="black" padding-top="0.1em" padding-bottom="0.1em"
+ padding-start="0.2em" padding-end="0.2em" baseline-shift="0.1em"
+ font-family="{$monospace.font.family}" font-weight="bold" font-size="75%">
+ <xsl:text>(</xsl:text>
+ <xsl:value-of select="$conum"/>
+ <xsl:text>)</xsl:text>
+ </fo:inline>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Misc
+ ################################################### -->
+ <!-- Correct placement of titles for figures and examples. -->
+ <xsl:param name="formal.title.placement"> figure after example before
+ equation before table before procedure before </xsl:param>
+ <!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
+ <xsl:param name="variablelist.as.blocks">1</xsl:param>
+ <!-- The horrible list spacing problems, this is much better. -->
+ <xsl:attribute-set name="list.block.spacing">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Newer DocBook XSL apparently thinks that some sections are by
+ default "draft" status, and this idiotic thing is by default
+ also set to "maybe", so it spits out a lot of errors with the
+ latest FOP as the XSL/FO styles have references to some draft
+ watermarks, which you actually don't want in the first place.
+ Turn this crap off. If you have to work with the "status"
+ attribute, don't.
+ -->
+ <xsl:param name="draft.mode" select="'no'"/>
+
+</xsl:stylesheet>
Added: trunk/struts/docs/resources/styles/en/highlight.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/highlight.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/highlight.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,18 @@
+<!DOCTYPE xsl:stylesheet>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+ <xsl:template match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']">
+ <xsl:variable name="kidz">
+ <xsl:apply-templates></xsl:apply-templates>
+ </xsl:variable>
+ <pre class="{@role}">
+ <xsl:value-of
+ select="javahl:highlight(string($kidz), attribute::role)"
+ xmlns:javahl="java:com.exadel.docbook.colorer.HighLighter"
+ disable-output-escaping="yes"/>
+ </pre>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: trunk/struts/docs/resources/styles/en/html.css
===================================================================
--- trunk/struts/docs/resources/styles/en/html.css (rev 0)
+++ trunk/struts/docs/resources/styles/en/html.css 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,409 @@
+* {
+ LINE-HEIGHT: 20px; FONT-FAMILY: verdana, helvetica, sans-serif
+}
+DIV.navheader TABLE, DIV.navheader TABLE td, DIV.navfooter TABLE, DIV.navfooter TABLE td{
+ BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-SIZE: 11px; padding : 0px;
+}
+A {
+ COLOR: #2a7bd4; FONT-FAMILY: verdana, helvetica, sans-serif
+}
+A:hover {
+ COLOR: #003399; FONT-FAMILY: verdana, helvetica, sans-serif
+}
+A:visited {
+ COLOR: #888888; FONT-FAMILY: verdana, helvetica, sans-serif
+}
+P {
+ FONT-SIZE: 12px; COLOR: #000000; margin : 5px 0px 5px 0px;
+}
+OL {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+UL {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+LI {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+DL {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+DT {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+DD {
+ FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
+}
+BLOCKQUOTE {
+ FONT-SIZE: 12px; COLOR: #000000
+}
+TD {
+ COLOR: #000000
+}
+TH {
+ COLOR: #000000
+}
+SPAN {
+ COLOR: #000000
+}
+SPAN.property {
+ COLOR: #008cca;
+}
+SPAN.italic {
+ FONT-STYLE: italic;
+}
+
+BLOCKQUOTE {
+ MARGIN-RIGHT: 0px
+}
+
+P.title {
+ MARGIN-BOTTOM: 5px;
+ MARGIN-top: 20px;
+}
+
+div.book div.chapter .title {
+ text-align: left;
+}
+
+
+div.book .title {
+ text-align: center;
+}
+
+div.book .subtitle {
+ text-align: center;
+}
+
+.mediaobject{
+ padding : 5px 10px 5px 35px;
+}
+H1 {
+ MARGIN: 0px; FONT-SIZE: 22px; COLOR: #ff6600; PADDING: 45px 0px 10px 0px;
+}
+H2 {
+ MARGIN: 0px; FONT-SIZE: 18px; COLOR: #2a7bd4; PADDING: 25px 0px 10px 0px;
+}
+H3 {
+ MARGIN: 0px; FONT-SIZE: 15px; COLOR: #000000; PADDING: 20px 0px 10px 0px;
+}
+H4 {
+ MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
+}
+H5 {
+ MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
+}
+H6 {
+ MARGIN: 0px; FONT-SIZE: 11px; COLOR: #000000; PADDING: 5px 0px 0px 0px;
+}
+
+div.book div.section div.mediaobject{
+text-align:left;
+}
+
+
+div.book div.mediaobject{
+text-align:left;
+}
+
+div.mediaobject, div.mediaobject img *{
+text-align:left;
+
+}
+
+DIV.note{
+ BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #FFFDD3;
+ background-image : url('images/ico_note.gif'); background-repeat : no-repeat; background-position :top left;
+}
+
+DIV.note *{
+ line-height : 14px;
+}
+
+.note P {
+ MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
+}
+.important P {
+ MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
+}
+DIV.important {
+ BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #fee3d9;
+ background-image : url('images/ico_important.gif'); background-repeat : no-repeat; background-position :top left;
+}
+
+DIV.important *{
+ line-height : 14px;
+}
+
+.important pre.XML {
+PADDING: 1px 1px 1px 10px;
+
+}
+
+DIV.tip {
+ BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #CFE3FF; background-repeat : no-repeat; background-position :top left; background-image : url('images/ico_tip.gif');
+}
+
+DIV.tip *{
+ line-height : 14px;
+}
+
+.tip pre.XML {
+PADDING: 1px 1px 1px 10px;
+
+}
+
+TABLE {
+ BORDER: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-COLLAPSE: collapse; border-spacing: 0; empty-cells: hide; margin-bottom : 10px;
+}
+
+table *{
+ line-height : 14px;
+}
+
+
+.table TH {
+ WHITE-SPACE: nowrap; BACKGROUND-COLOR: #EEF5FF; TEXT-ALIGN: center; BORDER-BOTTOM: #CAE1FF 2px solid; PADDING: 2px 8px 2px 8px;
+ background-image : url('images/bg_table.gif'); background-repeat : repeat-x; background-position :top left;
+}
+TD {
+ PADDING: 4px 8px 4px 8px; BORDER-BOTTOM: #cccccc 1px dotted; BORDER-right: #cccccc 1px dotted;
+}
+P.copyright {
+ TEXT-ALIGN: center
+}
+TT {
+ FONT-SIZE: 90%; COLOR: #000000; FONT-FAMILY: "Courier New", Courier, monospace
+}
+DL {
+ MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
+}
+DT {
+ MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
+}
+DD {
+ MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
+}
+PRE {
+ BORDER: #cccccc 1px solid; PADDING: 5px 15px 5px 25px; FONT-SIZE: 11px; BACKGROUND-COLOR: #f5f5f5;
+}
+HR {
+ BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; WIDTH: 100%; COLOR: #cccccc; PADDING-TOP: 0px; HEIGHT: 1px; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px
+}
+.variablelist {
+ PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 10px
+}
+.itemizedlist {
+ FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;TEXT-ALIGN: justify
+}
+.term {
+ FONT-WEIGHT: bold
+}
+PRE.JAVA {
+ LINE-HEIGHT: 0px
+}
+PRE.XML {
+ LINE-HEIGHT: 0px
+}
+PRE.JSP {
+ LINE-HEIGHT: 0px
+}
+PRE.XHTML {
+ LINE-HEIGHT: 0px
+}
+.java_type {
+ COLOR: #008cca
+}
+.java_keyword {
+ FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
+}
+.java_javadoc_comment {
+ COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
+}
+.java_comment {
+ COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
+}
+.java_operator {
+ COLOR: #003399
+}
+.java_plain {
+ COLOR: rgb(0,0,0)
+}
+.java_literal {
+ COLOR: #ff6600
+}
+PRE CODE {
+ FONT-SIZE: 12px; COLOR: rgb(0,0,0); FONT-FAMILY: monospace; WHITE-SPACE: nowrap
+}
+.java_javadoc_tag {
+ FONT-WEIGHT: bold; COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
+}
+.java_separator {
+ COLOR: #008cca
+}
+.xml_plain {
+ COLOR: rgb(0,0,0)
+}
+.xml_tag_name {
+ COLOR: #008cca
+}
+.xml_comment {
+ COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
+}
+.xml_tag_symbols {
+ COLOR: #008cca
+}
+.xml_rife_tag {
+ COLOR: rgb(0,0,0); BACKGROUND-COLOR: rgb(228,230,160)
+}
+.xml_attribute_value {
+ COLOR: #ff6600
+}
+.xml_attribute_name {
+ FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
+}
+.xml_char_data {
+ COLOR: rgb(0,0,0)
+}
+.xml_rife_name {
+ COLOR: #008cca; BACKGROUND-COLOR: rgb(228,230,160)
+}
+.xml_processing_instruction {
+ FONT-WEIGHT: bold; COLOR: rgb(0,0,0); FONT-STYLE: italic
+}
+TD.java {
+ VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
+}
+TD.java-ln {
+ VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
+}
+TT.java {
+ MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
+}
+TT.java-ln {
+ MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
+}
+PRE.java {
+ MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
+}
+PRE.java-ln {
+ MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
+}
+TD.java-ln {
+ LINE-HEIGHT: 10px; TEXT-ALIGN: right
+}
+TT.java-ln {
+ COLOR: #888888; LINE-HEIGHT: 10px
+}
+PRE.java-ln {
+ COLOR: #888888; LINE-HEIGHT: 10px
+}
+SPAN.java0 {
+ FONT-SIZE: 8pt; COLOR: #ffffff; LINE-HEIGHT: 10px
+}
+SPAN.java1 {
+ FONT-SIZE: 8pt; COLOR: #808080
+}
+SPAN.java2 {
+ FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
+}
+SPAN.java3 {
+ FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
+}
+SPAN.java4 {
+ FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
+}
+SPAN.java5 {
+ FONT-SIZE: 8pt; COLOR: #2a00ff; LINE-HEIGHT: 10px
+}
+SPAN.java6 {
+ FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
+}
+SPAN.java7 {
+ FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
+}
+SPAN.java8 {
+ FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
+}
+SPAN.java9 {
+ FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
+}
+SPAN.java10 {
+ FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
+}
+SPAN.java11 {
+ FONT-SIZE: 8pt; COLOR: #7f9fbf; LINE-HEIGHT: 10px
+}
+SPAN.java12 {
+ FONT-SIZE: 8pt; COLOR: #7f7f9f; LINE-HEIGHT: 10px
+}
+SPAN.java13 {
+ FONT-SIZE: 8pt; COLOR: #3f3fbf; LINE-HEIGHT: 10px
+}
+SPAN.java14 {
+ FONT-SIZE: 8pt; COLOR: #3f5fbf; LINE-HEIGHT: 10px
+}
+SPAN.java15 {
+ FONT-SIZE: 8pt; COLOR: #ff6100; LINE-HEIGHT: 10px
+}
+SPAN.java16 {
+ FONT-SIZE: 8pt; COLOR: #646464; LINE-HEIGHT: 10px
+}
+
+.expand_collapse_toc {
+ clear:both;
+ float:left;
+ font-family:monospace;
+ width:20px;
+ color: #2A7BD4;
+ cursor: pointer;
+}
+
+pre.CSS, pre.css {
+ line-height:0px;
+ margin-bottom:0em;
+}
+.css_normal {
+ line-height:0px;
+ color:#000000;
+}
+.css_colon {
+color:#000000;
+}
+.css_semi_colon {
+color:#000000;
+}
+.css_curly_brace {
+color:#000000;
+}
+.css_comment {
+color:#939393;
+}
+.css_error {
+color:#BF3F3F;
+}
+.css_selector {
+color:#008cca;
+}
+.css_null {
+color:#008cca;
+}
+.css_property_name {
+color:#000000;
+font-weight:bold;
+}
+.css_property_value {
+color:#ff6600;
+}
+.css_uri {
+color:#2A00FF;
+}
+.css_atmark_rule {
+color:#3F7F7F;
+}
+.css_media {
+color:#336699;
+}
+.css_string {
+color:#336699;
+}
\ No newline at end of file
Added: trunk/struts/docs/resources/styles/en/html.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/html.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/html.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl">
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+<xsl:include href="./code-highlight.xsl"></xsl:include>
+
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 5 in the TOCs -->
+ <xsl:param name="toc.section.depth">5</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+ <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
+
+</xsl:stylesheet>
Added: trunk/struts/docs/resources/styles/en/html_chunk.xsl
===================================================================
--- trunk/struts/docs/resources/styles/en/html_chunk.xsl (rev 0)
+++ trunk/struts/docs/resources/styles/en/html_chunk.xsl 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
+
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+<xsl:include href="./code-highlight.xsl"></xsl:include>
+
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="chunk.section.depth">'5'</xsl:param>
+ <xsl:param name="use.id.as.filename">'1'</xsl:param>
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 5 in the TOCs -->
+ <xsl:param name="toc.section.depth">5</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+ <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
+
+</xsl:stylesheet>
Added: trunk/struts/docs/resources/styles/en/script/toggle.js
===================================================================
--- trunk/struts/docs/resources/styles/en/script/toggle.js (rev 0)
+++ trunk/struts/docs/resources/styles/en/script/toggle.js 2008-03-25 15:05:50 UTC (rev 7111)
@@ -0,0 +1,43 @@
+function dbToggle(node, expandText, collapseText) {
+ var dt = node.parentNode;
+ if (dt.nodeName.toLowerCase() == 'dt') {
+ var dd = dt.nextSibling;
+
+ if (dd && dd.nodeName.toLowerCase() == 'dd') {
+
+ if (dd.style && dd.style.display == 'none') {
+ dd.style.display = '';
+ node.innerHTML = collapseText;
+ } else {
+ dd.style.display = 'none';
+ node.innerHTML = expandText;
+ }
+
+ }
+
+ }
+
+}
+
+var toc = {
+ expand: function(node) {
+ toc.show(toc.findDD(node))
+ toc.hide(node);
+ toc.show(node.nextSibling);
+ },
+ collapse : function(node) {
+ toc.hide(toc.findDD(node))
+ toc.hide(node);
+ toc.show(node.previousSibling);
+ },
+ findDD : function(node) {
+ return node.parentNode.nextSibling;
+ },
+
+ hide: function(node) {
+ node.style.display = "none";
+ },
+ show: function(node) {
+ node.style.display = "";
+ }
+};
\ No newline at end of file
18 years
JBoss Tools SVN: r7110 - in trunk/jsf/docs/jsf_tools_ref_guide/en/images: jsf_support and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 10:49:14 -0400 (Tue, 25 Mar 2008)
New Revision: 7110
Added:
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/Thumbs.db
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_1.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_10.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_11.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_12.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_14.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_15.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_16.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_17.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_18.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_19.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_2.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_1.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_2.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_21.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_22.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_23.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_24.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_25.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_26.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_27.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_28.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_29.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_3.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_30.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_31.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_32.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_33.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_34.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_35.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_36.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_37.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_38.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_39.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_4.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_40.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_42.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_43.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_44.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_45.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_46.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_47.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_48.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_49.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_5.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_50.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_51.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_52.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_53.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_54.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_55.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_56.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_57.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_58.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_59.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_6.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_7.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_8.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_9.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/Thumbs.db
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - adding images
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/Thumbs.db
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/Thumbs.db
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_10.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_11.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_12.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_14.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_15.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_15.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_16.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_16.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_17.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_17.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_18.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_18.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_19.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_19.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_20_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_21.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_21.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_22.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_22.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_23.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_23.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_24.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_24.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_25.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_25.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_26.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_26.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_27.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_27.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_28.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_28.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_29.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_29.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_30.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_30.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_31.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_31.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_32.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_32.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_33.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_33.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_34.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_34.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_35.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_35.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_36.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_36.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_37.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_37.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_38.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_38.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_39.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_39.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_40.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_40.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_42.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_42.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_43.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_43.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_44.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_44.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_45.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_45.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_46.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_46.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_47.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_47.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_48.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_48.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_49.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_49.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_50.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_50.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_51.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_51.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_52.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_52.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_53.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_53.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_54.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_54.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_55.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_55.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_56.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_56.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_57.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_57.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_58.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_58.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_59.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_59.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_7.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_8.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_9.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/Thumbs.db
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/Thumbs.db
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/jsf_tools_ref_guide/en/images/verif_valid/verif_valid_9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years
JBoss Tools SVN: r7109 - in trunk/struts: docs and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-25 10:30:57 -0400 (Tue, 25 Mar 2008)
New Revision: 7109
Added:
trunk/struts/docs/
trunk/struts/docs/struts_tools_ref_guide/
trunk/struts/docs/struts_tools_ref_guide/en/
trunk/struts/docs/struts_tools_ref_guide/en/images/
trunk/struts/docs/struts_tools_tutorial/
trunk/struts/docs/struts_tools_tutorial/en/
trunk/struts/docs/struts_tools_tutorial/en/images/
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_1.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_2.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_3.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_4.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_5.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_6.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/
trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_1.png
trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_2.png
trunk/struts/docs/struts_tools_tutorial/en/master.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/
trunk/struts/docs/struts_tools_tutorial/en/modules/introduction.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml
trunk/struts/docs/struts_tools_tutorial/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - two new guides are created "Struts Tools tutorial" & "Struts Tools Ref guide"
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_application/struts_application_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/struts/docs/struts_tools_tutorial/en/images/struts_validation/struts_validation_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/struts/docs/struts_tools_tutorial/en/master.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/master.xml (rev 0)
+++ trunk/struts/docs/struts_tools_tutorial/en/master.xml 2008-03-25 14:30:57 UTC (rev 7109)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"../../../resources/support/docbook-dtd/docbookx.dtd"
+
+[<!ENTITY introduction SYSTEM "modules/introduction.xml">
+<!ENTITY struts_application SYSTEM "modules/struts_application.xml">
+<!ENTITY struts_validation SYSTEM "modules/struts_validation.xml">
+]>
+
+<book>
+
+ <bookinfo>
+ <title>Struts Tools Tutorial</title>
+
+ <copyright>
+ <year>2007</year>
+ <holder>Red Hat</holder>
+ </copyright>
+
+ <releaseinfo>
+<para>Version: 1.0.0.GA</para>
+</releaseinfo>
+ </bookinfo>
+
+ <toc/>
+
+ &introduction;
+ &struts_application;
+ &struts_validation;
+
+
+</book>
Added: trunk/struts/docs/struts_tools_tutorial/en/modules/introduction.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/introduction.xml (rev 0)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/introduction.xml 2008-03-25 14:30:57 UTC (rev 7109)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="introduction" xreflabel="introduction">
+ <?dbhtml filename="introduction.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Introduction</title>
+ <para>The following chapters describe how to deal with classic/old style of Struts development. We
+ recommend users to use <ulink url="../../../seam/en/html/create_new_seam.html">JBoss
+ Seam</ulink> to simplify development, but until then you can read about classical Struts
+ usage here.</para>
+</chapter>
Added: trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml (rev 0)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml 2008-03-25 14:30:57 UTC (rev 7109)
@@ -0,0 +1,512 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="struts_application" xreflabel="struts_application">
+ <?dbhtml filename="struts_application.html"?>
+ <title>Getting Started Guide for Creating a Struts Application</title>
+ <para>We are going to show you how to create a simple <emphasis><property>Struts application</property></emphasis> using the JBoss Developer Studio. The completed application will ask a user to enter a name and click a button.
+ The resulting new page will display the familiar message, "Hello <name>!"</para>
+<para>This document will show you how to create such an application from the beginning, along
+the way demonstrating some of the powerful features of JBoss Developer Studio. You will design the
+application, generate stub code for the application, fill in the stub coding, compile the application,
+and run the application all from inside JBoss Developer Studio.</para>
+<para>We assume that you have already launched Eclipse with JBoss Developer Studio installed and also that the Web Development perspective is the current perspective. (If not,
+ make it active by selecting <emphasis><property>Window > Open Perspective > Other > Web Development</property></emphasis> from the menu bar.)</para>
+
+ <section id="StartingUp">
+ <title>Starting Up</title>
+<para>We are first going to create a new project for the application.</para>
+ <itemizedlist>
+<listitem><para>Go to the menu bar and select <emphasis><property>File > New > Project...</property></emphasis>.</para></listitem>
+<listitem><para>Select <emphasis><property>JBoss Tools Web > Struts > Struts Project</property></emphasis> in the New Project dialog box</para></listitem>
+<listitem><para>Click <emphasis><property>Next </property></emphasis></para></listitem>
+<listitem><para>Enter "StrutsHello" as the project name</para></listitem>
+ <listitem><para>Leave everything else as is, and click <emphasis><property>Next</property></emphasis></para></listitem>
+ <listitem><para>Click <emphasis><property>Next</property></emphasis> again</para></listitem>
+ <listitem><para>Make sure that <emphasis><property>struts-bean.tld</property></emphasis>, <emphasis><property>struts-html.tld</property></emphasis>, and <emphasis><property>struts-logic.tld</property></emphasis> are checked in the list of included tag libraries and then click <emphasis><property>Finish</property></emphasis></para></listitem>
+</itemizedlist>
+<para>A "StrutsHello" node should appear in the upper-left Package Explorer view.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Click the plus sign next to <emphasis><property>StrutsHello</property></emphasis> to reveal the child nodes</para></listitem>
+ <listitem><para>Click the plus sign next to <emphasis><property>WebContent</property></emphasis> under StrutsHello</para></listitem>
+ <listitem><para>Click the plus sign next to <emphasis><property>WEB-INF</property></emphasis> under WebContent</para></listitem>
+ <listitem><para>Then, double-click on the <emphasis><property>struts-config.xml</property></emphasis> node to display a diagram of the Struts application configuration file in the editing area</para></listitem>
+ </itemizedlist>
+<para>At this point, its empty except for the background grid lines.</para>
+ </section>
+
+ <section id="CreatingtheApplicationComponents">
+ <?dbhtml filename="CreatingtheApplicationComponents.html"?>
+ <title>Creating the Application Components</title>
+<para>Now, we will design the application by creating the individual components as placeholders
+first. (We dont have to complete all of the details inside the components until afterwards.)</para>
+ <section id="CreatingJSPPagePlaceholders">
+ <title>Creating JSP Page Placeholders</title>
+ <para>Next, let's create and place two JSP pages. We will not write any code for the files, but only
+create them as placeholders so that we can create links to them in the diagram. We will write
+the code a little bit later.</para>
+ <section id="CreatingthePagePlaceholders">
+ <title>Creating the Page Placeholders</title>
+ <itemizedlist continuation="continues">
+ <listitem><para>Bring the Web Projects view to the front of the Package Explorer view by selecting the <emphasis><property>Web Projects</property></emphasis> tab next to that tab.</para></listitem>
+ <listitem><para>Right-click the <emphasis><property>StrutsHello > WEB-ROOT (WebContent)</property></emphasis> folder in the Web Projects view and select <emphasis><property>New > Folder...</property></emphasis></para></listitem>
+ <listitem><para>Enter <emphasis><property>pages</property></emphasis> for a folder name and click <emphasis><property>Finish</property></emphasis></para></listitem>
+
+<listitem><para>We will keep our presentation files in this folder</para></listitem>
+
+<listitem><para>Right-click the pages folder and select <emphasis><property>New > Fila > JSP...</property></emphasis> </para></listitem>
+ <listitem><para>For Name type in <emphasis><property>inputname</property></emphasis> (the JSP extension will be automatically added to the file), for Template select <emphasis><property>StrutsForm</property></emphasis> and then click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>
+<listitem><para>Right-click the pages folder again and select <emphasis><property>New > File > JSP...</property></emphasis></para></listitem>
+ <listitem><para>For Name type in <emphasis><property>greeting</property></emphasis>, for Template leave as Blank, and then click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>
+ </itemizedlist>
+<para>Just leave these files as is for now.</para>
+ </section>
+ <section id="PlacingthePagePlaceholders">
+ <title>Placing the Page Placeholders</title>
+<para>Lets now place the two pages just created on the diagram.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Click on the <emphasis><property>struts-config.xml</property></emphasis> tab in the Editing area to bring the diagram to the front</para></listitem>
+ <listitem><para>Click on the <emphasis><property>inputname.jsp</property></emphasis> page in the Web Projects view, drag it onto the diagram, and drop it</para></listitem>
+ <listitem>Click on the <emphasis><property>greeting.jsp</property></emphasis> page in the Web Projects view, drag it onto the diagram,
+and drop it to the right of the <emphasis><property>/pages/inputname.jsp</property></emphasis> icon with some extra space</listitem>
+</itemizedlist>
+<para>You should now have two JSP pages in the diagram.</para>
+ </section>
+ </section>
+ <section id="CreatinganActionMappings">
+ <title>Creating an Action Mappings</title>
+<para>Using a context menu on the diagram, we are next going to create an Action mapping.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>Right-click between the two icons and select <emphasis><property>Add > Action</property></emphasis></para></listitem>
+<listitem><para>Enter the following values:</para></listitem>
+ </itemizedlist>
+ <table>
+ <tgroup cols="2">
+ <tbody>
+ <row>
+ <entry>path</entry>
+ <entry>/greeting</entry>
+ </row>
+ <row>
+ <entry>name</entry>
+ <entry>GetNameForm</entry>
+ </row>
+ <row>
+ <entry>scope</entry>
+ <entry>request</entry>
+ </row>
+ <row>
+ <entry>type</entry>
+ <entry>sample.GreetingAction</entry>
+ </row>
+ <row>
+ <entry>validate</entry>
+ <entry><leave blank></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+<para>("GetNameForm" is the name for a form bean that we will create later.)</para>
+<itemizedlist continuation="continues">
+ <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
+</itemizedlist>
+
+<para>The <emphasis><property>/greeting</property></emphasis> action should appear in four places, in the diagram, under the action-mappings node, under the struts-config.xml node in Tree view, in Web Projects view and in the Outline view. Also, note the asterisk to the right of the name, struts-config.xml, in the Outline view showing that the file has been changed, but not saved to disk.</para>
+ </section>
+ <section id="CreatingaLink">
+ <title>Creating a Link</title>
+<para>Let's now create a link from the inputname.jsp page to the action.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>On the left-hand side of the diagram in the column of icons, click on this icon:</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Create New Connection Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem><para>In the connect-the-components mode you are in now, click on the <emphasis><property>/pages/inputname.jsp</property></emphasis> icon in the diagram and then click on the <emphasis><property>/greeting</property></emphasis> action</para></listitem>
+ </itemizedlist>
+<para>A link will be created from the page to the action.</para>
+ </section>
+ <section id="CreatingaForward">
+ <title>Creating a Forward</title>
+<para>Next, we are going to create a forward for the action.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>On the left-hand side of the diagram in the column of icons, click on this icon, again:</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Create New Connection Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">>
+<listitem><para>Click on the <emphasis><property>/greeting</property></emphasis> action icon in the diagram and then click on the <emphasis><property>pages/greeting.jsp</property></emphasis> icon</para></listitem>
+
+<listitem><para>That's it. A link will be drawn from the actions new greeting forward to the greeting.jsp JSP page. Note that the forwards name will be set based on the name of the target JSP file name. If you don't like it, you can easily change it</para></listitem>
+
+ <listitem><para>Select the <emphasis><property>Tree</property></emphasis> tab at the bottom of the editor window (between Diagram and Source)</para></listitem>
+<listitem><para>Expand the <emphasis><property>struts-config.xml/action-mappings//greeting</property></emphasis> node and then select the greeting forward</para></listitem>
+<listitem><para>In the Properties Editor to the right, change the text to "sayHello" in the Name field</para></listitem>
+ <listitem><para>Select the <emphasis><property>Diagram</property></emphasis> tab at the bottom of the editor window and see how the diagram is also updated to reflect the change</para></listitem>
+ </itemizedlist>
+ </section>
+ <section id="CreatingaGlobalForward">
+ <title>Creating a Global Forward</title>
+<para>One last component that we need to create in the diagram is a global forward.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>Somewhere in the top-left corner of diagram, right-click and select <emphasis><property> Add > Global Forward...</property></emphasis></para></listitem>
+ <listitem><para>Enter <emphasis><property>getName</property></emphasis> in the Name field</para></listitem>
+<listitem><para>Select the <emphasis><property>Change...</property></emphasis>button for Path</para></listitem>
+ <listitem><para>In the Edit Path window, switch to the <emphasis><property>Pages</property></emphasis> tab</para></listitem>
+<listitem><para>Expand the <emphasis><property>StrutsHello > WEB-ROOT (WebContent) > pages</property></emphasis> node and then select the inputname.jsp page</para></listitem>
+<listitem><para>Click <emphasis><property>Ok</property></emphasis>.</para></listitem>
+<listitem><para>Leave the rest of the fields blank and click <emphasis><property>OK</property></emphasis></para></listitem>
+ </itemizedlist>
+<para>A forward object now appears on the diagram and also in the global-forwards folder in the Outline view.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Tidy up the diagram, by clicking and dragging around each icon, so that the diagram looks something like this:</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Diagram View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="CreatingaFormBean">
+ <title>Creating a Form Bean</title>
+<para>One last thing that we need to do is to create a form bean.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Switch to the Tree viewer in the editor for the struts-config.xml file, by selecting the <emphasis><property>Tree</property></emphasis> tab at the bottom of the editor window</para></listitem>
+<listitem><para>Right-click <emphasis><property>struts-config.xml > form-beans</property></emphasis> and select Create Form Bean</para></listitem>
+ <listitem><para>Enter <emphasis><property>GetNameForm</property></emphasis> in the name field and <emphasis><property>sample.GetNameForm</property></emphasis> for type</para></listitem>
+ <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
+<listitem><para>To save your changes to struts-config.xml, select <emphasis><property>File > Save</property></emphasis> from the menu bar</para></listitem>
+ </itemizedlist>
+<para>Note the disappearance of the asterisk next to the name, struts-config.xml.</para>
+</section>
+</section>
+
+ <section id="GeneratingStubCoding">
+ <?dbhtml filename="GeneratingStubCoding.html"?>
+ <title>Generating Stub Coding</title>
+ <para>We are done with designing the application through the diagram. Now we need to write
+ code for the action component. We also need to write an action class for the <emphasis><property>/greeting</property></emphasis> mapping
+ along with a FormBean. To aid in the coding phase, JBoss Developer Studio can generate Java class
+ stubs for all of the components shown in the diagram.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Switch back to the diagram, by selecting the <emphasis><property>Diagram</property></emphasis> tab at the bottom of the editor window</para></listitem>
+ <listitem><para>Right-click a blank space in the diagram and select <emphasis><property>Generate Java Code</property></emphasis></para></listitem>
+ <listitem><para>Leave everything as is in the dialog box and click <emphasis><property>Generate</property></emphasis></para></listitem>
+</itemizedlist>
+<para>You should see a screen that says:</para>
+<para>Generated classes: 2</para>
+<para>Actions: 1</para>
+<para>Form beans: 1</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
+ </itemizedlist>
+<para>The Java files will be generated in a <emphasis><property>JavaSource > sample</property></emphasis> folder that you can see in the Package Explorer view under the "StrutsHello" node. One Action stub and one FormBean stub will have been generated.</para>
+ </section>
+ <section id="CodingtheVariousFiles">
+ <?dbhtml filename="CodingtheVariousFiles.html"?>
+ <title>Coding the Various Files</title>
+<para>We will now code both the Java stub classes just generated, the JSP files left in as placeholders
+ from previous steps, and a new start JSP page we will have to create.</para>
+ <section id="JavaStubClasses">
+ <title>Java Stub Classes</title>
+ <itemizedlist continuation="continues">
+ <listitem><para>To finish the two Java classes, switch to the <emphasis><property>Package Explorer</property></emphasis> view and expand the <emphasis><property>JavaSource > sample</property></emphasis> folder</para></listitem>
+ </itemizedlist>
+ <section id="GetNameForm.java">
+ <title>GetNameForm.java</title>
+ <itemizedlist continuation="continues">
+ <listitem><para>Double-click <emphasis><property>GetNameForm.java</property></emphasis> for editing</para></listitem>
+
+<listitem><para>You are looking at a Java stub class that was generated by JBoss Developer Studio. Now we are going to edit the file</para></listitem>
+
+<listitem><para>Add the following attributes at the beginning of the class:</para></listitem>
+ </itemizedlist>
+ <programlisting role="JAVA"><![CDATA[private String name = "";
+ private String greetName = "";
+]]></programlisting>
+
+ <itemizedlist continuation="continues">
+<listitem><para>Inside the reset method, delete the TO DO and throw lines and add:</para></listitem>
+</itemizedlist>
+<programlisting role="JAVA"><![CDATA[this.name = "";
+ this.greetName = "";
+]]></programlisting>
+
+ <itemizedlist continuation="continues">
+<listitem><para>Inside the validate method, delete the TO DO and throw lines and add:</para></listitem>
+ </itemizedlist>
+ <programlisting role="JAVA"><![CDATA[ActionErrors errors = new ActionErrors();
+ return errors;
+]]></programlisting>
+
+ <itemizedlist continuation="continues">
+<listitem><para>Right-click and select <emphasis><property>Source > Generate Getters and Setters...</property></emphasis>from the context menu</para></listitem>
+ <listitem><para>In the dialog box, check the check boxes for name and greetName, select First method for Insertion point, and click on the <emphasis><property>OK</property></emphasis> button</para></listitem>
+ </itemizedlist>
+<para>The final GetNameForm.java file should look like this:</para>
+<programlisting role="JAVA"><![CDATA[package sample;
+import javax.servlet.http.HttpServletRequest;
+import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMapping;
+
+public class GetNameForm extends org.apache.struts.action.ActionForm
+{
+
+ private String name = "";
+ private String greetName = "";
+
+ public String getName()
+ {
+ return name;
+ }
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getGreetName()
+ {
+ return greetName;
+ }
+
+ public void setGreetName(String greetName)
+ {
+ this.greetName = greetName;
+ }
+
+ public GetNameForm()
+ {
+ }
+
+ public void reset(ActionMapping actionMapping, HttpServletRequest request)
+ {
+ this.name = "";
+ this.greetName = "";
+ }
+
+ public ActionErrors validate(ActionMapping actionMapping,
+ HttpServletRequest request)
+ {
+ ActionErrors errors = new ActionErrors();
+ return errors;
+ }
+}
+]]></programlisting>
+
+<itemizedlist continuation="continues">
+<listitem><para>Save the file</para></listitem>
+</itemizedlist>
+</section>
+ <section id="GreetingAction.java">
+ <title>GreetingAction.java</title>
+ <itemizedlist continuation="continues">
+<listitem><para>Open GreetingAction.java for editing</para></listitem>
+<listitem><para>Inside the execute method, delete the TO DO lines and add the following:</para></listitem>
+ </itemizedlist>
+
+ <programlisting role="JAVA"><![CDATA[String name = ((GetNameForm)form).getName();
+String greeting = "Hello, "+name+"!";
+((GetNameForm)form).setName(greeting);
+return mapping.findForward(FORWARD_sayHello);
+]]></programlisting>
+
+<para>The final version of GreetingAction.java should look like this:</para>
+
+<programlisting role="JAVA"><![CDATA[package sample;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.apache.struts.action.ActionForm;
+import org.apache.struts.action.ActionForward;
+import org.apache.struts.action.ActionMapping;
+
+public class GreetingAction extends org.apache.struts.action.Action
+{
+
+ // Global Forwards
+ public static final String GLOBAL_FORWARD_getName = "getName";
+
+ // Local Forwards
+ public static final String FORWARD_sayHello = "sayHello";
+
+ public GreetingAction()
+ {
+ }
+ public ActionForward execute(ActionMapping mapping, ActionForm form,
+ HttpServletRequest request, HttpServletResponse response) throws Exception
+ {
+ String name = ((GetNameForm)form).getName();
+ String greeting = "Hello, "+name+"!";
+ ((GetNameForm)form).setName(greeting);
+ return mapping.findForward(FORWARD_sayHello);
+ }
+}
+]]></programlisting>
+ <itemizedlist continuation="continues">
+<listitem><para>Save the file</para></listitem>
+<listitem><para>Close the editors for the two Java files</para></listitem>
+ </itemizedlist>
+<para>The last thing left to do is to code the JSP files whose editors should still be open from having been created as placeholders.</para>
+ </section>
+ </section>
+ <section id="JSPPages">
+ <title>JSP Pages</title>
+ <section id="inputname.jsp">
+ <title>inputname.jsp</title>
+ <para>In this page, the user will enter any name and click the <emphasis><property>submit</property></emphasis> button. Then, the greeting action will be called through the form.</para>
+ <itemizedlist continuation="continues">
+ <listitem><para>Click on the <emphasis><property>inputname.jsp</property></emphasis> tab in the Editing area to bring its editor forward</para></listitem>
+<listitem><para>In the Web Projects view, expand <emphasis><property>StrutsHello > Configuration > default > struts-config.xml > action-mappings</property></emphasis> and select <emphasis><property>/greeting</property></emphasis></para></listitem>
+<listitem><para>Drag it and drop it between the quotes for the <emphasis role="italic"><property>"action"</property></emphasis> attribute to the <emphasis role="bold"><property><html:form></property></emphasis> element in the Source pane of the editor</para></listitem>
+<listitem><para>Then type this text on a new line just below this line:</para></listitem>
+
+<programlisting role="XML"><![CDATA[Input name:
+]]></programlisting>
+
+ <listitem><para>Select the <emphasis><property>Visual</property></emphasis> pane of the editor</para></listitem>
+ <listitem><para>Then, in the JBoss Tools Palette, expand the <emphasis><property>Struts Form</property></emphasis> library, select <emphasis><property>text</property></emphasis>, and drag it onto the box
+ <note>
+ <title>Note:</title>
+ <para>By default there are only four groups on the JBoss Tools Palette. If you wish to make some group visible click the <emphasis><property>Show/Hide</property></emphasis> button on the top of palette and in the prompted dialog check the group (or groups) you want to be shown.</para>
+ </note>
+ </para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>JBoss Tools Palette</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_3.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem><para>In the Insert Tag dialog box, type in name for property and select <emphasis><property>Finish</property></emphasis></para></listitem>
+ <listitem><para>In the StrutsForm library in the JBoss Tools Palette, select <emphasis><property>submit</property></emphasis>, and drag it to right after the text box in the Visual pane of the editor</para></listitem>
+ <listitem><para>Right-click the <emphasis><property>submit</property></emphasis> button and select <emphasis role="bold"><property><html:submit></property></emphasis> Attributes from the context menu</para></listitem>
+ <listitem><para>In the Attributes dialog box, select the <emphasis><property>value</property></emphasis> field and type in "Say Hello!" for its value</para></listitem>
+ </itemizedlist>
+<para>After tidying the page source, the Editor window for the file should look something like this:</para>
+ <figure>
+ <title>Editor Window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_4.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="greeting.jsp">
+ <title>greeting.jsp</title>
+<para>Next, we will fill in the result page.</para>
+<itemizedlist continuation="continues">
+ <listitem><para>Click on the <emphasis><property>greeting.jsp</property></emphasis> tab in the Editing area to bring its editor forward</para></listitem>
+<listitem><para>Type in the following code:</para></listitem>
+ </itemizedlist>
+<programlisting role="XML"><![CDATA[<html>
+<head>
+ <title>Greeting</title>
+</head>
+ <body>
+ <p>
+ </p>
+ </body>
+</html>
+]]></programlisting>
+
+<para>To complete editing of this file, we will use macros from the JBoss Tools Palette. This palette is a view that should be available to the right of the editing area.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>Click on the <emphasis><property>Struts Common</property></emphasis> folder in the JBoss Tools Palette to open it</para></listitem>
+<listitem><para>Position the cursor at the beginning of the greeting.jsp file in the Source pane and then click on bean taglib in the JBoss Tools Palette</para></listitem>
+</itemizedlist>
+<para>This will insert the following line at the top of the file:</para>
+<programlisting role="JAVA"><![CDATA[
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+]]></programlisting>
+<itemizedlist continuation="continues">
+ <listitem><para>Click on the <emphasis><property>Struts Bean</property></emphasis> folder in the JBoss Tools Palette to open it</para></listitem>
+<listitem><para>Position the cursor inside the <emphasis role="bold"><property><p></property></emphasis> element</para></listitem>
+<listitem><para>Click on write in the JBoss Tools Palette</para></listitem>
+<listitem><para>Type in "GetNameForm" for the <emphasis role="italic"><property>"name"</property></emphasis> attribute and add a <emphasis role="italic"><property>"property"</property></emphasis> attribute with "greetName" as its value</para></listitem>
+ </itemizedlist>
+<para>The editor should now look like this:</para>
+ <figure>
+ <title>Editor Window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_5.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="index.jsp">
+ <title>index.jsp</title>
+<para>Finally, we will need to create and edit an index.jsp page. This page will use a Struts forward to simply redirect us to the getName global forward.</para>
+ <itemizedlist continuation="continues">
+<listitem><para>In the Web Projects view, right-click on <emphasis><property>StrutsHello > WEB-ROOT(WebContent)</property></emphasis> node and select <emphasis><property>New > File > JSP..</property></emphasis></para></listitem>
+ <listitem><para>Type index for Name and click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>
+ <listitem><para>On the JBoss Tools Palette, select the <emphasis><property>Struts Common</property></emphasis> folder of macros by clicking on it in the palette</para></listitem>
+<listitem><para>Click on the logic taglib icon</para></listitem>
+ <listitem><para>Press the <emphasis><property>Enter</property></emphasis> key in the editor to go to the next line</para></listitem>
+ <listitem><para>Back on the palette, select the <emphasis><property>Struts Logic</property></emphasis> folder of macros</para></listitem>
+<listitem><para>Click on redirect</para></listitem>
+<listitem><para>Delete the ending tag, put a forward slash in front of the closing angle bracket, and type "forward=getName" in front of the slash</para></listitem>
+ </itemizedlist>
+<para>The finished code for the page is shown below:</para>
+<programlisting role="JAVA"><![CDATA[<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+<logic:redirect forward="getName"/>
+]]></programlisting>
+ <itemizedlist continuation="continues">
+<listitem><para>To save all the edits to files, select <emphasis><property>File>Save All</property></emphasis> from the menu bar</para></listitem>
+ </itemizedlist>
+ </section>
+ </section>
+ </section>
+ <section id="CompilingtheClasses">
+ <?dbhtml filename="CompilingtheClasses.html"?>
+ <title>Compiling the Classes</title>
+ <para>Because this is the Eclipse environment, no explicit compilation step is required. By default, Eclipse compiles as you go.</para>
+ </section>
+ <section id="RunningtheApplication">
+ <?dbhtml filename="RunningtheApplication.html"?>
+ <title>Running the Application</title>
+ <para>Everything is now ready for running our application without having to leave JBoss Developer Studio
+ by using the JBoss Application Server engine that comes with the JBoss Developer Studio. For controlling
+ JBoss AS within JBoss Developer Studio, there is JBoss Server view.</para>
+ <figure>
+ <title>JBoss Server Panel</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_application/struts_application_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+<listitem><para>Start up JBoss AS by clicking on the icon in JBoss Server view. (If JBoss AS is already running, stop it by clicking on the red icon and then start it again. Remember, the Struts run-time requires restarting the servlet engine when any changes have been made.)</para></listitem>
+<listitem><para>After the messages in the Console tabbed view stop scrolling, JBoss AS is available. At this point, right-click on the getName global forward in the struts-config.xml diagram view and select Run on Server.</para></listitem>
+ </itemizedlist>
+<para>The browser should appear with the application started.</para>
+ </section>
+
+ <section id="OtherRelevantResourcesOnTheTopic4">
+<?dbhtml filename="OtherRelevantResourcesOnTheTopic4.html"?>
+<title>Other relevant resources on the topic</title>
+<para>Apache Struts: <ulink url="http://struts.apache.org/">Struts Technology</ulink></para>
+<para>Struts 2: <ulink url="http://struts.apache.org/2.x/">Apache Struts 2</ulink></para>
+<para>Get Started: <ulink url="http://struts.apache.org/2.x/docs/home.html">Struts Getting Started</ulink></para>
+<para>Struts on IBM: <ulink url="http://www.ibm.com/developerworks/library/j-struts/">Struts - An open-source MVC implementation</ulink></para>
+<para>FAQ: <ulink url="http://struts.apache.org/2.x/docs/faqs.html">Struts FAQ</ulink></para>
+<para>Download: <ulink url="http://struts.apache.org/download.cgi#struts206">Release of Apache Struts</ulink></para>
+</section>
+</chapter>
\ No newline at end of file
Added: trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml (rev 0)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml 2008-03-25 14:30:57 UTC (rev 7109)
@@ -0,0 +1,267 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="struts_validation" xreflabel="struts_validation">
+ <?dbhtml filename="struts_validation.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Struts</keyword>
+ <keyword>Struts Validation</keyword>
+ </keywordset>
+ </chapterinfo>
+<title>Getting Started Struts Validation Examples</title>
+
+<para><property>Validation</property> of input is an important part of any Web application. All Apache Jakarta frameworks,
+including Struts, can use a common Jakarta Validation Framework for streamlining this aspect of Web
+application development. The Validation Framework allows you to define validation rules and then apply these rules on the client-side or the server-side.</para>
+
+ <para>JBoss Developer Studio makes using the <property>Validation Framework</property> in Struts even easier with the help of a specialized editor for the XML files that controls validation in a project. In this document, we'll show you how this all works by creating some simple client-side validation and server-side validation examples.</para>
+
+<section id="StartingPoint">
+<?dbhtml filename="StartingPoint.html"?>
+<title>Starting Point</title>
+<para>The example assumes that you have already created our sample "StrutsHello" application from the
+Getting Started Guide for Creating a Struts Application. You should have the JBoss Developer Studio perspective
+ open on this StrutsHello project.</para>
+</section>
+
+<section id="DefiningTheValidationRule">
+<?dbhtml filename="DefiningTheValidationRule.html"?>
+<title>Defining the Validation Rule</title>
+<para>In these steps you will set up the validation that can be used for either client-side or
+server side validation. You need to enable validation as a part of the project, define an error message, and tie it into an appropriate part of the application.</para>
+
+<itemizedlist>
+<listitem><para>Right-click on a "plug-ins" node under the <emphasis><property>StrutsHello > Configuration > default > struts-config.xml</property></emphasis> node in the Web Projects view and select <emphasis><property>Create Special Plugin > Validators</property></emphasis> from the context menu</para></listitem>
+<listitem><para>Further down in the Web Projects view, right-click on the
+<emphasis><property>StrutsHello > ResourceBundles</property></emphasis> node and select <emphasis><property> New > Properties File...</property></emphasis>from the context menu</para></listitem>
+<listitem><para>In the dialog box, click on the <emphasis><property>Browse...</property></emphasis>button next to the Folder field, expand the
+ JavaSource folder in this next dialog box, select the sample subfolder, and click on the <emphasis><property>OK</property></emphasis> button</para></listitem>
+ <listitem><para>Back in the first dialog box, type in "applResources" for the Name field and click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>
+<listitem><para>Right-click on a newly created file and select <emphasis><property>Add > Default Error Messages</property></emphasis>
+ from the context menu</para></listitem>
+
+<listitem><para>Drag up the sample.applResources icon until you can drop it on the resources folder under struts-config.xml</para></listitem>
+<listitem><para>Select<emphasis><property> File > Save </property></emphasis>All from the menu bar</para></listitem>
+<listitem><para>Select validation.xml under the <emphasis><property>StrutsHello > Validation</property></emphasis> node and double-click it to open it with the JBoss Tools XML Editor</para></listitem>
+<listitem><para>Here you must create a Formset.</para></listitem>
+<listitem><para>In the validation.xml file editor click the button <emphasis><property>Create Formset</property></emphasis> on the panel <emphasis><property>Formsets</property></emphasis></para></listitem>
+<listitem><para>In the dialog <emphasis><property>Add Formset</property></emphasis> fill the fields <emphasis><property>Language</property></emphasis> and <emphasis><property>Country</property></emphasis> or just leave them empty to create a default formset. Click <emphasis><property>OK</property></emphasis></para></listitem>
+</itemizedlist>
+<figure>
+ <title>Create Formset</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_validation/struts_validation.png"/>
+ </imageobject>
+</mediaobject>
+</figure>
+<itemizedlist>
+<listitem><para>Expand the "form-beans" node under the <emphasis><property>StrutsHello > Configuration > default > struts-config.xml node.</property></emphasis> Then, drag the form bean "GetNameForm" and drop it onto a formset in the <property>XML</property> Editor</para></listitem>
+<listitem><para>In the Validation Editor, expand the formset node, right-click GetNameForm, and select <emphasis><property>Create Field...</property></emphasis> from the context menu</para></listitem>
+<listitem><para>Enter a name for Property in the dialog box. A new property will be created:</para></listitem>
+</itemizedlist>
+<figure>
+ <title>New Property Is Added</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_validation/struts_validation_2.png"/>
+ </imageobject>
+</mediaobject>
+</figure>
+<itemizedlist>
+<listitem><para>In the Properties view for the name field to the right of the "tree" for the validation.xml file, click on the <emphasis><property>Change...</property></emphasis>button next to the Depends entry field</para></listitem>
+<listitem><para>In the displayed double list, select <emphasis><property>required</property></emphasis> from the left list and then click <emphasis><property>Add</property></emphasis></para></listitem>
+ <listitem><para>Click <emphasis><property>Ok</property></emphasis></para></listitem>
+<listitem><para>Right-click name and select <emphasis><property>Add Arg...</property></emphasis> from the context menu</para></listitem>
+<listitem><para>In the Add Arg dialog box, click on the <emphasis><property>Change...</property></emphasis>button next to the <emphasis><property>Key</property></emphasis> field</para></listitem>
+ <listitem><para>In the Key dialog box that appears now, click on the <emphasis><property>Add</property></emphasis> button</para></listitem>
+ <listitem><para>Enter "name.required" in the Name field, and enter a person's name in the Value field</para></listitem>
+ <listitem><para>Click <emphasis><property>Finish</property></emphasis>, then <emphasis><property>Ok</property></emphasis>, and then <emphasis><property>Ok</property></emphasis> again</para></listitem>
+<listitem><para>Select <emphasis><property>File > Save All</property></emphasis> from the menu bar</para></listitem>
+</itemizedlist>
+</section>
+
+<section id="Client-SideValidation">
+<?dbhtml filename="Client-SideValidation.html"?>
+<title>Client-Side Validation</title>
+<para>Client-side <property>validation</property> uses a scripting language (like JavaScript) running in the client browser to actually do the <property>validation</property>. In a Struts application using the <property>Validation</property> Framework, however, you don't actually have to do any of the script coding. The <property>Validation</property> Framework handles this.</para>
+<para>To see how this works in our application, you'll just need to make a couple of modifications to one of the JSP files.</para>
+<itemizedlist continuation="continues">
+<listitem><para>Double-click inputname.jsp under <emphasis><property>StrutsHello > WEB-ROOT(WebContent) > pages</property></emphasis> to open it for editing</para></listitem>
+<listitem><para>Find the tag near the top and hit Return to make a new line under it</para></listitem>
+ <listitem><para>In the JBoss Tools Palette view to the right, open the Struts HTML folder and click on the javascript tag</para></listitem>
+<listitem><para>Back in the editor, just in front of the closing slash for this inserted tag, hit Ctrl+Space and select "formName" from the prompting menu</para></listitem>
+<listitem><para>Over in the Web Projects view, select GetNameForm under the <emphasis><property>StrutsHello > Configuration > default > struts-config.xml > form-beans</property></emphasis> node, drag it, and drop it between the quotes in the editor</para></listitem>
+<listitem><para>Modify the <emphasis role="bold"><property><html:form></property></emphasis> tag by inserting this attribute:</para></listitem>
+</itemizedlist>
+<programlisting role="XML"><![CDATA[onsubmit="return validateGetNameForm(this)"
+]]></programlisting>
+<para></para>
+<para>The file should now look like this:</para>
+<programlisting role="XML"><![CDATA[
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<html:html>
+<head>
+ <title>Input name</title>
+ <html:javascript formName="GetNameForm"/>
+</head>
+<body>
+ <html:form action="/greeting.do" onsubmit="return
+ <para>validateGetNameForm(this)"></para>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Input name:</b></td>
+ </tr>
+ <tr>
+ <td>
+ <html:text property="name" />
+ <html:submit value=" Say Hello! " />
+ </td>
+ </tr>
+ </table>
+ </html:form>
+</body>
+</html:html>
+]]></programlisting>
+<itemizedlist continuation="continues">
+<listitem><para>Select<emphasis><property> File > Save </property></emphasis>from the menu bar</para></listitem>
+<listitem><para>Start JBoss Application Server by clicking on its icon (a right-pointing arrow) in the toolbar</para></listitem>
+<listitem><para>Click the Run icon or right click your project folder and select <emphasis><property>Run As > Run on Server</property></emphasis></para></listitem>
+</itemizedlist>
+<figure>
+ <title>Run Icon</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts_validation/struts_validation_1.png"/>
+ </imageobject>
+</mediaobject>
+</figure>
+<itemizedlist><listitem><para>In the browser window, click on the "Say Hello!" button without having entered any name in the form</para></listitem></itemizedlist>
+<para>A JavaScript error message should be displayed in an alert box.</para>
+</section>
+<section id="Server-SideValidation">
+<?dbhtml filename="Server-SideValidation.html"?>
+<title>Server Side Validation</title>
+<para>Server side validation does the validation inside the application on the server. In a Struts application using the Validation Framework, you still don't have to do any of the actual validation coding. The Validation Framework handles this. You will though have to make a few changes to the JSP file you modified for client-side validation along with a change to an action and a few changes to the form bean class.</para>
+</section>
+
+<section id="EditingTheJSPFile">
+<?dbhtml filename="EditingTheJSPFile.html"?>
+<title>Editing the JSP File</title>
+<itemizedlist continuation="continues">
+<listitem><para>Reopen inputname.jsp for editing</para></listitem>
+<listitem><para>Delete the <emphasis role="italic"><property>"onsubmit"</property></emphasis> attribute in the <emphasis role="bold"><property><html:form></property></emphasis> element that you put in for client-side validation</para></listitem>
+
+<listitem><para>Add an <emphasis role="bold"><property><html:errors></property></emphasis> tag after the <emphasis role="bold"><property><html:form></property></emphasis> tag</para></listitem>
+</itemizedlist>
+<para>The JSP file should now look like this:</para>
+
+<programlisting role="XML"><![CDATA[<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<html:html>
+<head>
+ <title>Input name</title>
+ <html:javascript formName="GetNameForm"/>
+</head>
+<body>
+ <html:form action="/greeting.do">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Input name:</b></td>
+ </tr>
+ <tr>
+ <td>
+ <html:text property="name" />
+ <html:submit value=" Say Hello! " />
+ </td>
+ </tr>
+ </table>
+ </html:form>
+ <html:errors />
+</body>
+</html:html>
+]]></programlisting>
+
+</section>
+
+<section id="EditingTheAction">
+<?dbhtml filename="EditingTheAction.html"?>
+<title>Editing the Action</title>
+<itemizedlist continuation="continues">
+<listitem><para>In the Web Projects view, expand the node under the <emphasis><property>StrutsHello > Configuration > default > struts-config.xml > action-mappings</property></emphasis> node, right-click the <emphasis><property>/greeting</property></emphasis> action, and then select <emphasis><property>Properties...</property></emphasis>from the context menu</para></listitem>
+
+ <listitem><para>In the Edit Properties window, insert the cursor into the value column for the input property and click on the <property>...</property> button</para></listitem>
+
+ <listitem><para>In the dialog box, make sure the Pages tab is selected, select <emphasis><property>StrutsHello > WEB-ROOT(WebContent) > pages > inputname.jsp</property></emphasis>, click the <emphasis><property>Ok</property></emphasis> button, and then click on the <emphasis><property>Close</property></emphasis> button</para></listitem>
+</itemizedlist>
+</section>
+<section id="EditingTheFormBean">
+<?dbhtml filename="EditingTheFormBean.html"?>
+
+<title>Editing the Form Bean</title>
+<itemizedlist continuation="continues">
+<listitem><para>Right-click the <emphasis><property>/greeting</property></emphasis> action again and select Open Form-bean Source to open the GetNameForm.java file for editing</para></listitem>
+<listitem><para>Change the class that it extends from: <emphasis><property>org.apache.struts.action.ActionForm</property></emphasis> to <emphasis><property>org.apache.struts.validator.ValidatorForm</property></emphasis></para></listitem>
+<listitem><para>Comment out a validate method</para></listitem>
+</itemizedlist>
+<para>The file should now look like this:</para>
+<programlisting role="JAVA"><![CDATA[package sample;
+import javax.servlet.http.HttpServletRequest;
+import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMapping;
+public class GetNameForm extends
+
+org.apache.struts.validator.ValidatorForm
+{
+
+ private String name = "";
+
+ /**
+ * @return Returns the name.
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * @param name The name to set.
+ */
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public GetNameForm ()
+ {
+ }
+
+ public void reset(ActionMapping actionMapping,
+ HttpServletRequest request)
+ {
+ this.name = "";
+ }
+
+ // public ActionErrors validate(ActionMapping actionMapping,
+ HttpServletRequest request)
+ {
+ // ActionErrors errors = new ActionErrors();
+ // return errors;
+ // }
+ }
+]]></programlisting>
+
+<itemizedlist continuation="continues">
+<listitem><para>Select <emphasis><property>File > Save All </property></emphasis>from the menu bar</para></listitem>
+<listitem><para>Reload the application into JBoss AS by clicking on the "Change Time Stamp" icon (a finger pointing with a little star) in the toolbar</para></listitem>
+<listitem><para>Run the application</para></listitem>
+<listitem><para>In the browser window, click on the "Say Hello!" button without having entered any name in the form</para></listitem>
+</itemizedlist>
+<para>The error message should appear in a refreshed version of the form.</para>
+</section>
+
+<section id="OtherResource">
+<?dbhtml filename="OtherResource.html"?>
+<title>Other Resources</title>
+ <para>You can also read <ulink url="../../../../../../jsf/docs/build/userguide/en/html/Struts.html">Struts</ulink> chapter in our "Visual Web Tools" guide for more information on this topic.</para>
+</section>
+</chapter>
\ No newline at end of file
Added: trunk/struts/docs/struts_tools_tutorial/pom.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/pom.xml (rev 0)
+++ trunk/struts/docs/struts_tools_tutorial/pom.xml 2008-03-25 14:30:57 UTC (rev 7109)
@@ -0,0 +1,104 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>struts-tools-tutorial-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Struts_Tools_Tutorial_(${translation})</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>highlight</artifactId>
+ <version>3.1.4.GA</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+
+</project>
18 years