Author: prasad
Date: Thu Jan 17 00:59:04 2008
New Revision: 12393

Log:

Fixed MASHUP-523 :Stub Generator's text area is too short it need to be 
lengthen.

Modified:
   trunk/mashup/java/modules/www/stub_gen.jsp

Modified: trunk/mashup/java/modules/www/stub_gen.jsp
==============================================================================
--- trunk/mashup/java/modules/www/stub_gen.jsp  (original)
+++ trunk/mashup/java/modules/www/stub_gen.jsp  Thu Jan 17 00:59:04 2008
@@ -1,203 +1,203 @@
-<%--
- * Copyright 2006,2007 WSO2, Inc. http://www.wso2.org
- *
- * 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.
---%>
-<%@ page errorPage="error.jsp" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndContent" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndContentImpl" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndEntry" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndEntryImpl" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndFeed" %>
-<%@ page import="com.sun.syndication.feed.synd.SyndFeedImpl" %>
-<%@ page import="com.sun.syndication.io.SyndFeedOutput" %>
-<%@ page import="org.wso2.mashup.MashupConstants" %>
-<%@ page import="org.wso2.mashup.utils.QueryResult" %>
-<%@ page import="org.wso2.mashup.utils.QueryResults" %>
-<%@ page import="org.wso2.mashup.webapp.identity.InfoCardHandler" %>
-<%@ page import="org.wso2.mashup.webapp.identity.RegistrationBean" %>
-<%@ page import="org.wso2.mashup.webapp.userprofile.User" %>
-<%@ page import="org.wso2.mashup.webapp.userprofile.UserQuery" %>
-<%@ page import="org.wso2.mashup.webapp.utils.QueryParamUtils" %>
-<%@ page import="org.wso2.mashup.webapp.utils.RegistryUtils" %>
-<%@ page import="org.wso2.registry.Comment" %>
-<%@ page import="org.wso2.registry.LogEntry" %>
-<%@ page import="org.wso2.registry.Registry" %>
-<%@ page import="org.wso2.registry.RegistryConstants" %>
-<%@ page import="org.wso2.registry.RegistryException" %>
-<%@ page import="org.wso2.registry.Resource" %>
-<%@ page import="org.wso2.registry.Tag" %>
-<%@ page import="org.wso2.registry.jdbc.JDBCRegistry" %>
-<%@ page import="org.wso2.registry.secure.SecureRegistry" %>
-<%@ page import="org.wso2.usermanager.Realm" %>
-<%@ page import="org.wso2.usermanager.UserManagerException" %>
-<%@ page import="org.wso2.usermanager.verification.email.EmailVerifier" %>
-<%@ page import="javax.servlet.ServletContext" %>
-<%@ page import="java.net.URL" %>
-<%@ page import="java.net.URLDecoder" %>
-<%@ page import="java.util.ArrayList" %>
-<%@ page import="java.util.Date" %>
-<%@ page import="java.util.Iterator" %>
-<%@ page import="java.util.List" %>
-<%@ page import="java.util.Map" %>
-
-<!--Required to keep a user logged in if 'Remember Me' option is selected-->
-<%@ include file="validate_login.jsp" %>
-
-<%
-    String bounceback = request.getParameter("bounceback");
-
-    if (bounceback == null) {
-        bounceback = "index.jsp";
-    } else {
-        bounceback = URLDecoder.decode(bounceback, "UTF-8");
-    }
-%>
-<html>
-<head>
-    <title>WSO2 Mashup Server - Javascript Stub Generator</title>
-    <!-- Required CSS -->
-    <link href="css/styles.css" rel="stylesheet" type="text/css"/>
-    <link href="css/mashup-main.css" rel="stylesheet" type="text/css"/>
-
-    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>
-    <script language="javascript" src="js/mashup-main.js" 
type="text/javascript"></script>
-    <script language="javascript" src="js/mashup-utils.js" 
type="text/javascript"></script>
-    <script language="javascript" 
src="js/yui/yahoo-dom-event/yahoo-dom-event.js" 
type="text/javascript"></script>     
-    <script language="javascript" src="js/yui/connection/connection.js"
-            type="text/javascript"></script>
-    <script language="javascript" src="js/wso2/WSRequest.js"
-            type="text/javascript"></script>
-
-    <script language="javascript"
-            type="text/javascript">userLoggedOn = 
<%=RegistryUtils.isLoggedIn(registry) %>;</script>
-
-    <script language="JavaScript" type="text/javascript">
-
-        function clearText() {
-            document.getElementById("js-stub").value = "";
-        }
-
-        var callback =
-        {
-            success:handleSuccess,
-            failure:handleFailure,
-            upload:handleSuccess
-        };
-
-        function handleSuccess(o) {
-            var browser = WSRequest.util._getBrowser();
-
-            if (browser == "ie" || browser == "ie7") {
-                document.getElementById("js-stub").value =
-                
o.responseXML.documentElement.getElementsByTagName("ns:return")[0].firstChild.nodeValue;
-            } else {
-                document.getElementById("js-stub").value =
-                o.responseXML.documentElement.firstChild.textContent;
-            }
-
-        }
-
-        function handleFailure(o) {
-            document.getElementById("js-stub").value = o.responseText;
-        }
-
-        function submitFormAsync(formId, isFileUpload) {
-            clearText();
-            var form = document.getElementById(formId);
-
-            if ((isFileUpload) && (document.getElementById("wsdl").value == 
"")) {
-                WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please 
browse your file system for a valid wsdl document.</pre>", 70, 70);
-            } else if ((!isFileUpload) && 
(document.getElementById("url").value == "")) {
-                WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please 
enter the url of a valid wsdl document.</pre>", 70, 70);
-            } else {
-                if (isFileUpload) {
-                    YAHOO.util.Connect.setForm(form, true, true);
-                } else {
-                    YAHOO.util.Connect.setForm(form);
-                }
-
-                YAHOO.util.Connect.asyncRequest("POST", 
form.getAttribute("action"), callback, null);
-            }
-        }
-
-    </script>
-</head>
-<body onload="clearText();">
-<div id="page">
-    <% String thisPage = "stub_gen.jsp"; %>
-    <%@ include file="header.jsp" %>
-    <div id="search"></div>
-    <div id="welcome">
-    </div>
-    <div id="content">
-        <h1>JavaScript Stub Genarator</h1>
-
-        <form id="form" method="post" enctype="multipart/form-data"
-              action="/services/JavaScriptStubGenaratorService/genarateStub" 
target="uploadFrame">
-
-            <table>
-                <tr>
-                    <th align="left">DOM</th>
-                    <td><input type="radio" name="type" value="dom" 
checked="checked"/></td>
-                </tr>
-                <tr>
-                    <th align="left">E4X</th>
-                    <td><input type="radio" name="type" value="e4x"/></td>
-                </tr>
-                <tr>
-                    <th align="left">upload WSDL</th>
-                    <td><input type="file" id="wsdl" name="wsdl"/></td>
-                </tr>
-            </table>
-
-            <br>
-            <input type="button" id="doUpload" name="doUpload" value="OK"
-                   onclick="submitFormAsync('form',true)"/></form>
-
-        <form id="form2" method="post" enctype="multipart/form-data"
-              
action="/services/JavaScriptStubGenaratorService/genarateStubFromURL"
-              target="uploadFrame">
-
-            <table>
-                <tr>
-                    <th align="left">DOM</th>
-                    <td><input type="radio" name="type" value="dom" 
checked="checked"/></td>
-                </tr>
-                <tr>
-                    <th align="left">E4X</th>
-                    <td><input type="radio" name="type" value="e4x"/></td>
-                </tr>
-                <tr>
-                    <th align="left">WSDL URL</th>
-                    <td><input type="text" id="url" name="url"/></td>
-                </tr>
-            </table>
-
-            <br>
-            <input type="button" value="OK"
-                   onclick="submitFormAsync('form2',false)"/></form>
-
-        <div style="height: auto;">
-            <textarea id="js-stub" class="codepress javascript"
-                      style="width: 100%; height: 60%;"> </textarea>
-        </div>
-    </div>
-
-    <div id="testdiv"></div>
-
-    <%@ include file="footer.jsp" %>
-</div>
-</body>
+<%--
+ * Copyright 2006,2007 WSO2, Inc. http://www.wso2.org
+ *
+ * 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.
+--%>
+<%@ page errorPage="error.jsp" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndContent" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndContentImpl" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndEntry" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndEntryImpl" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndFeed" %>
+<%@ page import="com.sun.syndication.feed.synd.SyndFeedImpl" %>
+<%@ page import="com.sun.syndication.io.SyndFeedOutput" %>
+<%@ page import="org.wso2.mashup.MashupConstants" %>
+<%@ page import="org.wso2.mashup.utils.QueryResult" %>
+<%@ page import="org.wso2.mashup.utils.QueryResults" %>
+<%@ page import="org.wso2.mashup.webapp.identity.InfoCardHandler" %>
+<%@ page import="org.wso2.mashup.webapp.identity.RegistrationBean" %>
+<%@ page import="org.wso2.mashup.webapp.userprofile.User" %>
+<%@ page import="org.wso2.mashup.webapp.userprofile.UserQuery" %>
+<%@ page import="org.wso2.mashup.webapp.utils.QueryParamUtils" %>
+<%@ page import="org.wso2.mashup.webapp.utils.RegistryUtils" %>
+<%@ page import="org.wso2.registry.Comment" %>
+<%@ page import="org.wso2.registry.LogEntry" %>
+<%@ page import="org.wso2.registry.Registry" %>
+<%@ page import="org.wso2.registry.RegistryConstants" %>
+<%@ page import="org.wso2.registry.RegistryException" %>
+<%@ page import="org.wso2.registry.Resource" %>
+<%@ page import="org.wso2.registry.Tag" %>
+<%@ page import="org.wso2.registry.jdbc.JDBCRegistry" %>
+<%@ page import="org.wso2.registry.secure.SecureRegistry" %>
+<%@ page import="org.wso2.usermanager.Realm" %>
+<%@ page import="org.wso2.usermanager.UserManagerException" %>
+<%@ page import="org.wso2.usermanager.verification.email.EmailVerifier" %>
+<%@ page import="javax.servlet.ServletContext" %>
+<%@ page import="java.net.URL" %>
+<%@ page import="java.net.URLDecoder" %>
+<%@ page import="java.util.ArrayList" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.Map" %>
+
+<!--Required to keep a user logged in if 'Remember Me' option is selected-->
+<%@ include file="validate_login.jsp" %>
+
+<%
+    String bounceback = request.getParameter("bounceback");
+
+    if (bounceback == null) {
+        bounceback = "index.jsp";
+    } else {
+        bounceback = URLDecoder.decode(bounceback, "UTF-8");
+    }
+%>
+<html>
+<head>
+    <title>WSO2 Mashup Server - Javascript Stub Generator</title>
+    <!-- Required CSS -->
+    <link href="css/styles.css" rel="stylesheet" type="text/css"/>
+    <link href="css/mashup-main.css" rel="stylesheet" type="text/css"/>
+
+    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>
+    <script language="javascript" src="js/mashup-main.js" 
type="text/javascript"></script>
+    <script language="javascript" src="js/mashup-utils.js" 
type="text/javascript"></script>
+    <script language="javascript" 
src="js/yui/yahoo-dom-event/yahoo-dom-event.js" 
type="text/javascript"></script>     
+    <script language="javascript" src="js/yui/connection/connection.js"
+            type="text/javascript"></script>
+    <script language="javascript" src="js/wso2/WSRequest.js"
+            type="text/javascript"></script>
+
+    <script language="javascript"
+            type="text/javascript">userLoggedOn = 
<%=RegistryUtils.isLoggedIn(registry) %>;</script>
+
+    <script language="JavaScript" type="text/javascript">
+
+        function clearText() {
+            document.getElementById("js-stub").value = "";
+        }
+
+        var callback =
+        {
+            success:handleSuccess,
+            failure:handleFailure,
+            upload:handleSuccess
+        };
+
+        function handleSuccess(o) {
+            var browser = WSRequest.util._getBrowser();
+
+            if (browser == "ie" || browser == "ie7") {
+                document.getElementById("js-stub").value =
+                
o.responseXML.documentElement.getElementsByTagName("ns:return")[0].firstChild.nodeValue;
+            } else {
+                document.getElementById("js-stub").value =
+                o.responseXML.documentElement.firstChild.textContent;
+            }
+
+        }
+
+        function handleFailure(o) {
+            document.getElementById("js-stub").value = o.responseText;
+        }
+
+        function submitFormAsync(formId, isFileUpload) {
+            clearText();
+            var form = document.getElementById(formId);
+
+            if ((isFileUpload) && (document.getElementById("wsdl").value == 
"")) {
+                WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please 
browse your file system for a valid wsdl document.</pre>", 70, 70);
+            } else if ((!isFileUpload) && 
(document.getElementById("url").value == "")) {
+                WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please 
enter the url of a valid wsdl document.</pre>", 70, 70);
+            } else {
+                if (isFileUpload) {
+                    YAHOO.util.Connect.setForm(form, true, true);
+                } else {
+                    YAHOO.util.Connect.setForm(form);
+                }
+
+                YAHOO.util.Connect.asyncRequest("POST", 
form.getAttribute("action"), callback, null);
+            }
+        }
+
+    </script>
+</head>
+<body onload="clearText();">
+<div id="page">
+    <% String thisPage = "stub_gen.jsp"; %>
+    <%@ include file="header.jsp" %>
+    <div id="search"></div>
+    <div id="welcome">
+    </div>
+    <div id="content">
+        <h1>JavaScript Stub Genarator</h1>
+
+        <form id="form" method="post" enctype="multipart/form-data"
+              action="/services/JavaScriptStubGenaratorService/genarateStub" 
target="uploadFrame">
+
+            <table>
+                <tr>
+                    <th align="left">DOM</th>
+                    <td><input type="radio" name="type" value="dom" 
checked="checked"/></td>
+                </tr>
+                <tr>
+                    <th align="left">E4X</th>
+                    <td><input type="radio" name="type" value="e4x"/></td>
+                </tr>
+                <tr>
+                    <th align="left">upload WSDL</th>
+                    <td><input type="file" id="wsdl" name="wsdl"/></td>
+                </tr>
+            </table>
+
+            <br>
+            <input type="button" id="doUpload" name="doUpload" value="OK"
+                   onclick="submitFormAsync('form',true)"/></form>
+
+        <form id="form2" method="post" enctype="multipart/form-data"
+              
action="/services/JavaScriptStubGenaratorService/genarateStubFromURL"
+              target="uploadFrame">
+
+            <table>
+                <tr>
+                    <th align="left">DOM</th>
+                    <td><input type="radio" name="type" value="dom" 
checked="checked"/></td>
+                </tr>
+                <tr>
+                    <th align="left">E4X</th>
+                    <td><input type="radio" name="type" value="e4x"/></td>
+                </tr>
+                <tr>
+                    <th align="left">WSDL URL</th>
+                    <td><input type="text" id="url" name="url"/></td>
+                </tr>
+            </table>
+
+            <br>
+            <input type="button" value="OK"
+                   onclick="submitFormAsync('form2',false)"/></form>
+
+        <div >
+            <textarea id="js-stub" rows="25" cols="" class="codepress 
javascript"
+                      style="width: 100%; *width: 98%; height: 60%;"> 
</textarea>
+        </div>
+    </div>
+
+    <div id="testdiv"></div>
+
+    <%@ include file="footer.jsp" %>
+</div>
+</body>
 </html>
\ No newline at end of file

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to