isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danhayw...@apache.org
Subject svn commit: r1089545 [5/10] - in /incubator/isis/trunk/support: quickstart-archetype-NEW/ quickstart-archetype-NEW/src/ quickstart-archetype-NEW/src/main/ quickstart-archetype-NEW/src/main/resources/ quickstart-archetype-NEW/src/main/resources/META-INF...
Date Wed, 06 Apr 2011 17:46:16 GMT
Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/AbstractTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/AbstractTest.java?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/AbstractTest.java (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/AbstractTest.java Wed Apr  6 17:46:06 2011
@@ -0,0 +1,105 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package junit;
+
+import objstore.dflt.todo.ToDoItemRepositoryDefault;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.runner.RunWith;
+
+import dom.todo.ToDoItemRepository;
+
+import org.apache.isis.applib.DomainObjectContainer;
+import org.apache.isis.progmodel.wrapper.applib.WrapperFactory;
+import org.apache.isis.progmodel.wrapper.applib.WrapperObject;
+import org.apache.isis.viewer.junit.ConfigDir;
+import org.apache.isis.viewer.junit.IsisTestRunner;
+import org.apache.isis.viewer.junit.Service;
+import org.apache.isis.viewer.junit.Services;
+
+@RunWith(IsisTestRunner.class)
+@ConfigDir("../quickrun/src/main/resources")
+@Services({ @Service(ToDoItemRepositoryDefault.class) })
+public abstract class AbstractTest {
+
+    private DomainObjectContainer domainObjectContainer;
+    private WrapperFactory wrapperFactory;
+
+    /**
+     * The {@link WrapperFactory${symbol_pound}wrap(Object) wrapped} equivalent of the {@link ${symbol_pound}setFoobarRepository(ToDoItemRepository)
+     * injected} {@link ToDoItemRepository}.
+     */
+    protected ToDoItemRepository toDoItemRepository;
+
+    @Before
+    public void wrapInjectedServices() throws Exception {
+        toDoItemRepository = wrapped(toDoItemRepository);
+    }
+
+    @Before
+    public void setUp() throws Exception {
+    }
+
+    protected <T> T wrapped(T obj) {
+        return wrapperFactory.wrap(obj);
+    }
+
+    @SuppressWarnings("unchecked")
+    protected <T> T unwrapped(T obj) {
+        if (obj instanceof WrapperObject) {
+            WrapperObject wrapperObject = (WrapperObject) obj;
+            return (T) wrapperObject.wrapped();
+        }
+        return obj;
+    }
+
+    @After
+    public void tearDown() throws Exception {
+    }
+
+    // //////////////////////////////////////////////////////
+    // Injected.
+    // //////////////////////////////////////////////////////
+
+    protected WrapperFactory getWrapperFactory() {
+        return wrapperFactory;
+    }
+
+    public void setWrapperFactory(WrapperFactory wrapperFactory) {
+        this.wrapperFactory = wrapperFactory;
+    }
+
+    protected DomainObjectContainer getDomainObjectContainer() {
+        return domainObjectContainer;
+    }
+
+    public void setDomainObjectContainer(final DomainObjectContainer domainObjectContainer) {
+        this.domainObjectContainer = domainObjectContainer;
+    }
+
+    public void setFoobarRepository(final ToDoItemRepository toDoItemRepository) {
+        this.toDoItemRepository = toDoItemRepository;
+    }
+
+}

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemRepositoryTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemRepositoryTest.java?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemRepositoryTest.java (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemRepositoryTest.java Wed Apr  6 17:46:06 2011
@@ -0,0 +1,59 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package junit.todo;
+
+import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.not;
+import static org.hamcrest.Matchers.nullValue;
+import static org.junit.Assert.assertThat;
+
+import java.util.List;
+
+import junit.AbstractTest;
+
+import org.junit.Test;
+
+import dom.todo.ToDoItem;
+import fixture.todo.ToDoItemsFixture;
+
+import org.apache.isis.viewer.junit.Fixture;
+import org.apache.isis.viewer.junit.Fixtures;
+
+@Fixtures({ @Fixture(ToDoItemsFixture.class) })
+public class ToDoItemRepositoryTest extends AbstractTest {
+
+    @Test
+    public void canFindAllItemsNotYetDone() throws Exception {
+        final List<ToDoItem> foobarList = toDoItemRepository.notYetDone();
+        assertThat(foobarList.size(), is(5));
+    }
+
+    @Test
+    public void canCreateToDoItem() throws Exception {
+        ToDoItem newItem = toDoItemRepository.newToDo("item description");
+        assertThat(newItem, is(not(nullValue())));
+        assertThat(newItem.getDescription(), is("item description"));
+        assertThat(getDomainObjectContainer().isPersistent(newItem), is(true));
+    }
+
+}

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemTest.java?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemTest.java (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/tests-junit/src/test/java/junit/todo/ToDoItemTest.java Wed Apr  6 17:46:06 2011
@@ -0,0 +1,69 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package junit.todo;
+
+import static org.hamcrest.Matchers.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.fail;
+import junit.AbstractTest;
+
+import org.junit.Before;
+import org.junit.Test;
+
+import dom.todo.ToDoItem;
+import fixture.todo.ToDoItemsFixture;
+
+import org.apache.isis.progmodel.wrapper.applib.DisabledException;
+import org.apache.isis.viewer.junit.Fixture;
+import org.apache.isis.viewer.junit.Fixtures;
+
+@Fixtures({ @Fixture(ToDoItemsFixture.class) })
+public class ToDoItemTest extends AbstractTest {
+
+    private ToDoItem firstItem;
+
+    @Override
+    @Before
+    public void setUp() {
+        firstItem = wrapped(toDoItemRepository.notYetDone().get(0));
+    }
+    
+    @Test
+    public void canMarkAsDone() throws Exception {
+        firstItem.markAsDone();
+        assertThat(firstItem.getDone(), is(true));
+    }
+
+    @Test
+    public void cannotMarkAsDoneTwice() throws Exception {
+        firstItem.markAsDone();
+        try {
+            firstItem.markAsDone();
+            fail("Should not been disabled");
+        } catch (DisabledException e) {
+            assertThat(e.getMessage(), is("Already done"));
+        }
+    }
+
+
+}

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.classpath
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.classpath?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.classpath (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.classpath Wed Apr  6 17:46:06 2011
@@ -0,0 +1,16 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.project
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.project?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.project (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.project Wed Apr  6 17:46:06 2011
@@ -0,0 +1,45 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>${parentArtifactId}-viewer-html</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/.jsdtscope
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/.jsdtscope?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/.jsdtscope (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/.jsdtscope Wed Apr  6 17:46:06 2011
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/webapp"/>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+		<attributes>
+			<attribute name="hide" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+	<classpathentry kind="output" path=""/>
+</classpath>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.jdt.core.prefs?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.jdt.core.prefs (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.jdt.core.prefs Wed Apr  6 17:46:06 2011
@@ -0,0 +1,9 @@
+#Thu Mar 24 18:57:23 GMT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.6

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.component
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.component?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.component (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.component Wed Apr  6 17:46:06 2011
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+    <wb-module deploy-name="quickstart-viewer-html">
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+        <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+        <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/quickstart-dom/quickstart-dom">
+            <dependency-type>uses</dependency-type>
+        </dependent-module>
+        <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/quickstart-fixture/quickstart-fixture">
+            <dependency-type>uses</dependency-type>
+        </dependent-module>
+        <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/quickstart-objstore-dflt/quickstart-objstore-dflt">
+            <dependency-type>uses</dependency-type>
+        </dependent-module>
+        <property name="context-root" value="quickstart-viewer-html"/>
+        <property name="java-output-path" value="/quickstart-viewer-html/target/classes"/>
+    </wb-module>
+</project-modules>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.project.facet.core.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.project.facet.core.xml?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.project.facet.core.xml (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.common.project.facet.core.xml Wed Apr  6 17:46:06 2011
@@ -0,0 +1,10 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <fixed facet="wst.jsdt.web"/>
+  <installed facet="java" version="1.6"/>
+  <installed facet="jst.web" version="2.4"/>
+  <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.container
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.container?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.container (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.container Wed Apr  6 17:46:06 2011
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.name
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.name?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.name (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.eclipse.wst.jsdt.ui.superType.name Wed Apr  6 17:46:06 2011
@@ -0,0 +1 @@
+Window
\ No newline at end of file

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.maven.ide.eclipse.prefs?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.maven.ide.eclipse.prefs (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/.settings/org.maven.ide.eclipse.prefs Wed Apr  6 17:46:06 2011
@@ -0,0 +1,8 @@
+#Wed Mar 23 07:54:18 GMT 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/.project
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/.project?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/.project (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/.project Wed Apr  6 17:46:06 2011
@@ -0,0 +1,45 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>${parentArtifactId}-viewer-html</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/pom.xml?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/pom.xml (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/pom.xml Wed Apr  6 17:46:06 2011
@@ -0,0 +1,96 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>${package}</groupId>
+        <artifactId>${parentArtifactId}</artifactId>
+        <version>${version}</version>
+    </parent>
+
+	<artifactId>${parentArtifactId}-viewer-html</artifactId>
+	<name>Quickstart HTML Viewer</name>
+	
+	<packaging>war</packaging>
+
+	<build>
+		<plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+            </plugin>
+		</plugins>
+	</build>
+
+	<dependencies>
+	
+        <!-- other modules in this project -->
+        <dependency>
+            <groupId>${symbol_dollar}{project.groupId}</groupId>
+            <artifactId>${parentArtifactId}-dom</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>${symbol_dollar}{project.groupId}</groupId>
+            <artifactId>${parentArtifactId}-fixture</artifactId>
+        </dependency>
+
+
+        <!-- isis viewer -->
+		<dependency>
+	        <groupId>org.apache.isis.viewer</groupId>
+			<artifactId>html</artifactId>
+		</dependency>
+
+        <!-- isis runtime -->
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt.bytecode</groupId>
+            <artifactId>dflt</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
+            <artifactId>dflt</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
+            <artifactId>xml</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt.profilestores</groupId>
+            <artifactId>dflt</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt.profilestores</groupId>
+            <artifactId>xml</artifactId>
+        </dependency>
+        
+        <!-- isis progmodel -->
+        <dependency>
+            <groupId>org.apache.isis.progmodels</groupId>
+            <artifactId>dflt</artifactId>
+        </dependency>
+
+        <!-- isis security implementations -->        
+        <dependency>
+            <groupId>org.apache.isis.security</groupId>
+            <artifactId>file</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.isis.security</groupId>
+            <artifactId>dflt</artifactId>
+        </dependency>
+        
+        <!-- to run using WebServer (optional) -->
+        <dependency>
+            <groupId>org.apache.isis.runtimes.dflt</groupId>
+            <artifactId>webserver</artifactId>
+            <scope>runtime</scope>
+            <optional>true</optional>
+        </dependency>
+
+	</dependencies>
+
+</project>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/resources/images/Default.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/resources/images/Default.png?rev=1089545&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/resources/images/Default.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/isis.properties
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/isis.properties?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/isis.properties (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/isis.properties Wed Apr  6 17:46:06 2011
@@ -0,0 +1,31 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+isis.services.prefix = objstore.dflt
+isis.services = todo.ToDoItemRepositoryDefault
+
+isis.fixtures.prefix= fixture
+isis.fixtures= LogonAsSvenFixture,todo.ToDoItemsFixture
+
+isis.exploration.users=sven, dick, bob
+
+
+isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.dflt.classsubstitutor.CglibClassSubstitutor
+${symbol_pound}isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.javassist.classsubstitutor.JavassistClassSubstitutor
+${symbol_pound}isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.identity.classsubstitutor.ClassSubstitutorIdentity
+
+isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.dflt.objectfactory.CglibObjectFactory
+${symbol_pound}isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.javassist.objectfactory.JavassistObjectFactory
+${symbol_pound}isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.identity.objectfactory.ObjectFactoryBasic
+
+
+isis.persistor.domain-object-container=org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault
+${symbol_pound}isis.persistor.domain-object-container=org.apache.isis.progmodel.wrapper.metamodel.DomainObjectContainerWrapperFactory
+
+
+${symbol_pound}isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl
+${symbol_pound}isis.authorization.learn=true
+
+isis.user-profile-store=in-memory
+isis.persistor=in-memory
+${symbol_pound}isis.xmlos.dir=/tmp/xml
\ No newline at end of file

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/logging.properties
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/logging.properties?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/logging.properties (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/logging.properties Wed Apr  6 17:46:06 2011
@@ -0,0 +1,25 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+${symbol_pound} apache's log4j is used to provide system logging.
+${symbol_pound}log4j.rootCategory=DEBUG, Console, File
+log4j.rootCategory=INFO, Console, File
+
+${symbol_pound} The console appender
+log4j.appender.Console=org.apache.log4j.ConsoleAppender
+log4j.appender.Console.target=System.out
+log4j.appender.Console.layout=org.apache.log4j.PatternLayout
+log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE}  [%-20c{1} %-10t %-5p]  %m%n
+
+
+log4j.appender.File=org.apache.log4j.RollingFileAppender
+log4j.appender.File.file=isis.log
+log4j.appender.File.append=false
+${symbol_pound}log4j.appender.File.maxFileSize=500KB
+${symbol_pound}log4j.appender.File.maxBackupIndex=1
+log4j.appender.File.layout=org.apache.log4j.PatternLayout
+log4j.appender.File.layout.ConversionPattern=%d [%-20c{1} %-10t %-5p]  %m%n
+
+
+
+

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.allow
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.allow?rev=1089545&view=auto
==============================================================================
    (empty)

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.passwords
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.passwords?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.passwords (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/security_file.passwords Wed Apr  6 17:46:06 2011
@@ -0,0 +1,4 @@
+sven:pass
+dick:pass
+bob:pass
+joe:pass

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/viewer_html.properties
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/viewer_html.properties?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/viewer_html.properties (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/viewer_html.properties Wed Apr  6 17:46:06 2011
@@ -0,0 +1,6 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+isis.viewer.html.header=<div id="site-header"><div id="site-logo">&nbsp;</div></div>
+isis.viewer.html.footer=<div id="page-footer"><small>Powered by Apache Isis</small></div>
+isis.viewer.html.port=8080

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/web.xml?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/WEB-INF/web.xml Wed Apr  6 17:46:06 2011
@@ -0,0 +1,115 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4"
+    xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+    <display-name>Apache Isis HTML Viewer</display-name>
+
+    <listener>
+        <listener-class>org.apache.isis.runtimes.dflt.webapp.IsisWebAppBootstrapper</listener-class>
+    </listener>
+
+    <context-param>
+        <param-name>isis.viewers</param-name>
+        <param-value>html</param-value>
+    </context-param>
+
+	<filter>
+		<filter-name>IsisSessionFilter</filter-name>
+		<filter-class>org.apache.isis.runtimes.dflt.webapp.IsisSessionFilter</filter-class>
+		<init-param>
+			<param-name>logonPage</param-name>
+			<param-value>/logon.app</param-value>
+		</init-param>
+	</filter>
+
+	<filter>
+		<filter-name>StaticContentFilter</filter-name>
+		<filter-class>org.apache.isis.core.webapp.content.StaticContentFilter</filter-class>
+		<init-param>
+			<param-name>CacheTime</param-name>
+			<param-value>86400</param-value>
+		</init-param>
+	</filter>
+
+	<filter-mapping>
+		<filter-name>StaticContentFilter</filter-name>
+		<url-pattern>*.css</url-pattern>
+	</filter-mapping>
+	<filter-mapping>
+		<filter-name>StaticContentFilter</filter-name>
+		<url-pattern>*.png</url-pattern>
+	</filter-mapping>
+	<filter-mapping>
+		<filter-name>StaticContentFilter</filter-name>
+		<url-pattern>*.jpg</url-pattern>
+	</filter-mapping>
+	<filter-mapping>
+		<filter-name>StaticContentFilter</filter-name>
+		<url-pattern>*.gif</url-pattern>
+	</filter-mapping>
+    
+    <filter-mapping>
+    	<filter-name>IsisSessionFilter</filter-name>
+    	<url-pattern>*.app</url-pattern>
+    </filter-mapping>
+    
+    <servlet>
+        <servlet-name>Logon</servlet-name>
+        <servlet-class>org.apache.isis.viewer.html.servlet.LogonServlet</servlet-class>
+    </servlet>
+
+    <servlet>
+        <servlet-name>Controller</servlet-name>
+        <servlet-class>org.apache.isis.viewer.html.servlet.ControllerServlet</servlet-class>
+    </servlet>
+
+    <servlet>
+        <servlet-name>Resource</servlet-name>
+        <servlet-class>org.apache.isis.core.webapp.content.ResourceServlet</servlet-class>
+    </servlet>
+
+    <servlet>
+        <servlet-name>Forward</servlet-name>
+        <servlet-class>org.apache.isis.core.webapp.routing.ForwardingServlet</servlet-class>
+        <init-param>
+            <param-name>forwardTo</param-name>
+            <param-value>logon.app</param-value>
+        </init-param>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>Logon</servlet-name>
+        <url-pattern>/logon.app</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>Controller</servlet-name>
+        <url-pattern>*.app</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>Resource</servlet-name>
+		<url-pattern>*.css</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Resource</servlet-name>
+		<url-pattern>*.png</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Resource</servlet-name>
+		<url-pattern>*.jpg</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Resource</servlet-name>
+		<url-pattern>*.gif</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Forward</servlet-name>
+        <url-pattern>/</url-pattern>
+    </servlet-mapping>
+	
+</web-app>

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/default.css
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/default.css?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/default.css (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/default.css Wed Apr  6 17:46:06 2011
@@ -0,0 +1,915 @@
+/* Start Global styles */
+
+body {
+  background: #101254;
+  text-align: center;
+}
+#wrapper {
+  width: 980px;
+  min-height: 800px;
+  border:3px solid #7F81C0;
+  margin:8px auto;
+  text-align: left;
+  background: white;
+}
+
+.header-icon > img {
+	max-width: 40px;
+	height: 40px;
+}
+	
+BODY {
+	font-family: Arial, Sans-Serif;
+	margin: 0 0 10px 0;
+	color: black;
+
+/*
+	background: url(default-images/poweredby-logo.png);
+	background-repeat: no-repeat;
+	background-position: 95% 95%;
+*/
+}
+
+IMG {
+	border: 0;
+}
+
+A {
+	text-decoration: none;
+}
+
+A:hover {
+	text-decoration: underline;
+}
+
+/* End Global styles */ /* Start Heading */ 
+
+div#site-header:after {
+	bottom: 0px;
+	display: block;
+	text-align: right;
+	float:right;
+	bottom: 0;
+	font-size: 70%;
+	color: gray;
+}
+
+div#site-header {
+	background: url(images/banner-bg.png); 
+	background-repeat: repeat-x white-space :   nowrap;
+	list-style: none;
+	margin: 0px;
+	height: 100px;
+}
+
+div#site-logo {
+	background: url(images/banner.png);
+	background-repeat: no-repeat;
+	background-position: left;
+	position: absolute;
+	width: 980px;
+	height: 100px;
+	margin: 0 auto;
+}
+
+div#page-header {
+	display: none;
+}
+
+/* END Heading */
+DIV#body {
+	display: block;
+	padding-bottom: 10px;
+}
+
+div#navigation {
+	margin: 0;
+	padding: 0px;
+}
+
+/* Start options*/
+DIV.options {
+	background-color: #eeeeee;
+	margin: 0;
+	padding: 4px 0px 4px 5px;
+	min-height: 20px;
+	align: right;
+	float:right;
+}
+
+
+DIV.options H4 {
+	display: none;
+}
+
+DIV.options DIV.item {
+	display: inline;
+	border-right: 1px solid #000000;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: #00000;
+	font-size: 70%;
+	margin: 0 6px 0 6px;
+	padding 0 0 0 0;
+	min-width: 200px;
+}
+
+DIV.options DIV.item IMG {
+	display: none;
+}
+
+DIV.options DIV.item a:link {
+	color: #000000;
+	text-decoration: none;
+	margin: 0 5px 0 0px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.options DIV.item a:hover {
+	background-color: #dddddd;
+	margin: 0 5px 0 0px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.options DIV.item a:visited {
+	color: #000000;
+	text-decoration: none;
+	margin: 0 5px 0 0px;
+	padding: 0 2px 0 0px;
+}
+
+/* End options */ 
+
+/* Start services */
+DIV.services {
+	background-color: #7F81C0;
+	margin: 0;
+	padding: 4px 20px 4px 5px;
+	min-height: 20px;
+
+}
+
+DIV.services H4 {
+	display: none;
+}
+
+DIV.services DIV.item {
+	display: inline;
+	border-right: 1px solid #ffffff;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: #ffffff;
+	font-size: 70%;
+	margin: 3px;
+}
+
+DIV.services DIV.item IMG {
+	display: none;
+}
+
+DIV.services DIV.item a:link {
+	color: #ffffff;
+	text-decoration: none;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.services DIV.item a:hover {
+	background-color: #2683E2;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.services DIV.item a:visited {
+	color: #ffffff;
+	text-decoration: none;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.services DIV.item-selected {
+	background-color: #2683E2;
+	display: inline;
+	border-right: 1px solid #ffffff;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: #ffffff;
+	font-size: 70%;
+}
+
+DIV.services DIV.item-selected a:link {
+	color: #ffffff;
+	text-decoration: none;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.services DIV.item-selected a:hover {
+	background-color: #556677;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+DIV.services DIV.item-selected a:visited {
+	color: #ffffff;
+	text-decoration: none;
+	margin: 0 5px 0 5px;
+	padding: 0 2px 0 0px;
+}
+
+/* End services */ /* Start History */
+DIV.history {
+	background-color: #D6D6D6;
+	margin: 0;
+	padding: 1px 30px 0 5px;
+	min-height: 26px;
+}
+
+DIV.history H4 {
+	display: none;
+}
+
+DIV.history DIV.item {
+	display: inline;
+	border-right: 1px solid #ffffff;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: #29357D;
+	font-size: 70%;
+}
+
+DIV.history DIV.item IMG {
+	position: relative;
+	top: 4px;
+	height: 16px;
+	padding: 0 5px 0 0px;
+}
+
+DIV.history DIV.item a:link {
+	color: #29357D;
+	text-decoration: none;
+	margin: 5px;
+	padding: 1px 3px 1px 3px;
+}
+
+DIV.history DIV.item a:hover {
+	background-color: #B7B6B6;
+	padding: 1px 3px 1px 3px;
+}
+
+DIV.history DIV.item a:visited {
+	color: #29357D;
+	text-decoration: none;
+	padding: 1px 3px 1px 3px;
+}
+
+DIV.history DIV.item-selected {
+	background-color: #2683E2;
+	display: inline;
+	border-right: 1px solid #ffffff;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: #29357D;
+	font-size: 70%;
+	height: 30px;
+}
+
+DIV.history DIV.item-selected a:hover {
+	background-color: #556677;
+	padding: 1px 3px 1px 3px;
+}
+
+DIV.history DIV.item-selected a:link {
+	color: #29357D;
+	text-decoration: none;
+	margin: 10px;
+	padding: 1px 3px 1px 3px;
+}
+
+DIV.history DIV.item-selected a:visited {
+	color: #29357D;
+	text-decoration: none;
+	padding: 1px 3px 1px 3px;
+}
+
+/* INVISIBLE character for empty item. FIREFOX ONLY*/
+DIV.history:after {
+	content: "X";
+	display: inline;
+	text-align: right;
+	font-size: 70%;
+	color: #D6D6D6;
+}
+
+/* End History */ /* Start Context */
+div#context {
+	background-color: #F0F0F0;
+	margin: 0;
+	padding: 1px 30px 0 7px;
+	min-height: 26px;
+}
+
+div#context span.disabled {
+	display: inline;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #666666;
+	font-size: 70%;
+	padding: 0px 5px 0px 7px;
+	white-space: nowrap;
+}
+
+div#context span.disabled IMG {
+	display: none
+}
+
+div#context span.disabled a:link {
+	color: #29357D;
+	text-decoration: none;
+	margin: 5px;
+	padding: 1px 3px 1px 3px;
+}
+
+div#context span.disabled a:hover {
+	background-color: #B7B6B6;
+	padding: 1px 3px 1px 3px;
+}
+
+div#context span.disabled a:visited {
+	color: #29357D;
+	text-decoration: none;
+	padding: 1px 3px 1px 3px;
+}
+
+div#context a.linked {
+	display: inline;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #29357D;
+	font-size: 70%;
+	padding: 0px 5px 0px 7px;
+}
+
+div#context a.linked IMG {
+	display: none
+}
+
+div#context a.linked a:link {
+	color: #29357D;
+	text-decoration: none;
+	margin: 5px;
+	padding: 1px 3px 1px 3px;
+}
+
+div#context a.linked  a:hover {
+	background-color: #29357D;
+	padding: 1px 3px 1px 3px;
+	text-decoration: underline;
+}
+
+div#context a.linked  a:visited {
+	color: #29357D;
+	text-decoration: none;
+	padding: 1px 3px 1px 3px;
+}
+
+/* INVISIBLE character for empty breadcrumbs. FIREFOX ONLY*/
+span.disabled:after {
+	content: "X";
+	display: inline;
+	text-align: right;
+	font-size: 70%;
+	color: #F0F0F0;
+}
+
+/* End Context */ /*
+div#help-bar {
+	position: relative;
+	right: 50px;
+	top: 10px;
+	text-align: right; 
+	font-family : arial, 'sans serif'; 
+	font-weight : normal;  
+	color: #0000FF; 
+	font-size : 90%; 
+	line-height : 110%;
+	text-decoration: underline;
+	height: 22px;
+}
+*/
+DIV#body DIV#view {
+	position: relative;
+	top: 0px;
+	left: 0px;
+	margin: 0px;
+}
+
+/* Start of Message Header */
+DIV.message-header {
+	position: relative;
+	top: 10px;
+	padding: 5px 25px 5px 25px;
+	margin: 0 50px 0 255px;
+	vertical-align: middle;
+	COLOR: #003366;
+	FONT-WEIGHT: bold;
+	FONT-SIZE: 80%;
+	LEFT: auto;
+	FONT-STYLE: normal;
+	FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
+	width: 40%;
+}
+
+DIV.message-header DIV.warning {
+	COLOR: #ff0033;
+	padding: 5px 25px 5px 25px;
+	background: url(default-images/sign-warning.png);
+	background-repeat: no-repeat;
+	background-color: #D6D6D6;
+	background-position: 5px 5px;
+}
+
+DIV.message-header DIV.message {
+	COLOR: #003366;
+	padding: 5px 25px 5px 25px;
+	background: url(default-images/sign-info.png);
+	background-repeat: no-repeat;
+	background-color: #D6D6D6;
+	background-position: 5px 5px;
+}
+
+DIV.message-header DIV.message {
+	FONT-WEIGHT: normal;
+}
+
+/* End of Message Header */ /* Start of Object Header */
+DIV.header {
+	position: relative;
+	top: 40px;
+	display: block;
+	background-color: #F0F0F0;
+	min-height: 48px;
+	margin: 0 50px 0 280px;
+
+}
+
+SPAN.header-icon IMG {
+	float: left;
+}
+
+SPAN.header-text {
+	float: left;
+	position: relative;
+	top: 10px;
+	margin-left: 7px;
+	FONT-WEIGHT: bold;
+	FONT-SIZE: 16px;
+	LEFT: auto;
+	COLOR: #003366;
+	FONT-STYLE: normal;
+	FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
+}
+
+/* End of Object Header */ /* Start of Object Contents */
+DIV#content {
+	position: relative;
+	display: block;
+	top: 40px;
+	margin: 0 50px 10px 280px;
+}
+
+/* Start of Object Fields */
+DIV.field {
+	margin: 0;
+	padding: 5px 0px 5px 0px;
+	border-top: 1px solid #666666;
+	min-height: 20px;
+}
+
+DIV.field SPAN.value IMG,DIV.field DIV.value IMG {
+	position: relative;
+	top: 3px;
+	margin: 0px 5px 0 0;
+	height: 16px;
+}
+
+DIV.field SPAN.value A,DIV.field DIV.value A {
+	position: relative;
+	top: -2px;
+	margin: 0px 5px 0 0;
+	height: 16px;
+}
+
+DIV.field DIV.icon IMG {
+	position: relative;
+	top: 0px;
+	margin: 0px 5px 0 0;
+	height: 16px;
+}
+
+.label,.value {
+	font-size: 80%;
+	color: #333399;
+}
+
+DIV.field DIV.icon {
+	display: inline;
+	color: #333399;
+	position: absolute;
+	left: 200px;
+}
+
+DIV.field span.label,DIV.field DIV.label {
+	width: 170px;
+	display: block;
+	/*content: ":";*/
+	margin: 0 0 -18px 7px;
+}
+
+DIV.field span.separator {
+	display: inline;
+	position: relative;
+	margin: 0 0 -15px 180px;
+	vertical-align: top;
+}
+
+DIV.field span.value, DIV.field DIV.value, DIV.field INPUT.value, DIV.field SELECT.value
+	{
+	top: -2px;
+	position: relative;
+	margin: 0px 10px -5px 0px;
+	display: inline;
+}
+
+DIV.field span.value PRE {
+	color: #333399;
+	margin: 0;
+	font-family: inherit;
+}
+
+
+DIV.field textarea.value {
+	font-family: inherit;
+}
+
+
+DIV.field span.optional {
+	margin: -35px 0 0 0;
+	font-size: 70%;
+	color: grey;
+}
+
+DIV.field span.required {
+	display: inline;
+	position: relative;
+	margin: 0;
+	vertical-align: top;
+	color: red;
+}
+
+DIV.field span.error {
+	display: inline;
+	position: relative;
+	color: red;
+	font-size: 70%;
+}
+
+/* INVISIBLE character for empty value FIREFOX ONLY*/
+DIV.field span.value:after {
+	content: "X";
+	display: inline;
+	text-align: right;
+	font-size: 70%;
+	color: white;
+}
+
+/* INVISIBLE character for empty value FIREFOX ONLY*/
+DIV.field span.label:after {
+	content: "X";
+	display: inline;
+	text-align: right;
+	font-size: 70%;
+	color: white;
+}
+
+/* End of Object Fields */ /* Start of Object Table */
+DIV#content TABLE {
+	position: relative;
+	float: left;
+	width: 100%;
+	border: 0;
+	margin: 0 0 10px 0;
+	border-collapse: collapse;
+}
+
+DIV#content TH {
+	padding: 6px;
+	border: 1px solid #ffffff;
+	background-color: #D6D6D6;
+	font-family: arial, 'sans serif';
+	font-weight: bold;
+	color: black;
+	font-size: 70%;
+}
+
+DIV#content TD {
+	background-color: #ffffff;
+	border-right: 0;
+	border-left: 0;
+	border-bottom: 1px solid black;
+	padding: 6px;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	font-size: 80%;
+	color: #333399;
+	margin: 0;
+	text-align: left;
+}
+
+DIV#content TD.rowstart {
+	background-color: #F0F0F0;
+}
+
+DIV#content TD A:visited {
+	color: #0000FF;
+}
+
+DIV#content H4 {
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #000000;
+	font-size: 70%;
+	border-top: 1px solid black;
+	margin: -2px 0 0 0px;
+	padding: 5px;
+}
+
+TD DIV.icon {
+	font-size: 100%;
+	margin-top: 5px;
+}
+
+TD DIV.icon IMG {
+	float: left;
+	margin: -1px 5px 5px 0px;
+	height: 16px;
+}
+
+TD DIV.action-button {
+	background-color: #ffffff;
+	font-size: 130%;
+	text-decoration: none;
+}
+
+/* End of Object Table */
+INPUT.action-button,DIV.action-button {
+	background-color: #F0F0F0;
+	padding: 10px;
+	display: block;
+	margin: 0;
+	min-height: 20px;
+}
+
+INPUT.action-button,DIV.action-button A {
+	background: url(default-images/bg-button.gif);
+	background-repeat: repeat-x;
+	padding: 2px;
+	margin: 5px;
+	border: 1px solid #333399;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #000000;
+	font-size: 70%;
+	font-weight: normal;
+	text-align: center;
+}
+
+DIV.action-button a:link {
+	color: #000000;
+}
+
+DIV.action-button a:visited {
+	color: #000000;
+}
+
+DIV.action-button a:hover {
+	color: #000000;
+	text-decoration: none;
+}
+
+INPUT.action-button,DIV.action-button INPUT {
+	float: left;
+}
+
+/* End of Object Contents */ /* Start of Object Actions Menu */
+DIV#body DIV#view DIV#menu {
+	position: relative;
+	top: 40px;
+	left: 0;
+	background-color: #ffffff;
+	border-top: 1px solid #00336F;
+	margin: 0px;
+	width: 210px;
+	display: block;
+	float: left;
+}
+
+DIV#body DIV#menu H3 {
+	display: none;
+}
+
+DIV#menu SPAN.name {
+	display: block;
+	font-size: 80%;
+	background-color: #ffffff;
+	color: #333399;
+	line-height: 100%;
+	margin: 0 0 0 10px;
+}
+
+DIV.menu-item  a:link {
+	color: #333399;
+}
+
+DIV.menu-item  a:visited {
+	color: #333399;
+}
+
+DIV.submenu-item {
+	font-size: 80%;
+	background-color: #ffffff;
+	color: #1A59A7;
+	margin: 0px;
+	padding: 5px 0px 5px 10px;
+	border-bottom: 1px solid #00336F;
+	line-height: 100%;
+}
+
+DIV.submenu-item DIV.menu-item {
+	background: url(default-images/submenu-bullet.gif);
+	background-repeat: no-repeat;
+	background-position: left;
+	background-color: #ffffff;
+	margin: 0px;
+	line-height: 100%;
+	border: 0;
+	padding: 4px 5px 0px 10px;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #1A59A7;
+	font-size: 85%;
+}
+
+DIV.menu-item {
+	background-color: #ffffff;
+	margin: 0px;
+	line-height: 110%;
+	border-bottom: 1px solid #00336F;
+	padding: 5px 5px 5px 10px;
+	font-family: arial, 'sans serif';
+	font-weight: normal;
+	color: #1A59A7;
+	font-size: 80%;
+}
+
+DIV.menu-item DIV.disabled {
+	color: #a0a0a0;
+}
+
+DIV.menu-item a:link {
+	color: #1A59A7;
+}
+
+DIV.menu-item a:visited {
+	color: #1A59A7;
+}
+
+DIV.menu-item a:hover {
+	color: #006666;
+	text-decoration: underline;
+}
+
+DIV.submenu-item DIV.menu-item a:link {
+	color: #1A59A7;
+}
+
+DIV.submenu-item DIV.menu-item a:visited {
+	color: #1A59A7;
+}
+
+DIV.submenu-item DIV.menu-item a:hover {
+	color: #006666;
+	text-decoration: underline;
+}
+
+/* End of Object Menu */
+DIV.page-footer {
+	position: absolute;
+	right: 10px;
+	bottom: 10px;
+	font-size: 50%;
+	color: #333399;
+}
+
+H1 {
+	font-size: 140%;
+	margin-top: -8px;
+}
+
+H2 {
+	font-size: 90%;
+	color: #333399;
+	letter-spacing: 1pt;
+	text-indent:-1pt;
+	margin: 0;
+}
+
+H3 {
+	font-size: 80%;
+	color: #ffffff;
+	letter-spacing: 1pt;
+	text-indent:-1pt;
+	margin: 15px 10px 5px 10px;
+}
+
+H4 {
+	font-size: 80%;
+	color: #333399;
+	letter-spacing: 1pt;
+	text-indent:-1pt;
+	margin: 10px 10px 0px 10px;
+}
+
+DIV.text {
+	font-size: 100%;
+	color: #336699;
+	letter-spacing: 1pt;
+	text-indent:-1pt;
+	margin: 10px 10px 0px 10px;
+}
+
+DIV.error {
+	font-size: 120%;
+	color: #cc0000;
+	letter-spacing: 1pt;
+	text-indent:-1pt;
+	margin: 10px 10px 0px 10px;
+}
+
+PRE.error-trace {
+	font-size: 80%;
+	color: #cc0000;
+	margin: 10px 10px 0px 10px;
+}
+
+DIV#debug { /*	float: left;*/
+	background-color: #F0F0F0;
+	margin: 30px;
+	padding: 1px 10px 0 7px;
+	min-height: 22px;
+	border: 1px;
+}
+
+DIV#debug H4 {
+	display: inline;
+	font-size: 80%;
+	color: #999;
+	margin: 0 5px 0 10px;
+}
+
+DIV#debug DIV.detail {
+	display: inline;
+	font-size: 80%;
+	color: #999;
+	margin: 0 5px 0 10px;
+}
+
+DIV#page-footer {
+	display: none;
+}
+
+SPAN.message {
+	position: relative;
+	top: 30px;
+	font-size: 100%;
+	color: #336699;
+	margin: 40px 0 0 0;
+	padding: 10px;
+}
+/* Think this is now redundant
+DIV.items {
+	position: relative;
+} 
+*/
+
+
+SPAN.about {
+	display: block;
+	padding: 4px;
+}
+
+
+SPAN.user {
+	display: block;
+	padding: 4px;
+}

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner-bg.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner-bg.png?rev=1089545&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner-bg.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner.png?rev=1089545&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/src/main/webapp/images/banner.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/target/classes/images/Default.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/target/classes/images/Default.png?rev=1089545&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/bin/target/classes/images/Default.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/ide/eclipse/launch/quickstart-viewer-html.launch
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/ide/eclipse/launch/quickstart-viewer-html.launch?rev=1089545&view=auto
==============================================================================
--- incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/ide/eclipse/launch/quickstart-viewer-html.launch (added)
+++ incubator/isis/trunk/support/quickstart-archetype-NEW/src/main/resources/archetype-resources/viewer-html/ide/eclipse/launch/quickstart-viewer-html.launch Wed Apr  6 17:46:06 2011
@@ -0,0 +1,19 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+    <listEntry value="4"/>
+  </listAttribute>
+  <mapAttribute key="org.eclipse.debug.core.preferred_launchers">
+    <mapEntry value="org.eclipse.jdt.launching.localJavaApplication" key="[debug]"/>
+    <mapEntry value="org.eclipse.jdt.launching.localJavaApplication" key="[run]"/>
+  </mapAttribute>
+  <stringAttribute value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector" key="org.eclipse.debug.core.source_locator_id"/>
+  <booleanAttribute value="true" key="org.eclipse.jdt.debug.ui.INCLUDE_EXTERNAL_JARS"/>
+  <stringAttribute value="org.maven.ide.eclipse.launchconfig.classpathProvider" key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER"/>
+  <stringAttribute value="org.apache.isis.WebServer" key="org.eclipse.jdt.launching.MAIN_TYPE"/>
+  <stringAttribute value="${rootArtifactId}-viewer-html" key="org.eclipse.jdt.launching.PROJECT_ATTR"/>
+  <stringAttribute value="org.maven.ide.eclipse.launchconfig.sourcepathProvider" key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"/>
+</launchConfiguration>



Mime
View raw message