[Engine-devel] GWT 2.4.0 and the oVirt Engine

--_000_CC06582EA7BFdustinschoenbrunnetappcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey All, I was looking at doing some work with extending the oVirt Engine GUI but so= me of the functionality that I need (such as dynamic creation of tabs) is o= nly supported in GWT 2.4.0. What sort of steps would have to be taken to u= pdate the Engine to GWT 2.4.0? Also, what would be the easiest way of debu= gging and testing these updates through Eclipse, for example. Thanks in ad= vance! -- Dustin --_000_CC06582EA7BFdustinschoenbrunnetappcom_ Content-Type: text/html; charset="us-ascii" Content-ID: <F9935FC195A9C747A2F421B1612BDAC7@tahoe.netapp.com> Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin= e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami= ly: Calibri, sans-serif; "> <div> <div> <div>Hey All,</div> <div><br> </div> <div>I was looking at doing some work with extending the oVirt Engine GUI b= ut some of the functionality that I need (such as dynamic creation of tabs)= is only supported in GWT 2.4.0. What sort of steps would have to be = taken to update the Engine to GWT 2.4.0? Also, what would be the easiest way of debugging and testing these u= pdates through Eclipse, for example. Thanks in advance!</div> <div><br> </div> <div> <div> <div>-- Dustin</div> <div><br> </div> </div> </div> </div> </div> </body> </html> --_000_CC06582EA7BFdustinschoenbrunnetappcom_--

<font size=3D"4">Hi Dustin,<br><br>here are the basic steps for migrating = oVirt web applications to GWT 2.4 and GWTP 0.7:</font><font size=3D"4"><br>= <br>1. update <em>gwt.version</em> property value to <em>2.4.0</em> in foll= owing POM files:</font><ul><li><font size=3D"4">frontend/webadmin/modules/<= strong>gwt-common</strong>/pom.xml</font></li><li><font size=3D"4">frontend= /webadmin/modules/<strong>gwt-extension</strong>/pom.xml</font></li><li><fo= nt size=3D"4">frontend/webadmin/modules/<span style=3D"font-weight: bold;">= userportal-gwtp</span>/pom.xml</font></li><li><font size=3D"4">frontend/web= admin/modules/<span style=3D"font-weight: bold;">webadmin</span>/pom.xml</f= ont></li></ul><p><font size=3D"4">Note: oVirt root POM still defines </font= <font size=3D"4"><span style=3D"font-style: italic;">gwt.version</span> wi=
<font size=3D"4">frontend/webadmin/modules</font><font size=3D"4">). This = shouldn't be an issue, however, we should consolidate GWT version definitio= n later on.</font></p><p><font size=3D"4"></font></p><p><font size=3D"4"><b= r></font></p><p><font size=3D"4">2. update <span style=3D"font-style: itali= c;">gwtp.version</span> property value </font><font size=3D"4">to <span sty= le=3D"font-style: italic;">0.7</span> in</font><font size=3D"4"> frontend/w= ebadmin/modules/pom.xml</font></p><p><font size=3D"4"><br></font></p><p><fo= nt size=3D"4">3. follow <a href=3D"http://code.google.com/p/gwt-platform/wi= ki/PortingV1#V0.7" target=3D"_blank">GWTP 0.7 migration steps</a>, which wi= ll most likely involve UI code changes</font></p><p><br></p><p><font size= =3D"4">For all steps mentioned above, I'm planning to make a patch, since s= tep (3) requires deeper knowledge of GWTP/WebAdmin code.</font></p><p><br><= /p><p><font size=3D"4"><br></font></p><p><font size=3D"4">In addition, here= are the extra steps to finalize the migration (these items are relevant lo= ng-term, can be skipped for now):</font></p><p><font size=3D"4"><br></font>= </p><p><font size=3D"4">4. remove HTML5 drag'n'drop classes (originally cop= ied from GWT 2.4 trunk) by removing following WebAdmin packages:</font></p>= <ul><li><font size=3D"4">com.google.gwt.dom.client</font></li><li><font siz= e=3D"4">com.google.gwt.event.dom.client</font></li></ul><p><font size=3D"4"= 5. adjust UI code regarding GWT Editor framework, which is now capable of = handling <a href=3D"http://code.google.com/p/google-web-toolkit/issues/deta= il?id=3D6040" target=3D"_blank">primitive boolean is/has getter methods</a>= <br></font></p><br><br><p><font size=3D"4">Vojtech<br></font></p><p><br></p= <p><font size=3D"4"><br></font></p><p><font size=3D"4"><br></font></p><hr =
--=_7087df4d-02a2-4f66-aae0-d145b4354ef0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Dustin, here are the basic steps for migrating oVirt web applications to GWT 2.4 an= d GWTP 0.7: 1. update gwt.version property value to 2.4.0 in following POM files: =E2=80=A2 frontend/webadmin/modules/ gwt-common /pom.xml =E2=80=A2 frontend/webadmin/modules/ gwt-extension /pom.xml =E2=80=A2 frontend/webadmin/modules/ userportal-gwtp /pom.xml =E2=80=A2 frontend/webadmin/modules/ webadmin /pom.xml Note: oVirt root POM still defines gwt.version with value 2.2.0 , which is = effectively inherited by frontend and uicompat modules (located at frontend= /webadmin/modules ). This shouldn't be an issue, however, we should consoli= date GWT version definition later on. 2. update gwtp.version property value to 0.7 in frontend/webadmin/modules/p= om.xml 3. follow GWTP 0.7 migration steps , which will most likely involve UI code= changes For all steps mentioned above, I'm planning to make a patch, since step (3)= requires deeper knowledge of GWTP/WebAdmin code. In addition, here are the extra steps to finalize the migration (these item= s are relevant long-term, can be skipped for now): 4. remove HTML5 drag'n'drop classes (originally copied from GWT 2.4 trunk) = by removing following WebAdmin packages: =E2=80=A2 com.google.gwt.dom.client =E2=80=A2 com.google.gwt.event.dom.client 5. adjust UI code regarding GWT Editor framework, which is now capable of h= andling primitive boolean is/has getter methods Vojtech ----- Original Message ----- From: "Dustin Schoenbrun" <Dustin.Schoenbrun@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, June 19, 2012 3:24:15 PM Subject: [Engine-devel] GWT 2.4.0 and the oVirt Engine Hey All, I was looking at doing some work with extending the oVirt Engine GUI but so= me of the functionality that I need (such as dynamic creation of tabs) is o= nly supported in GWT 2.4.0. What sort of steps would have to be taken to up= date the Engine to GWT 2.4.0? Also, what would be the easiest way of debugg= ing and testing these updates through Eclipse, for example. Thanks in advan= ce! -- Dustin _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel --=_7087df4d-02a2-4f66-aae0-d145b4354ef0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= th value <span style=3D"font-style: italic;">2.2.0</span>, which is effecti= vely inherited by <span style=3D"font-weight: bold;">frontend</span> and <s= pan style=3D"font-weight: bold;">uicompat</span> modules (located at </font= style=3D"height: 4px;" id=3D"zwchr"><div style=3D"color:#000;font-weight:no= rmal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,san= s-serif;font-size:12pt;"><b>From: </b>"Dustin Schoenbrun" <Dustin.Schoen= brun@netapp.com><br><b>To: </b>engine-devel@ovirt.org<br><b>Sent: </b>Tu= esday, June 19, 2012 3:24:15 PM<br><b>Subject: </b>[Engine-devel] GWT 2.4.0= and the oVirt Engine<br><br> <div> <div> <div>Hey All,</div> <div><br> </div> <div>I was looking at doing some work with extending the oVirt Engine GUI b= ut some of the functionality that I need (such as dynamic creation of tabs)= is only supported in GWT 2.4.0. What sort of steps would have to be = taken to update the Engine to GWT 2.4.0? Also, what would be the easiest way of debugging and testing these u= pdates through Eclipse, for example. Thanks in advance!</div> <div><br> </div> <div> <div> <div>-- Dustin</div> <div><br> </div> </div> </div> </div> </div> <br>_______________________________________________<br>Engine-devel mailing= list<br>Engine-devel@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/= engine-devel<br></div><br></div></body></html> --=_7087df4d-02a2-4f66-aae0-d145b4354ef0--

On 06/19/2012 05:40 PM, Vojtech Szocs wrote:
Hi Dustin, ...
3. follow GWTP 0.7 migration steps <http://code.google.com/p/gwt-platform/wiki/PortingV1#V0.7>, which will most likely involve UI code changes
can these be backward compatible with gwt 2.3?
For all steps mentioned above, I'm planning to make a patch, since step (3) requires deeper knowledge of GWTP/WebAdmin code.
In addition, here are the extra steps to finalize the migration (these items are relevant long-term, can be skipped for now):
4. remove HTML5 drag'n'drop classes (originally copied from GWT 2.4 trunk) by removing following WebAdmin packages:
* com.google.gwt.dom.client * com.google.gwt.event.dom.client
5. adjust UI code regarding GWT Editor framework, which is now capable of handling primitive boolean is/has getter methods <http://code.google.com/p/google-web-toolkit/issues/detail?id=6040>
is this 2.3 compatible? is it a must step or optional? 6. test thoroughly webadmin and user portal behave correctly...

Hi Itamar,
3. follow GWTP 0.7 migration steps <http://code.google.com/p/gwt-platform/wiki/PortingV1#V0.7>, which will most likely involve UI code changes
can these be backward compatible with gwt 2.3?
In short, yes. Technically, GWTP 0.7 should work with GWT 2.3 - GWTP migration wiki doesn't mention this explicitly. Practically, GWTP 0.7 is built against GWT 2.4 - see "gwt.version" definition in [http://code.google.com/p/gwt-platform/source/browse/pom.xml?name=gwtp-0.7]
5. adjust UI code regarding GWT Editor framework, which is now capable of handling primitive boolean is/has getter methods <http://code.google.com/p/google-web-toolkit/issues/detail?id=6040>
is this 2.3 compatible? is it a must step or optional?
Step 5 is not compatible with GWT 2.3. It represents a bugfix that is shipped in GWT 2.4. Steps 4 and 5 are optional (cleanup-like), but should be done in long-term.
6. test thoroughly webadmin and user portal behave correctly...
Fully agreed. Vojtech ----- Original Message ----- From: "Itamar Heim" <iheim@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, June 19, 2012 5:48:46 PM Subject: Re: [Engine-devel] GWT 2.4.0 and the oVirt Engine On 06/19/2012 05:40 PM, Vojtech Szocs wrote:
Hi Dustin, ...
3. follow GWTP 0.7 migration steps <http://code.google.com/p/gwt-platform/wiki/PortingV1#V0.7>, which will most likely involve UI code changes
can these be backward compatible with gwt 2.3?
For all steps mentioned above, I'm planning to make a patch, since step (3) requires deeper knowledge of GWTP/WebAdmin code.
In addition, here are the extra steps to finalize the migration (these items are relevant long-term, can be skipped for now):
4. remove HTML5 drag'n'drop classes (originally copied from GWT 2.4 trunk) by removing following WebAdmin packages:
* com.google.gwt.dom.client * com.google.gwt.event.dom.client
5. adjust UI code regarding GWT Editor framework, which is now capable of handling primitive boolean is/has getter methods <http://code.google.com/p/google-web-toolkit/issues/detail?id=6040>
is this 2.3 compatible? is it a must step or optional? 6. test thoroughly webadmin and user portal behave correctly...

Hi everyone, there are patches available for basic UI migration steps described in my previous email: Move to GWT 2.4 : http://gerrit.ovirt.org/5613 Move to GWTP 0.7 : http://gerrit.ovirt.org/5684 Let me know if you have any questions. Vojtech ----- Original Message ----- From: "Vojtech Szocs" <vszocs@redhat.com> To: engine-devel@ovirt.org Sent: Tuesday, June 19, 2012 4:40:28 PM Subject: Re: [Engine-devel] GWT 2.4.0 and the oVirt Engine Hi Dustin, here are the basic steps for migrating oVirt web applications to GWT 2.4 and GWTP 0.7: 1. update gwt.version property value to 2.4.0 in following POM files: • frontend/webadmin/modules/ gwt-common /pom.xml • frontend/webadmin/modules/ gwt-extension /pom.xml • frontend/webadmin/modules/ userportal-gwtp /pom.xml • frontend/webadmin/modules/ webadmin /pom.xml Note: oVirt root POM still defines gwt.version with value 2.2.0 , which is effectively inherited by frontend and uicompat modules (located at frontend/webadmin/modules ). This shouldn't be an issue, however, we should consolidate GWT version definition later on. 2. update gwtp.version property value to 0.7 in frontend/webadmin/modules/pom.xml 3. follow GWTP 0.7 migration steps , which will most likely involve UI code changes For all steps mentioned above, I'm planning to make a patch, since step (3) requires deeper knowledge of GWTP/WebAdmin code. In addition, here are the extra steps to finalize the migration (these items are relevant long-term, can be skipped for now): 4. remove HTML5 drag'n'drop classes (originally copied from GWT 2.4 trunk) by removing following WebAdmin packages: • com.google.gwt.dom.client • com.google.gwt.event.dom.client 5. adjust UI code regarding GWT Editor framework, which is now capable of handling primitive boolean is/has getter methods Vojtech From: "Dustin Schoenbrun" <Dustin.Schoenbrun@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, June 19, 2012 3:24:15 PM Subject: [Engine-devel] GWT 2.4.0 and the oVirt Engine Hey All, I was looking at doing some work with extending the oVirt Engine GUI but some of the functionality that I need (such as dynamic creation of tabs) is only supported in GWT 2.4.0. What sort of steps would have to be taken to update the Engine to GWT 2.4.0? Also, what would be the easiest way of debugging and testing these updates through Eclipse, for example. Thanks in advance! -- Dustin _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

<font size=3D"4">Forgot the debugging question :)<br><br>To apply and test= your changes using GWT development mode (emulated JS runtime environment):= <br><br>1. perform full oVirt Maven build:<br><br></font><div style=3D"marg= in-left: 40px; font-family: courier new,courier,monaco,monospace,sans-serif= ;"><font size=3D"3">$ cd <OVIRT_HOME><br></font><font size=3D"3">$ mv= n clean install -Psetup,dep,gwt-admin,gwt-user -Dmaven.test.skip</font><br>= </div><font size=3D"4"><br>2. upgrade your local PostgreSQL <em>engine</em>= database:<br><br></font><div style=3D"margin-left: 40px;"><font size=3D"4"= <font size=3D"3"><span style=3D"font-family: courier new,courier,monaco,mo= nospace,sans-serif;">$ cd </span></font></font><font size=3D"4"><font size= =3D"3"><span style=3D"font-family: courier new,courier,monaco,monospace,san= s-serif;"><OVIRT_HOME>/backend/manager/dbscripts/</span></font></font= <br style=3D"font-family: courier new,courier,monaco,monospace,sans-serif;= "><font size=3D"4"><font size=3D"3"><span style=3D"font-family: courier new= ,courier,monaco,monospace,sans-serif;">$ ./upgrade.sh -u postgres</span></f= ont></font><br></div><font size=3D"4"><br>3. start your JBoss AS 7.1.1 serv= er instance (running in standalone mode):<br><br></font><div style=3D"margi= n-left: 40px;"><font size=3D"4"><font size=3D"3"><span style=3D"font-family= : courier new,courier,monaco,monospace,sans-serif;">$ cd <JBOSS_HOME>= /bin/</span></font></font><br style=3D"font-family: courier new,courier,mon= aco,monospace,sans-serif;"><font size=3D"4"><font size=3D"3"><span style= =3D"font-family: courier new,courier,monaco,monospace,sans-serif;">$ ./stan= dalone.sh</span></font></font><br></div><font size=3D"4"><br>4. invoke GWT = development mode for WebAdmin module (using GWT Maven plugin):<br><br></fon= t><div style=3D"margin-left: 40px;"><font size=3D"4"><font style=3D"font-fa= mily: courier new,courier,monaco,monospace,sans-serif;" size=3D"3">$ cd </f= ont></font><font style=3D"font-family: courier new,courier,monaco,monospace= ,sans-serif;" size=3D"3"><OVIRT_HOME>/frontend/webadmin/modules/webad= min/</font><br><font style=3D"font-family: courier new,courier,monaco,monos=
--=_feec9252-ae06-4ec7-8546-5006673925ab Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Forgot the debugging question :) To apply and test your changes using GWT development mode (emulated JS runtime environment): 1. perform full oVirt Maven build: $ cd <OVIRT_HOME> $ mvn clean install -Psetup,dep,gwt-admin,gwt-user -Dmaven.test.skip 2. upgrade your local PostgreSQL engine database: $ cd <OVIRT_HOME>/backend/manager/dbscripts/ $ ./upgrade.sh -u postgres 3. start your JBoss AS 7.1.1 server instance (running in standalone mode): $ cd <JBOSS_HOME>/bin/ $ ./standalone.sh 4. invoke GWT development mode for WebAdmin module (using GWT Maven plugin): $ cd <OVIRT_HOME>/frontend/webadmin/modules/webadmin/ $ mvn gwt:debug -Pgwtdev,gwt-admin -Dgwt.noserver=true 5. in your Eclipse IDE, create new Remote Java Application debug configuration (port 8000) and start the debug session 6. your Eclipse IDE will connect to GWT development mode and GWT development window will show up 7. access WebAdmin using browser at http://127.0.0.1:8080/webadmin/webadmin/WebAdmin.html?gwt.codesvr=127.0.0.1:... 8. in case you don't have GWT developer plugin installed in your browser, you will be prompted to install it 9. after any code change, you need to refresh (F5) WebAdmin browser window Vojtech ----- Original Message ----- From: "Dustin Schoenbrun" <Dustin.Schoenbrun@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, June 19, 2012 3:24:15 PM Subject: [Engine-devel] GWT 2.4.0 and the oVirt Engine Hey All, I was looking at doing some work with extending the oVirt Engine GUI but some of the functionality that I need (such as dynamic creation of tabs) is only supported in GWT 2.4.0. What sort of steps would have to be taken to update the Engine to GWT 2.4.0? Also, what would be the easiest way of debugging and testing these updates through Eclipse, for example. Thanks in advance! -- Dustin _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel --=_feec9252-ae06-4ec7-8546-5006673925ab Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= pace,sans-serif;" size=3D"3">$ mvn gwt:debug -Pgwtdev,gwt-admin -Dgwt.noser= ver=3Dtrue</font><br></div><font size=3D"4"><br>5. in your Eclipse IDE, cre= ate new <span style=3D"font-style: italic;">Remote Java Application</span> = debug configuration (port 8000)</font><font size=3D"4"> and start the debug= session<br><br>6. your Eclipse IDE will connect to GWT development mode an= d GWT development window will show up<br><br>7. access WebAdmin using brows= er at <span style=3D"font-style: italic;">http://127.0.0.1:8080/webadmin/we= badmin/WebAdmin.html?gwt.codesvr=3D127.0.0.1:9997</span><br><br>8. in case = you don't have GWT developer plugin installed in your browser, you will be = prompted to install it<br><br>9. after any code change, you need to refresh= (F5) WebAdmin browser window<br><br>Vojtech<br><br><br></font><hr style= =3D"height: 4px;" id=3D"zwchr"><div style=3D"color:#000;font-weight:normal;= font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-ser= if;font-size:12pt;"><b>From: </b>"Dustin Schoenbrun" <Dustin.Schoenbrun@= netapp.com><br><b>To: </b>engine-devel@ovirt.org<br><b>Sent: </b>Tuesday= , June 19, 2012 3:24:15 PM<br><b>Subject: </b>[Engine-devel] GWT 2.4.0 and = the oVirt Engine<br><br> <div> <div> <div>Hey All,</div> <div><br> </div> <div>I was looking at doing some work with extending the oVirt Engine GUI b= ut some of the functionality that I need (such as dynamic creation of tabs)= is only supported in GWT 2.4.0. What sort of steps would have to be = taken to update the Engine to GWT 2.4.0? Also, what would be the easiest way of debugging and testing these u= pdates through Eclipse, for example. Thanks in advance!</div> <div><br> </div> <div> <div> <div>-- Dustin</div> <div><br> </div> </div> </div> </div> </div> <br>_______________________________________________<br>Engine-devel mailing= list<br>Engine-devel@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/= engine-devel<br></div><br></div></body></html> --=_feec9252-ae06-4ec7-8546-5006673925ab--
participants (3)
-
Itamar Heim
-
Schoenbrun, Dustin
-
Vojtech Szocs