diff --git a/serverApps/src/main/servlet/org/compiere/www/Test.java b/serverApps/src/main/servlet/org/compiere/www/Test.java
index e4b3c5b615..401612a510 100644
--- a/serverApps/src/main/servlet/org/compiere/www/Test.java
+++ b/serverApps/src/main/servlet/org/compiere/www/Test.java
@@ -48,7 +48,7 @@ public class Test extends HttpServlet
{
WebDoc doc = WebDoc.create ("Get Request Test");
//
- WebUtil.createResponse(request, response, this, null, doc, true);
+ WebUtil.createResponse(request, response, this, null, doc, false);
} // doGet
@@ -60,7 +60,7 @@ public class Test extends HttpServlet
{
WebDoc doc = WebDoc.create ("Post Request Test");
//
- WebUtil.createResponse(request, response, this, null, doc, true);
+ WebUtil.createResponse(request, response, this, null, doc, false);
} // doPost
} // Test
diff --git a/serverApps/src/main/servlet/org/compiere/www/Test2.java b/serverApps/src/main/servlet/org/compiere/www/Test2.java
index 4127272a82..c8e1579bba 100644
--- a/serverApps/src/main/servlet/org/compiere/www/Test2.java
+++ b/serverApps/src/main/servlet/org/compiere/www/Test2.java
@@ -55,7 +55,7 @@ public class Test2 extends HttpServlet
{
WebDoc doc = WebDoc.create ("Get Request Test2");
//
- WebUtil.createResponse(request, response, this, null, doc, true);
+ WebUtil.createResponse(request, response, this, null, doc, false);
} // doPost
} // Test2
diff --git a/serverApps/src/main/servlet/org/compiere/www/WAccount.java b/serverApps/src/main/servlet/org/compiere/www/WAccount.java
index afe6627a3b..7d39709008 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WAccount.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WAccount.java
@@ -84,8 +84,9 @@ public class WAccount extends HttpServlet
String columnName = WebUtil.getParameter (request, "ColumnName");
//
GridField mField = ws.curTab.getField(columnName);
- log.config("FormName=" + formName + ", ColumnName=" + columnName + ", MField=" + mField.toString());
- if (mField == null || formName == null || columnName == null || formName.equals("") || columnName.equals(""))
+ //Modified by Rob Klein 4/29/07
+ log.config("FormName=" + formName + ", ColumnName=" + columnName + ", MField=" + mField.toString());
+ if (mField == null || columnName == null || columnName.equals(""))
{
WebUtil.createTimeoutPage(request, response, this,
Msg.getMsg(wsc.ctx, "ParameterMissing"));
@@ -93,20 +94,21 @@ public class WAccount extends HttpServlet
}
// Object value = ws.curTab.getValue(columnName);
String target = "opener.document." + formName + "." + columnName;
-
+ String targetBase = "'" + columnName;
+ //Modifeid by Rob Klein 4/229/07
// Create Document
- WebDoc doc = WebDoc.create (mField.getHeader());
+ WebDoc doc = WebDoc.createPopup (mField.getHeader());
body body = doc.getBody();
body.setOnBlur("self.focus();");
- body.addElement(fillTable(ws, mField, target));
-
+ body.addElement(fillTable(ws, mField, targetBase));
+ //Modified by Rob Klein 4/29/07
// Reset, Cancel
button reset = new button();
reset.addElement("Reset"); // translate
- reset.setOnClick(target + ".value='';" + target + "_D.value='';window.close();");
+ reset.setOnClick(targetBase + "F.value='';" + targetBase + "D.value='';self.close();");
button cancel = new button();
cancel.addElement("Cancel"); // translate
- cancel.setOnClick("window.close();");
+ cancel.setOnClick("self.close();return false;");
body.addElement(new p(AlignType.RIGHT)
.addElement(reset)
.addElement(" ")
@@ -144,10 +146,15 @@ public class WAccount extends HttpServlet
private table fillTable (WWindowStatus ws, GridField mField, String target)
{
table table = new table("1");
+ //Modified by Rob klein 4/29/07
+ table.setClass("table-autosort table-autostripe table-stripeclass:alternate");
+ table.addElement("");
tr line = new tr();
- line.addElement(new th(" ")).addElement(new th(Msg.translate(ws.ctx, "Name")));
+ line.addElement(new th(" ")).addElement(new th(Msg.translate(ws.ctx, "Name")).setClass("table-sortable:default"));
table.addElement(line);
-
+ table.addElement("");
+ table.addElement("
");
+
// Fill & list options
Lookup lookup = mField.getLookup();
lookup.fillComboBox(mField.isMandatory(false), true, true, true); // no context check
@@ -162,10 +169,15 @@ public class WAccount extends HttpServlet
KeyNamePair np = (KeyNamePair)lValue;
button button = new button();
button.addElement(">");
- StringBuffer script = new StringBuffer(target);
- script.append(".value='").append(np.getKey()).append("';")
- .append(target).append("_D.value='").append(np.getName()).append("';window.close();");
- button.setOnClick(script.toString());
+ //Modified by Rob Klein 4/29/07
+ StringBuffer script = new StringBuffer();
+ script
+ //.append("';closePopup();")
+ .append("startUpdate(").append(target).append("F',")
+ .append(target).append("D','").append(np.getKey()).append("',")
+ .append(target).append("F','").append(np.getName())
+ .append("');return false;");
+ button.setOnClick(script.toString());
//
line = new tr();
line.addElement(new td(button));
@@ -177,6 +189,7 @@ public class WAccount extends HttpServlet
}
// Restore
lookup.fillComboBox(true);
+ table.addElement("");
return table;
} // fillTable
diff --git a/serverApps/src/main/servlet/org/compiere/www/WAttachment.java b/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
index d1279309af..75bb98c785 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
@@ -69,7 +69,8 @@ public class WAttachment extends HttpServlet
if (session == null || ws == null)
{
doc = WebDoc.createPopup ("No Context");
- doc.addPopupClose();
+ //Modified by Rob Klein 4/29/07
+ doc.addPopupClose(ws.ctx);
}
else
{
@@ -192,7 +193,8 @@ public class WAttachment extends HttpServlet
table.addElement(tr);
// Footer
- doc.addPopupClose();
+ //Modified by Rob Klein 4/29/07
+ doc.addPopupClose(ctx);
//
// System.out.println(doc);
return doc;
diff --git a/serverApps/src/main/servlet/org/compiere/www/WChat.java b/serverApps/src/main/servlet/org/compiere/www/WChat.java
new file mode 100644
index 0000000000..6b42776e79
--- /dev/null
+++ b/serverApps/src/main/servlet/org/compiere/www/WChat.java
@@ -0,0 +1,289 @@
+/******************************************************************************
+ * Product: Adempiere ERP & CRM Smart Business Solution *
+ * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
+ * This program is free software; you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program; if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * For the text or an alternative of this public license, you may reach us *
+ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
+ * or via info@compiere.org or http://www.compiere.org/license.html *
+ *****************************************************************************/
+package org.compiere.www;
+
+import java.io.*;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.logging.Level;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.apache.ecs.AlignType;
+import org.apache.ecs.Element;
+import org.apache.ecs.xhtml.b;
+import org.apache.ecs.xhtml.form;
+import org.apache.ecs.xhtml.hr;
+import org.apache.ecs.xhtml.input;
+import org.apache.ecs.xhtml.p;
+import org.apache.ecs.xhtml.table;
+import org.apache.ecs.xhtml.td;
+import org.apache.ecs.xhtml.textarea;
+import org.apache.ecs.xhtml.tr;
+import org.compiere.apps.AChat;
+import org.compiere.model.GridField;
+import org.compiere.model.MChat;
+import org.compiere.model.MChatEntry;
+import org.compiere.model.MUser;
+import org.compiere.util.*;
+
+
+/**
+ * Web (window) Chat
+ *
+ * @author Jorg Janke
+ * @version $Id: WChat.java $
+ */
+public class WChat extends HttpServlet
+{
+ /** Logger */
+ protected CLogger log = CLogger.getCLogger(getClass());
+ private MChat m_chat;
+ private boolean m_readOnly;
+ private boolean m_hasDependents;
+ private boolean m_hasCallout;
+ private int m_displayLength;
+ private String m_columnName;
+
+ /**
+ * Initialize global variables
+ */
+ public void init(ServletConfig config)
+ throws ServletException
+ {
+ super.init(config);
+ if (!WebEnv.initWeb(config))
+ throw new ServletException("WChat.init");
+ } // init
+
+ /**
+ * Process the HTTP Get request
+ */
+ public void doGet(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ log.fine("doGet");
+ WebSessionCtx wsc = WebSessionCtx.get(request);
+ WWindowStatus ws = WWindowStatus.get(request);
+ //
+ WebDoc doc = null;
+ if (ws == null)
+ {
+ doc = WebDoc.createPopup("No Context");
+ doc.addPopupClose(wsc.ctx);
+ }
+ else
+ {
+ doc = CreateChatPage (ws, wsc, doc, 0 );
+ }
+ //
+ WebUtil.createResponse(request, response, this, null, doc, false);
+ } // doGet
+
+
+ /**
+ * Process the HTTP Post request
+ */
+ public void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ WebDoc doc = null;
+
+ WebSessionCtx wsc = WebSessionCtx.get(request);
+ WWindowStatus ws = WWindowStatus.get(request);
+
+ String data = WebUtil.getParameter(request, "chatinput");
+ int CM_ChatID = WebUtil.getParameterAsInt(request, "CM_ChatID");
+ int AD_Table_ID = WebUtil.getParameterAsInt(request, "AD_Table_ID");
+ int record_ID = WebUtil.getParameterAsInt(request, "record_ID");
+ String description = WebUtil.getParameter(request, "description");
+
+ if (data != null && data.length() > 0)
+ {
+ if (CM_ChatID == 0){
+ m_chat = new MChat (wsc.ctx, AD_Table_ID, record_ID, description, null);
+ m_chat.save();
+ }
+ MChatEntry entry = new MChatEntry(m_chat, data);
+ entry.save();
+
+ } // data to be saved
+
+ doc = CreateChatPage (ws, wsc, doc, m_chat.getCM_Chat_ID());
+ WebUtil.createResponse(request, response, this, null, doc, false);
+ } // doPost
+ /**
+ * Create Text Field
+ * @param data initial value
+ * @param rows no of rows
+ * @return td
+ */
+ private td getTextField (String data, int rows)
+ {
+ textarea text = new textarea (m_columnName, rows, m_displayLength)
+ .addElement(Util.maskHTML(data));
+ text.setID(m_columnName + "F");
+ text.setName(m_columnName);
+ text.setDisabled(m_readOnly);
+ //
+ if (m_hasDependents || m_hasCallout)
+ text.setOnChange("startUpdate(this);");
+
+ return createTD(text);
+ }
+
+ /**
+ * Create Left Top aligned TD
+ * @param element element
+ * @return td table data
+ */
+ private td createTD (Element element)
+ {
+ td td = new td()
+ .addElement(element)
+ .setAlign(AlignType.LEFT)
+ .setVAlign(AlignType.TOP);
+ td.setColSpan(3);
+ return td;
+ } // createTD
+
+ /**
+ * Create Left Top aligned TD
+ * @param element element
+ * @return td table data
+ */
+ private WebDoc CreateChatPage (WWindowStatus ws, WebSessionCtx wsc, WebDoc doc, int CM_Chat_ID)
+
+ {
+ doc = WebDoc.createPopup ("Chat ");
+
+ td center = doc.addWindowCenter(false);
+ int record_ID = ws.curTab.getRecord_ID();
+ log.info("Record_ID=" + record_ID);
+ if (record_ID == -1) // No Key
+ {
+ log.info("Record does not exist");
+ return doc;
+ }
+ // Find display
+ String infoName = null;
+ String infoDisplay = null;
+ for (int i = 0; i < ws.curTab.getFieldCount(); i++)
+ {
+ GridField field = ws.curTab.getField(i);
+ if (field.isKey())
+ infoName = field.getHeader();
+ if ((field.getColumnName().equals("Name") || field.getColumnName().equals("DocumentNo") )
+ && field.getValue() != null)
+ infoDisplay = field.getValue().toString();
+ if (infoName != null && infoDisplay != null)
+ break;
+ }
+ String description = infoName + ": " + infoDisplay;
+ //
+
+
+ if (ws.curTab.getCM_ChatID() > 0)
+ m_chat = new MChat (wsc.ctx, ws.curTab.getCM_ChatID(), null);
+ else if (CM_Chat_ID > 0)
+ m_chat = new MChat (wsc.ctx, CM_Chat_ID, null);
+ else
+ m_chat = new MChat (wsc.ctx, ws.curTab.getAD_Table_ID(), record_ID, description, null);
+
+ String text = m_chat.getHistory(MChat.CONFIDENTIALTYPE_Internal).toString();
+
+
+ form myForm = new form ("WChat")
+ .setName("chat");
+ myForm.setOnSubmit("this.Submit.disabled=true;return true;");
+ if (CM_Chat_ID==0)
+ myForm.addElement(new input(input.TYPE_HIDDEN, "CM_ChatID", ws.curTab.getCM_ChatID()));
+ else
+ myForm.addElement(new input(input.TYPE_HIDDEN, "CM_ChatID", CM_Chat_ID));
+ myForm.addElement(new input(input.TYPE_HIDDEN, "AD_Table_ID", ws.curTab.getAD_Table_ID()));
+ myForm.addElement(new input(input.TYPE_HIDDEN, "record_ID", record_ID));
+ myForm.addElement(new input(input.TYPE_HIDDEN, "description", description));
+
+ table myTable = new table("0", "0", "5", "100%", null);
+ myTable.setID("WChatParameter");
+ m_displayLength = 80;
+
+ //history field
+ myTable.addElement(new tr()
+ .addElement( new td("History")));
+ m_readOnly = true;
+ table HistoryTable = new table("1", "0", "5", "100%", null);
+ HistoryTable.addElement(new tr()
+ .addElement( new td(text)
+ .setRowSpan(10)
+ .setAlign(AlignType.LEFT)
+ .setVAlign(AlignType.TOP)
+ .setColSpan(4)));
+ myTable.addElement(HistoryTable);
+
+ //input field
+ myTable.addElement(new tr()
+ .addElement( new td("Input")));
+ m_readOnly = false;
+ m_columnName = "chatinput";
+ myTable.addElement(new tr()
+ .addElement(getTextField ("", 10)));
+
+// Reset
+ String textbtn = "Reset";
+ if (wsc.ctx != null)
+ text = Msg.getMsg (wsc.ctx, "Reset");
+ input restbtn = new input(input.TYPE_RESET, textbtn, " "+text);
+ restbtn.setID(text);
+ restbtn.setClass("resetbtn");
+
+ // Submit
+ textbtn = "Submit";
+ if (wsc.ctx != null)
+ text = Msg.getMsg (wsc.ctx, "Submit");
+ input submitbtn = new input(input.TYPE_SUBMIT, textbtn, " "+text);
+ submitbtn.setID(text);
+ submitbtn.setClass("submitbtn");
+
+ // Close
+ textbtn = "Close";
+ if (wsc.ctx != null)
+ text = Msg.getMsg (wsc.ctx, "Close");
+ input closebtn = new input(input.TYPE_SUBMIT, textbtn, " "+text);
+ closebtn.setID(text);
+ closebtn.setClass("closebtn");
+ closebtn.setOnClick ("self.close();return false;");
+
+
+ myTable.addElement(new tr()
+ .addElement(new td(null, AlignType.RIGHT, AlignType.MIDDLE, false,
+ restbtn))
+ .addElement(new td(null, AlignType.CENTER, AlignType.MIDDLE, false,
+ submitbtn ))
+ .addElement(new td(null, AlignType.LEFT, AlignType.MIDDLE, false,
+ closebtn)));
+ myForm.addElement(myTable);
+ center.addElement(myForm);
+
+ return doc;
+}
+
+} // WReport
diff --git a/serverApps/src/main/servlet/org/compiere/www/WHelp.java b/serverApps/src/main/servlet/org/compiere/www/WHelp.java
index 48e64eccc9..d3297397db 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WHelp.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WHelp.java
@@ -57,7 +57,8 @@ public class WHelp extends HttpServlet
if (ws == null)
{
doc = WebDoc.createPopup("No Context");
- doc.addPopupClose();
+ //Modified by Rob Klein 4/29/07
+ doc.addPopupClose(Env.getCtx());
}
else
doc = ws.mWindow.getHelpDoc(false);
diff --git a/serverApps/src/main/servlet/org/compiere/www/WLocation.java b/serverApps/src/main/servlet/org/compiere/www/WLocation.java
index f0c7c8bfae..6ad3df3d51 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WLocation.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WLocation.java
@@ -113,7 +113,8 @@ public class WLocation extends HttpServlet
String action = request.getRequestURI();
// Create Document
WebDoc doc = WebDoc.createPopup (mField.getHeader());
- doc.addPopupClose();
+ //Modified by Rob klein 4/29/07
+ doc.addPopupClose(ws.ctx);
boolean hasDependents = ws.curTab.hasDependants(columnName);
boolean hasCallout = mField.getCallout().length() > 0;
@@ -128,8 +129,8 @@ public class WLocation extends HttpServlet
doc.getTable().addElement(new tr()
.addElement(fillForm(ws, action, location, targetBase, hasDependents || hasCallout))
.addElement(reset));
- //
- doc.addPopupClose();
+ //Modified by Rob Klein 4/29/07
+ doc.addPopupClose(ws.ctx);
// log.trace(log.l6_Database, doc.toString());
WebUtil.createResponse (request, response, this, null, doc, false);
} // doGet
@@ -170,7 +171,8 @@ public class WLocation extends HttpServlet
// Document
WebDoc doc = WebDoc.createPopup ("WLocation");
- doc.addPopupClose();
+ //Modified by Rob Klein 4/29/07
+ doc.addPopupClose(ws.ctx);
// Save Location
location.save();
diff --git a/serverApps/src/main/servlet/org/compiere/www/WLogin.java b/serverApps/src/main/servlet/org/compiere/www/WLogin.java
index 5d46d28a5e..13c3ed2fac 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WLogin.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WLogin.java
@@ -192,7 +192,7 @@ public class WLogin extends HttpServlet
}
}
}
- WebUtil.createResponse (request, response, this, cProp, doc, true);
+ WebUtil.createResponse (request, response, this, cProp, doc, false);
} // doPost
// Variable Names
@@ -234,11 +234,15 @@ public class WLogin extends HttpServlet
String action = request.getRequestURI();
form myForm = null;
myForm = new form(action).setName("Login1");
- table table = new table().setAlign(AlignType.CENTER);
-
+ table table = new table().setAlign(AlignType.CENTER).setWidth("25%");
+ //Modified by Rob Klein 4/29/07
+ // Blank Line
+ tr line = new tr();
+ line.addElement(new td().addElement(" "));
+
// Username
String userData = cProp.getProperty(P_USERNAME, "");
- tr line = new tr();
+ line = new tr();
label usrLabel = new label().setFor(P_USERNAME + "F").addElement(usrText);
usrLabel.setID(P_USERNAME + "L");
line.addElement(new td().addElement(usrLabel).setAlign(AlignType.RIGHT));
@@ -276,7 +280,7 @@ public class WLogin extends HttpServlet
options[i].setSelected(false);
}
line.addElement(new td().addElement(new select(Env.LANGUAGE, options)
- .setID(Env.LANGUAGE + "F") ));
+ .setID(Env.LANGUAGE + "F")));
table.addElement(line);
// Store Cookie
@@ -300,18 +304,32 @@ public class WLogin extends HttpServlet
// Finish
line = new tr();
- input cancel = new input(input.TYPE_RESET, "Reset", cancelText);
- line.addElement(new td().addElement(cancel ));
- line.addElement(new td().addElement(new input(input.TYPE_SUBMIT, P_SUBMIT, okText) ));
- table.addElement(line);
+ //Modified by Rob Klein 4/29/07
+ table tablebutton = new table().setAlign(AlignType.CENTER).setWidth("25%");
+ input cancel = new input(input.TYPE_RESET, "Reset", " "+"Cancel");
+ cancel.setClass("cancelbtn");
+ line.addElement(new td().addElement(cancel).setWidth("50%")).setAlign(AlignType.CENTER);
+ input submit = new input(input.TYPE_SUBMIT, P_SUBMIT, " "+"OK");
+ submit.setClass("loginbtn");
+ line.addElement(new td().addElement(submit).setWidth("50%").setAlign(AlignType.CENTER));
+ tablebutton.addElement(line);
+ table.addElement(tablebutton);
//
myForm.addElement(table);
// Document
WebDoc doc = WebDoc.createWindow (windowTitle);
- doc.addWindowCenter(true)
- .addElement(new h3("The HTML UI is Beta Functionality!"))
- .addElement(myForm);
+ //Modified by Rob Klein 4/29/07
+ img img = new img (WebEnv.getImageDirectory("Logo.gif"), "logo");
+ doc.addWindowCenter(true)
+ .addElement(img)
+ .addElement(new p())
+ .addElement(new p())
+ //.addElement(new h3("The HTML UI is Beta Functionality!"))
+ //.addElement(myForm)
+ .addElement(myForm)
+ .addElement(new p())
+ .addElement(new p());
// Clear Menu Frame
doc.getBody()
.addElement(WebUtil.getClearFrame(WebEnv.TARGET_MENU))
@@ -344,6 +362,10 @@ public class WLogin extends HttpServlet
// Role Pick
tr line = new tr();
+ //Modified by Rob Klein 4/29/07
+ line.addElement(new td().addElement(" "));
+ table.addElement(line);
+ line = new tr();
label roleLabel = new label().setFor(P_ROLE + "F").addElement(Msg.translate(wsc.language, "AD_Role_ID"));
roleLabel.setID(P_ROLE + "L");
line.addElement(new td().addElement(roleLabel).setAlign(AlignType.RIGHT));
@@ -403,23 +425,37 @@ public class WLogin extends HttpServlet
line.addElement(new td().addElement(new strong(errorMessage)).setColSpan(2).setAlign(AlignType.CENTER));
table.addElement(line);
}
-
- // Finish
+ //Modified by Rob Klein 4/29/07
+ // Finish
+ table tablebutton = new table().setAlign(AlignType.CENTER).setWidth("25%");
line = new tr();
- input cancel = new input(input.TYPE_RESET, "Reset", Msg.getMsg(wsc.language, "Cancel"));
- line.addElement(new td().addElement(cancel ));
- input submit = new input(input.TYPE_SUBMIT, "Submit", Msg.getMsg(wsc.language, "OK"));
+ //Modified by Rob Klein 4/29/07
+ //input cancel = new input(input.TYPE_RESET, "Reset", Msg.getMsg(wsc.language, "Cancel"));
+ input cancel = new input(input.TYPE_RESET, "Reset", " "+ "Cancel");
+ cancel.setOnClick("window.top.location.replace('/adempiere/index.html');");
+ cancel.setClass("cancelbtn");
+ line.addElement(new td().addElement(cancel).setWidth("50%").setAlign(AlignType.CENTER));
+ input submit = new input(input.TYPE_SUBMIT, "Submit", " "+ "OK");
submit.setOnClick("showLoadingMenu('" + WebEnv.getBaseDirectory("") + "');");
- line.addElement(new td().addElement(submit));
- table.addElement(line);
+ //Modified by Rob Klein 4/29/07
+ submit.setClass("loginbtn");
+ line.addElement(new td().addElement(submit).setWidth("50%").setAlign(AlignType.CENTER));
+ tablebutton.addElement(line);
+ table.addElement(tablebutton);
//
myForm.addElement(table);
// Create Document
WebDoc doc = WebDoc.createWindow (windowTitle);
+ //Modified by Rob Klein 4/29/07
+ img img = new img (WebEnv.getImageDirectory("Logo.gif"), "logo");
doc.addWindowCenter(true)
- .addElement(new h3("The HTML UI is Beta Functionality!"))
- .addElement(myForm);
+ .addElement(img)
+ .addElement(new p())
+ //.addElement(new h3("The HTML UI is Beta Functionality!"))
+ .addElement(myForm)
+ .addElement(new p())
+ .addElement(new p());
//
String script = "fieldUpdate(document.Login2." + P_ROLE + ");"; // init dependency updates
doc.getBody()
diff --git a/serverApps/src/main/servlet/org/compiere/www/WLookup.java b/serverApps/src/main/servlet/org/compiere/www/WLookup.java
index f5f2bc263a..da7bd1a9b2 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WLookup.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WLookup.java
@@ -17,9 +17,18 @@
package org.compiere.www;
import java.io.*;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.logging.Level;
+
import javax.servlet.*;
import javax.servlet.http.*;
+
+import org.apache.ecs.AlignType;
import org.apache.ecs.xhtml.*;
+import org.compiere.grid.ed.VLookup;
import org.compiere.model.*;
import org.compiere.util.*;
@@ -45,6 +54,12 @@ public class WLookup extends HttpServlet
/** Logger */
protected static CLogger log = CLogger.getCLogger(WLookup.class);
+ /** The Data List */
+ protected volatile ArrayList