You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2006/01/31 07:03:29 UTC
svn commit: r373732 [2/2] - in /struts/shale/trunk/sql-browser: ./ ext/ lib/
nbproject/ src/ src/conf/ src/java/ src/java/org/ src/java/org/apache/
src/java/org/apache/shale/ src/java/org/apache/shale/examples/
src/java/org/apache/shale/examples/sqlbro...
Added: struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java (added)
+++ struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java Mon Jan 30 22:03:15 2006
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.blank.systest;
+
+import java.util.ResourceBundle;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.shale.test.htmlunit.AbstractHtmlUnitTestCase;
+
+/**
+ * <p>System test case for the <code>/welcome.jsp</code> page.</p>
+ */
+public class WelcomeTestCase extends AbstractHtmlUnitTestCase {
+
+
+ // ------------------------------------------------------------ Constructors
+
+
+ /**
+ * <p>Construct a new instance of this test case.</p>
+ *
+ * @param name Name of the new test case
+ */
+ public WelcomeTestCase(String name) {
+
+ super(name);
+
+ }
+
+
+ // ------------------------------------------------------ Instance Variables
+
+
+ private ResourceBundle bundle =
+ ResourceBundle.getBundle("org.apache.shale.blank.Bundle");
+
+
+ // ------------------------------------------------------ Test Setup Methods
+
+
+ /**
+ * <p>Set up the instance variables required for this test case.</p>
+ */
+ public void setUp() throws Exception {
+
+ super.setUp();
+ page("/");
+
+ }
+
+
+ /**
+ * <p>Return the set of tests included in this test suite.</p>
+ */
+ public static Test suite() {
+
+ return (new TestSuite(WelcomeTestCase.class));
+
+ }
+
+
+ /**
+ * <p>Tear down instance variables required by this test case.</p>
+ */
+ public void tearDown() {
+
+ super.tearDown();
+
+ }
+
+
+
+ // ------------------------------------------------- Individual Test Methods
+
+
+ // Test a pristine instance of this page
+ public void testPristine() throws Exception {
+
+ assertEquals(bundle.getString("welcome.title"), title());
+
+ }
+
+
+}
Propchange: struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/systest/org/apache/shale/blank/systest/WelcomeTestCase.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java (added)
+++ struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java Mon Jan 30 22:03:15 2006
@@ -0,0 +1,107 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.blank;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.shale.test.base.AbstractViewControllerTestCase;
+
+/**
+ * <p>Test case for the {@link WelcomeBean} ViewController implementation.</p>
+ *
+ * $Id$
+ */
+public class WelcomeBeanTestCase extends AbstractViewControllerTestCase {
+
+
+ // ------------------------------------------------------------ Constructors
+
+
+ // Construct a new instance of this test case.
+ public WelcomeBeanTestCase(String name) {
+ super(name);
+ }
+
+
+ // ---------------------------------------------------- Overall Test Methods
+
+
+ // Set up instance variables required by this test case.
+ public void setUp() {
+
+ // Perform superclass setup tasks
+ super.setUp();
+
+ // Construct a new instance to be tested
+ bean = new WelcomeBean();
+
+ // Insert any additional setup for your unit test methods here
+
+ }
+
+ // Return the tests included in this test case.
+ public static Test suite() {
+
+ return (new TestSuite(WelcomeBeanTestCase.class));
+
+ }
+
+
+ // Tear down instance variables required by this test case.
+ public void tearDown() {
+
+ // Insert any additional teardown for your unit test methods here
+
+ // Remove the instance we just tested
+ bean = null;
+
+ // Perform superclass teardown tasks
+ super.tearDown();
+
+ }
+
+
+ // ------------------------------------------------------ Instance Variables
+
+
+ // The instance to be tested
+ WelcomeBean bean = null;
+
+
+ // ------------------------------------------------------------ Test Methods
+
+
+ // Test behavior of prerender() method
+ public void testPrerender() {
+
+ bean.prerender();
+ assertNotNull(bean.getTimestamp());
+
+ }
+
+
+ // Test a pristine instance of {@link WelcomeBean}
+ public void testPristine() {
+
+ assertNull(bean.getTimestamp());
+
+ }
+
+
+}
Propchange: struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/test/org/apache/shale/blank/WelcomeBeanTestCase.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml (added)
+++ struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml Mon Jan 30 22:03:15 2006
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+-->
+
+<catalogs>
+
+ <catalog name="shale">
+
+ <!-- Define preprocessing command chain for Shale to execute -->
+<!--
+ <chain name="preprocess">
+
+ </chain>
+-->
+
+ <!-- Define postprocessing command chain for Shale to execute -->
+<!--
+ <chain name="postprocess">
+
+ </chain>
+-->
+
+ </catalog>
+
+
+</catalogs>
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/chain-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml (added)
+++ struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml Mon Jan 30 22:03:15 2006
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE dialogs PUBLIC
+ "-//Apache Software Foundation//DTD Shale Dialog Configuration 1.0//EN"
+ "http://struts.apache.org/dtds/shale-dialog-config_1_0.dtd">
+
+<!--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+-->
+
+<dialogs>
+
+ <!-- Define your application dialogs here, similar to the following example -->
+
+<!--
+ <dialog name="Log On"
+ start="Check Cookie">
+
+ <action name="Check Cookie"
+ method="#{profile$logon.check}">
+ <transition outcome="authenticated"
+ target="Exit"/>
+ <transition outcome="unauthenticated"
+ target="Logon Form"/>
+ </action>
+
+ <view name="Logon Form"
+ viewId="/profile/logon.jsp">
+ <transition outcome="authenticated"
+ target="Exit"/>
+ <transition outcome="create"
+ target="Create Profile"/>
+ <transition outcome="cancel"
+ target="Exit"/>
+ </view>
+
+ <subdialog name="Create Profile"
+ dialogName="Edit Profile">
+ <transition outcome="success"
+ target="Exit"/>
+ </subdialog>
+
+ <end name="Exit"
+ viewId="/usecases.jsp"/>
+
+ </dialog>
+-->
+
+
+</dialogs>
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/dialog-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml (added)
+++ struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml Mon Jan 30 22:03:15 2006
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+-->
+
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<faces-config>
+
+
+ <!-- ========================= Locale Management ========================= -->
+
+
+ <!-- Uncomment the following element and configure the default and
+ supported locales for your application -->
+<!--
+ <application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>en</supported-locale>
+ <supported-locale>fr</supported-locale>
+ <supported-locale>de</supported-locale>
+ <supported-locale>es</supported-locale>
+ </locale-config>
+ </application>
+-->
+
+
+ <!-- Uncomment the following element (after fixing the package name as needed)
+ if your localized message bundle contains replacements for the standard
+ converter or validator error messages. -->
+<!--
+ <application>
+ <message-bundle>org.apache.shale.blank.Bundle</message-bundle>
+ </application>
+-->
+
+
+ <!-- ============================== /welcome.jsp ========================= -->
+
+
+ <!--
+ <managed-bean>
+ <managed-bean-name>welcome</managed-bean-name>
+ <managed-bean-class>org.apache.shale.blank.WelcomeBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ -->
+
+ <!-- This simple example has no navigation rules, but if it did they could
+ go right here. JavaServer Faces lets you organize the elements of the
+ configuration resources in whatever order makes sense. In most cases,
+ it will be easiest to group the settings related to each individual
+ page, or group of related pages, together.
+ -->
+<!--
+ <navigation-rule>
+ <from-view-id>/welcome.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/nextpage.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+-->
+
+</faces-config>
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml (added)
+++ struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml Mon Jan 30 22:03:15 2006
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+-->
+<web-app 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 for this application -->
+ <display-name>@projectName@</display-name>
+
+ <!-- Select JSF State Saving Mode -->
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>@stateSaving@</param-value>
+ </context-param>
+
+ <!-- JSF Configuration Resources (comma-separated list) -->
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+
+ <!-- Commons Chain Configuration Resources -->
+ <context-param>
+ <param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE</param-name>
+ <param-value>/WEB-INF/chain-config.xml</param-value>
+ </context-param>
+
+ <!-- Dialog Configuration Resources (comma-separated list) -->
+ <context-param>
+ <param-name>org.apache.shale.dialog.CONFIGURATION</param-name>
+ <param-value>/WEB-INF/dialog-config.xml</param-value>
+ </context-param>
+
+ <!-- Spring ApplicationContext Configuration (space separated list) -->
+<!--
+ <context-param>
+ <param-name>contextConfigLocation</param-name>
+ <param-value>/WEB-INF/applicationContext.xml</param-value>
+ </context-param>
+-->
+
+ <!-- Shale Application Controller Filter -->
+ <filter>
+ <filter-name>shale</filter-name>
+ <filter-class>
+ org.apache.shale.faces.ShaleApplicationFilter
+ </filter-class>
+ </filter>
+
+ <!-- Shale Application Controller Filter Mapping -->
+ <filter-mapping>
+ <filter-name>shale</filter-name>
+ <url-pattern>/*</url-pattern>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ </filter-mapping>
+
+ <!-- Commons Chain Configuration Listener -->
+ <listener>
+ <listener-class>
+ org.apache.commons.chain.web.ChainListener
+ </listener-class>
+ </listener>
+
+ <!-- Spring ApplicationContext Configuration Listener -->
+<!--
+ <listener>
+ <listener-class>
+ org.springframework.web.context.ContextLoaderListener
+ </listener-class>
+ </listener>
+-->
+
+ <!-- JavaServer Faces Servlet Configuration -->
+ <listener>
+ <listener-class>org.apache.shale.examples.sqlbrowser.Listener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>faces</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- JavaServer Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>faces</servlet-name>
+ <url-pattern>*.faces</url-pattern>
+ </servlet-mapping>
+
+ <!-- Welcome File List -->
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/index.jsp
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/index.jsp?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/index.jsp (added)
+++ struts/shale/trunk/sql-browser/src/web/index.jsp Mon Jan 30 22:03:15 2006
@@ -0,0 +1,21 @@
+<%--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+--%>
+
+<jsp:forward page="/query.faces"/>
Propchange: struts/shale/trunk/sql-browser/src/web/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/messages.jspf
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/messages.jspf?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/messages.jspf (added)
+++ struts/shale/trunk/sql-browser/src/web/messages.jspf Mon Jan 30 22:03:15 2006
@@ -0,0 +1,23 @@
+<%--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+--%>
+
+<f:loadBundle var="messages"
+ basename="org.apache.shale.examples.sqlbrowser.Bundle"/>
+
Propchange: struts/shale/trunk/sql-browser/src/web/messages.jspf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/messages.jspf
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/query.jsp
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/query.jsp?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/query.jsp (added)
+++ struts/shale/trunk/sql-browser/src/web/query.jsp Mon Jan 30 22:03:15 2006
@@ -0,0 +1,90 @@
+<%--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+--%>
+
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<f:view>
+<%-- <%@ include file="messages.jspf"%> --%>
+
+<html>
+
+ <head>
+ <title><h:outputText value="#{messages['sqlbrowser.title']}"/></title>
+ <head>
+
+ <body>
+
+ <h:form id="form">
+
+ <h:panelGrid columns="1">
+
+ <h:panelGrid columns="2">
+
+ <%-- First Row --%>
+
+ <h:outputLabel for="dataSource"
+ value="#{messages['sqlbrowser.dataSource']}"/>
+
+ <h:selectOneMenu id="dataSource"
+ value="#{query.dataSource">
+ <f:selectItems value="#{appbean.dataSources}"/>
+ </h:selectOneMenu>
+
+ <%-- Second Row --%>
+
+ <h:outputLabel for="query"
+ value="#{messages['sqlbrowser.query']}"/>
+
+ <h:inputTextarea id="query"
+ value="#{query.query}"
+ cols="80"
+ rows="10"/>
+
+ <%-- Third Row --%>
+
+ <h:outputText value=""/>
+
+ <h:commandButton id="execute"
+ action="#{query.execute}"
+ value="#{messages['sqlbrowser.execute']}"/>
+
+ </h:panelGrid>
+
+ <%-- Message list in case there are any errors --%>
+
+ <h:messages id="messages"/>
+
+ <%-- Table containing the query results --%>
+
+ <h:dataTable id="results"
+ binding="#{query.results}"
+ rendered="#{query.completed}"
+ var="currentRow"/>
+
+ </h:panelGrid>
+
+ </h:form>
+
+ </body>
+
+</html>
+
+</f:view>
Propchange: struts/shale/trunk/sql-browser/src/web/query.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/query.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: struts/shale/trunk/sql-browser/src/web/welcome.jsp
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/sql-browser/src/web/welcome.jsp?rev=373732&view=auto
==============================================================================
--- struts/shale/trunk/sql-browser/src/web/welcome.jsp (added)
+++ struts/shale/trunk/sql-browser/src/web/welcome.jsp Mon Jan 30 22:03:15 2006
@@ -0,0 +1,46 @@
+<%--
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
+ $Id$
+
+--%>
+
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<f:view>
+ <%@include file="messages.jspf"%>
+
+<html>
+
+ <head>
+ <title><h:outputText value="#{messages['welcome.title']}"/></title>
+ <head>
+
+ <body>
+
+ <p>
+ <h:outputText value="#{messages['welcome.prompt']}"/>
+ <h:outputText value="#{welcome.timestamp}">
+ <f:convertDateTime type="both"/>
+ </h:outputText>
+ </p>
+
+ </body>
+
+</html>
+
+</f:view>
Propchange: struts/shale/trunk/sql-browser/src/web/welcome.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/sql-browser/src/web/welcome.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org