From: Jacob P. <jpe...@us...> - 2007-02-08 14:08:36
|
Update of /cvsroot/compiere/webStore/src/java/org/compiere/ifm/app/pages In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28032/src/java/org/compiere/ifm/app/pages Modified Files: Tag: pbs_payment FileList.java Log Message: function to debug monitor Index: FileList.java =================================================================== RCS file: /cvsroot/compiere/webStore/src/java/org/compiere/ifm/app/pages/Attic/FileList.java,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** FileList.java 1 Feb 2007 08:33:40 -0000 1.1.2.16 --- FileList.java 8 Feb 2007 14:08:28 -0000 1.1.2.17 *************** *** 13,17 **** --- 13,19 ---- import javax.faces.component.html.HtmlDataTable; import javax.faces.component.html.HtmlForm; + import javax.faces.context.FacesContext; + import org.compiere.ifm.app.beans.SessionData; import org.compiere.ifm.app.servlet.CommunicationServlet; import org.compiere.model.MUser; *************** *** 26,29 **** --- 28,32 ---- private HtmlForm form1 = new HtmlForm(); private boolean showAll; + private int debugPort=0; //private int showYear=0; //private List letterYears = null; *************** *** 92,95 **** --- 95,111 ---- return "back"; } + + + /** + * Set the debug port on session, so where ever the applet is started it is in debug. + * @return + */ + public String debug_action() { + FacesContext c = FacesContext.getCurrentInstance(); + SessionData sessiondata = (SessionData) getBean("SessionData"); + sessiondata.setDebugPort(this.debugPort); + return ""; + } + public List getLetters(){ ContactDetail contact = (ContactDetail) getBean("ContactDetail"); *************** *** 194,196 **** --- 210,218 ---- this.selectedLetter = selectedLetter; } + public int getDebugPort() { + return debugPort; + } + public void setDebugPort(int debugPort) { + this.debugPort = debugPort; + } } \ No newline at end of file |