From: <ma...@rh...> - 2009-01-23 20:36:55
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><style type="text/css"><!-- #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } --></style> <title>[rhq-project.org rhq] [2735] stubbing out the file upload for agent plugins to the server.</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>2735</dd> <dt>Author</dt> <dd>mazz</dd> <dt>Date</dt> <dd>2009-01-23 14:36:44 -0600 (Fri, 23 Jan 2009)</dd> </dl> <h3>Log Message</h3> <pre>stubbing out the file upload for agent plugins to the server. the UI uses the RF component, but the server-side doesn't do anything yet.</pre> <h3>Modified Paths</h3> <ul> <li><a href="#rhqtrunkmodulesenterpriseguiportalwarsrcmainjavaorgrhqenterpriseguiadminpluginInstalledPluginsUIBeanjava">rhq/trunk/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/plugin/InstalledPluginsUIBean.java</a></li> <li><a href="#rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqadminpluginpluginlistxhtml">rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/admin/plugin/plugin-list.xhtml</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="rhqtrunkmodulesenterpriseguiportalwarsrcmainjavaorgrhqenterpriseguiadminpluginInstalledPluginsUIBeanjava"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/plugin/InstalledPluginsUIBean.java (2734 => 2735)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/plugin/InstalledPluginsUIBean.java 2009-01-23 20:02:04 UTC (rev 2734) +++ rhq/trunk/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/plugin/InstalledPluginsUIBean.java 2009-01-23 20:36:44 UTC (rev 2735) </span><span class="lines">@@ -24,6 +24,7 @@ </span><span class="cx"> import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; </span><span class="add">+import org.richfaces.event.UploadEvent; </span><span class="cx"> import org.jboss.deployment.scanner.URLDeploymentScannerMBean; </span><span class="lines">@@ -58,7 +59,9 @@ </span><span class="cx"> } } </span><span class="rem">- public void uploadPlugin() { </span><span class="add">+ public void fileUploadListener(UploadEvent event) { + System.out.println(event); + return; </span><span class="cx"> } } \ No newline at end of file </span></pre></div> <a id="rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqadminpluginpluginlistxhtml"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/admin/plugin/plugin-list.xhtml (2734 => 2735)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/admin/plugin/plugin-list.xhtml 2009-01-23 20:02:04 UTC (rev 2734) +++ rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/admin/plugin/plugin-list.xhtml 2009-01-23 20:36:44 UTC (rev 2735) </span><span class="lines">@@ -6,6 +6,7 @@ </span><span class="cx"> xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core" xmlns:onc="http://jboss.org/on/component" </span><span class="add">+ xmlns:a4j="http://richfaces.org/a4j" </span><span class="cx"> xmlns:rich="http://richfaces.ajax4jsf.org/rich"> <ui:composition template="/rhq/layout/main.xhtml"> </span><span class="lines">@@ -125,29 +126,22 @@ </span><span class="cx"> </rich:panel> </h:form> </span><span class="rem">-<rich:panel rendered="false"> </span><span class="add">+<rich:panel> </span><span class="cx"> <f:facet name="header"> <h:outputText value="Upload Plugin"/> </f:facet> <h:panelGrid columns="1" width="100%"> </span><span class="rem">- - <h:form id="uploadForm" enctype="multipart/form-data"> - - - <table> - <tr> - <td><b>Plugin File:</b></td> - <td><onc:upload id="uploadFile"/></td> - </tr> - </table> - - <h:panelGrid columns="1" styleClass="buttons-table" columnClasses="button-cell"> - <h:commandButton style="margin-top: 10px;" value="UPLOAD" - action="#{InstalledPluginsUIBean.uploadPlugin}" styleClass="buttonmed"/> - </h:panelGrid> - </h:form> - </span><span class="add">+ <rich:fileUpload + id="upload" + fileUploadListener="#{InstalledPluginsUIBean.fileUploadListener}" + maxFilesQuantity="3" + acceptedTypes="jar" + immediateUpload="false" + autoclear="false" + allowFlash="auto"> + <a4j:support event="onuploadcomplete" reRender="info" /> + </rich:fileUpload> </span><span class="cx"> </h:panelGrid> </rich:panel> </span> </pre> </div> </div> </body> </html> |