From: Eric P. <th...@us...> - 2010-03-08 23:13:07
|
Update of /cvsroot/sandev/sand/platform/tools/src/org/sandev/tools/UIProcessor In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv3177 Modified Files: XHTMLSandUIServlet.java Log Message: Cleaned up the action test debug output, logs were getting pretty verbose. Index: XHTMLSandUIServlet.java =================================================================== RCS file: /cvsroot/sandev/sand/platform/tools/src/org/sandev/tools/UIProcessor/XHTMLSandUIServlet.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** XHTMLSandUIServlet.java 5 Oct 2009 01:42:19 -0000 1.37 --- XHTMLSandUIServlet.java 8 Mar 2010 23:12:58 -0000 1.38 *************** *** 1,5 **** /* * SAND development/deployment environment ! * Copyright (C) 2003-2009 SAND Services Inc. * * This library is free software; you can redistribute it and/or --- 1,5 ---- /* * SAND development/deployment environment ! * Copyright (C) 2003-2010 SAND Services Inc. * * This library is free software; you can redistribute it and/or *************** *** 850,869 **** " *** processScreen custom action: " + customAction); } ////do the action, cascading tests allow for chaining ! debug("test custom action, uifc.action: " + uifc.getAction() + ! ", uifc.outputText: " + uifc.dumpOutputText()); if(uifc.getAction()==UIFormContext.ACTION_CUSTOM) { debug("do custom action"); uifc=getFormOwner().doAction(customAction,uifc,uwl); } ! debug("test standard action, uifc.action: " + uifc.actionValueToLabel(uifc.getAction()) + ! ", uifc.outputText: " + uifc.dumpOutputText()); if((uifc.isFormManagerAction())&& //form action and (!uifc.hasErrorOutput())) { //no load errors ! debug("do standard action " + uifc.actionValueToLabel(uifc.getAction())); if(getFormManager().processForm(uifc,getFormOwner())) { globalChangeFormIndex=i; } } ! debug("test init action, uifc.action: " + ! uifc.actionValueToLabel(uifc.getAction()) + ! ", user: " + uifc.getUserID() + ! ", uifc.outputText: " + uifc.dumpOutputText()); if(uifc.getAction()==UIFormContext.ACTION_INIT) { debug("do init action"); --- 850,865 ---- " *** processScreen custom action: " + customAction); } ////do the action, cascading tests allow for chaining ! debugActionTest("custom",uifc); if(uifc.getAction()==UIFormContext.ACTION_CUSTOM) { debug("do custom action"); uifc=getFormOwner().doAction(customAction,uifc,uwl); } ! debugActionTest("standard",uifc); if((uifc.isFormManagerAction())&& //form action and (!uifc.hasErrorOutput())) { //no load errors ! debug("do standard action " + ! uifc.actionValueToLabel(uifc.getAction())); if(getFormManager().processForm(uifc,getFormOwner())) { globalChangeFormIndex=i; } } ! debugActionTest("init",uifc); if(uifc.getAction()==UIFormContext.ACTION_INIT) { debug("do init action"); *************** *** 2058,2062 **** protected void debug(String text) { ! getFormOwner().log(Logger.LOGLEVEL_DEBUG,text); } --- 2054,2067 ---- protected void debug(String text) { ! getFormOwner().log(Logger.LOGLEVEL_DEBUG,"XHTMLSandUIServlet " + text); ! } ! ! ! protected void debugActionTest(String test,UIFormContext uifc) ! { ! //debug("test " + test + " action, uifc.action: " + uifc.getAction() + ! // " (" + uifc.actionValueToLabel(uifc.getAction()) + ")" + ! // ", user: " + uifc.getUserID() + ! // ", uifc.outputText: " + uifc.dumpOutputText()); } |