Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet / portlet - Communication

 
Daniel Breitner
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody !

I am looking for a way to send information form an applet to a portlet. Is this - somehow - possible ?

thanks in advance

daniel
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, exactly, do you mean by "send information"? What is the target of this sending - an HTTP-addressable portal page? The portal page in which the applet is embedded? Something else? What is being sent?
 
sridhar mam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Did you get the solution for it?

I want to do the same...

I have an applet form embedded in portlet, and when I submit the form, it should pass through portlet.

Thanks in advance.
-Sri
 
narendra dwfs
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the values into the form when you submit the form
by just using java script.
an applet can call the javascript methods and also
send data to javascript methods as a parameters.
in javascript you can set the value to the textboxes.


 
Daniel Breitner
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible.

Portlet -> Applet: Use Applet parameters.

Applet -> Portlet: Use Netscape javascript libraries to call jsvascript functions that take the parameters
 
Daniel Breitner
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how you do applet - portlet communication :

http://liferay-blogging.blogspot.com/2011/01/applet-portlet-communication.html

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic