[Users] ui plugin problems, cannot read from a file.

hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt. The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt. any plausible explanation? PFA the screenshot of both cases -- -Aditya Mamidwar

------=_Part_4111783_795358380.1396193601290 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit I don't have any ideas. But: You really should use GWT to do this instead of an applet. I can't speak for everyone, and I'm not a maintainer, but I would not accept an applet into the ovirt-engine source code. It adds a very unnecessary dependency for the user (to have Java installed in the browser). Greg ----- Original Message -----
From: "aditya mamidwar" <aditya.mamidwar@gmail.com> To: users@ovirt.org, engine-devel@ovirt.org, awels@redhat.com, "Einav Cohen" <ecohen@redhat.com>, "Greg Sheremeta" <gshereme@redhat.com> Sent: Sunday, March 30, 2014 8:14:41 AM Subject: ui plugin problems, cannot read from a file.
hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt.
The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt.
any plausible explanation? PFA the screenshot of both cases
-- -Aditya Mamidwar
------=_Part_4111783_795358380.1396193601290 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div>I don't have any ideas. But:</di= v><div><br></div><div>You really should use GWT to do this instead of an ap= plet. I can't speak for everyone, and I'm not a maintainer, but I would not= accept an applet into the ovirt-engine source code. It adds a very unneces= sary dependency for the user (to have Java installed in the browser).</div>= <div><br></div><div>Greg</div><div><br></div><div><br></div><hr id=3D"zwchr= "><blockquote style=3D"border-left:2px solid #1010FF;margin-left:5px;paddin= g-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:= none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style= =3D"border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; co= lor: #000; font-weight: normal; font-style: normal; text-decoration: none; = font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"ad= itya mamidwar" <aditya.mamidwar@gmail.com><br><b>To: </b>users@ovirt.= org, engine-devel@ovirt.org, awels@redhat.com, "Einav Cohen" <ecohen@red= hat.com>, "Greg Sheremeta" <gshereme@redhat.com><br><b>Sent: </b>S= unday, March 30, 2014 8:14:41 AM<br><b>Subject: </b>ui plugin problems, can= not read from a file.<br><div><br></div><div dir=3D"ltr"><br clear=3D"all">= <div><br></div><div>hey, am trying to display the contents of a text file i= n a java applet as a ui plugin in ovirt.</div><div><br></div><div>The same = applet performs successfully when run as a standalone, but fails to deliver= when the it is run through ovirt.</div><div><br></div><div>any plausible e= xplanation?</div><div>PFA the screenshot of both cases</div><div><br></div>= -- <br>-Aditya Mamidwar</div></blockquote><div><br></div></div></body></htm= l> ------=_Part_4111783_795358380.1396193601290--

On 03/30/2014 06:33 PM, Greg Sheremeta wrote:
I don't have any ideas. But:
You really should use GWT to do this instead of an applet. I can't speak for everyone, and I'm not a maintainer, but I would not accept an applet into the ovirt-engine source code. It adds a very unnecessary dependency for the user (to have Java installed in the browser).
isn't one of the points of a uiplugin it doesn't have to be GWT based (as its not going to be part of the codebase)?
Greg
------------------------------------------------------------------------
*From: *"aditya mamidwar" <aditya.mamidwar@gmail.com> *To: *users@ovirt.org, engine-devel@ovirt.org, awels@redhat.com, "Einav Cohen" <ecohen@redhat.com>, "Greg Sheremeta" <gshereme@redhat.com> *Sent: *Sunday, March 30, 2014 8:14:41 AM *Subject: *ui plugin problems, cannot read from a file.
hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt.
The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt.
any plausible explanation? PFA the screenshot of both cases
-- -Aditya Mamidwar
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Greg Sheremeta" <gshereme@redhat.com>, "aditya mamidwar" <aditya.mamidwar@gmail.com> Cc: engine-devel@ovirt.org, users@ovirt.org Sent: Monday, March 31, 2014 12:58:33 AM Subject: Re: [Engine-devel] ui plugin problems, cannot read from a file.
On 03/30/2014 06:33 PM, Greg Sheremeta wrote:
I don't have any ideas. But:
You really should use GWT to do this instead of an applet. I can't speak for everyone, and I'm not a maintainer, but I would not accept an applet into the ovirt-engine source code. It adds a very unnecessary dependency for the user (to have Java installed in the browser).
isn't one of the points of a uiplugin it doesn't have to be GWT based (as its not going to be part of the codebase)?
Ah, yes, of course :) So please disregard my comment. /me and his bruised ego steps away from engine-devel Greg
Greg
------------------------------------------------------------------------
*From: *"aditya mamidwar" <aditya.mamidwar@gmail.com> *To: *users@ovirt.org, engine-devel@ovirt.org, awels@redhat.com, "Einav Cohen" <ecohen@redhat.com>, "Greg Sheremeta" <gshereme@redhat.com> *Sent: *Sunday, March 30, 2014 8:14:41 AM *Subject: *ui plugin problems, cannot read from a file.
hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt.
The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt.
any plausible explanation? PFA the screenshot of both cases
-- -Aditya Mamidwar
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

Hi guys,
hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt.
The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt.
UI plugins are written in JavaScript and HTML. UI plugin is technically standalone web application sandboxed within invisible <iframe> element under WebAdmin's DOM. UI plugin uses API to extend existing WebAdmin functionality through custom UI components (main tab, dialog, etc). Java applet technology cannot be used to implement UI plugin because plugin vs. WebAdmin integration happens on JavaScript/HTML level. I suggest to check out samples-uiplugins git repo for examples: http://www.ovirt.org/Features/UIPlugins#Sample_UI_plugins If you really want to write UI plugin in Java language, you can use GWT (as suggested by Greg) which yields JavaScript/HTML output. In general, any technology/language that ultimately yields JavaScript code can be used to implement UI plugin.
isn't one of the points of a uiplugin it doesn't have to be GWT based (as its not going to be part of the codebase)?
In fact, UI plugins can be written in GWT, if desired. However, as you mentioned, plugins are decoupled from WebAdmin code base through the plugin infra/subsystem. Regards, Vojtech ----- Original Message -----
From: "Greg Sheremeta" <gshereme@redhat.com> To: "Itamar Heim" <iheim@redhat.com> Cc: engine-devel@ovirt.org, "aditya mamidwar" <aditya.mamidwar@gmail.com>, users@ovirt.org Sent: Monday, March 31, 2014 2:44:40 PM Subject: Re: [Engine-devel] ui plugin problems, cannot read from a file.
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Greg Sheremeta" <gshereme@redhat.com>, "aditya mamidwar" <aditya.mamidwar@gmail.com> Cc: engine-devel@ovirt.org, users@ovirt.org Sent: Monday, March 31, 2014 12:58:33 AM Subject: Re: [Engine-devel] ui plugin problems, cannot read from a file.
On 03/30/2014 06:33 PM, Greg Sheremeta wrote:
I don't have any ideas. But:
You really should use GWT to do this instead of an applet. I can't speak for everyone, and I'm not a maintainer, but I would not accept an applet into the ovirt-engine source code. It adds a very unnecessary dependency for the user (to have Java installed in the browser).
isn't one of the points of a uiplugin it doesn't have to be GWT based (as its not going to be part of the codebase)?
Ah, yes, of course :) So please disregard my comment. /me and his bruised ego steps away from engine-devel
Greg
Greg
------------------------------------------------------------------------
*From: *"aditya mamidwar" <aditya.mamidwar@gmail.com> *To: *users@ovirt.org, engine-devel@ovirt.org, awels@redhat.com, "Einav Cohen" <ecohen@redhat.com>, "Greg Sheremeta" <gshereme@redhat.com> *Sent: *Sunday, March 30, 2014 8:14:41 AM *Subject: *ui plugin problems, cannot read from a file.
hey, am trying to display the contents of a text file in a java applet as a ui plugin in ovirt.
The same applet performs successfully when run as a standalone, but fails to deliver when the it is run through ovirt.
any plausible explanation? PFA the screenshot of both cases
-- -Aditya Mamidwar
_______________________________________________ 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
participants (4)
-
aditya mamidwar
-
Greg Sheremeta
-
Itamar Heim
-
Vojtech Szocs