Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Understanding LCA readData method
Understanding LCA readData method [message #76527] Tue, 04 March 2008 12:06 Go to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
I have a question regarding readData method in the LCA class.

My widget extends "qx.ui.basic.Label" so I belive it should inherit all
properties from Label. Thing is that when I do:

String text = WidgetLCAUtil.readPropertyValue(widget, "text");

The text variable is always null. Am I doing something wrong here? How can I
get in Java the JS text property on-demand (like when doing a getText())?

Thanks

Tiago
RE: Understanding LCA readData method [message #76580 is a reply to message #76527] Wed, 05 March 2008 08:43 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi Tiago,

readPropertyValue reads the value of an given attribute from the request
sent by the client. If there is no value for the given attribute it
returns null. As the label is from the perspective of the client is a
read-only widget, it doesn't sent any values back to the server - this
explains why you always get null.

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Tiago [mailto:tiago.bugzilla@gmail.com]
Bereitgestellt: Dienstag, 4. März 2008 13:07
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Understanding LCA readData method
Betreff: Understanding LCA readData method


I have a question regarding readData method in the LCA class.

My widget extends "qx.ui.basic.Label" so I belive it should inherit all
properties from Label. Thing is that when I do:

String text = WidgetLCAUtil.readPropertyValue(widget, "text");

The text variable is always null. Am I doing something wrong here? How
can I get in Java the JS text property on-demand (like when doing a
getText())?

Thanks

Tiago
Previous Topic:Error registering widget theme.
Next Topic:java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.sleep()Z
Goto Forum:
  


Current Time: Thu Mar 28 12:18:10 GMT 2024

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

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

Back to the top