Custom widget, readData in LCA [message #124750] |
Mon, 16 March 2009 13:19 |
Eclipse User |
|
|
|
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 |
Ivan Furnadjiev 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?
|
|
|
Powered by
FUDForum. Page generated in 0.03150 seconds