Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom widget, readData in LCA
Custom widget, readData in LCA [message #124750] Mon, 16 March 2009 13:19 Go to next message
Eclipse UserFriend
Originally posted by: freddan85.gmail.com

Hi!

I have some trouble to read data from my custom widget. In short, the
custom widget contains of a list which I populate with a number of
strings through the adaptors renderChanges function. The user then
modifies this list (i.e. add items, remove items) from this list. So far
it works well. However, when I want to read the items in the list via
the readData function in the LCA I get some problems. I want the
readData function to get called after every modification by the user or
I want to be able to manually control when the functions in the LCA gets
called from the java code. As it is now, readData doesnt get called
until the user interacts with another widget in the GUI. Can I
"manually" call a function in the LCA class from the java code, or how
can I solve this?
Re: Custom widget, readData in LCA [message #124898 is a reply to message #124750] Mon, 16 March 2009 17:11 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Fredrik,
actually to pass a data from client (javascript) to the server you have
to put the parameters (data) in the request and call request send()
method. The LCA#readData is called every time when there is a request
from the client. It seems that you only put the parameters in the
request without calling the send() method.
Best,
Ivan

Fredrik Häggbom wrote:
> Hi!
>
> I have some trouble to read data from my custom widget. In short, the
> custom widget contains of a list which I populate with a number of
> strings through the adaptors renderChanges function. The user then
> modifies this list (i.e. add items, remove items) from this list. So
> far it works well. However, when I want to read the items in the list
> via the readData function in the LCA I get some problems. I want the
> readData function to get called after every modification by the user
> or I want to be able to manually control when the functions in the LCA
> gets called from the java code. As it is now, readData doesnt get
> called until the user interacts with another widget in the GUI. Can I
> "manually" call a function in the LCA class from the java code, or how
> can I solve this?
Previous Topic:BrandingManager internal?
Next Topic:Update action bar
Goto Forum:
  


Current Time: Thu Mar 28 09:53:15 GMT 2024

Powered by FUDForum. Page generated in 0.04203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top