Skip to main content

Refresh List model

3 replies [Last post]
ramesh130
Offline
Joined: 2011-01-07

Hi,

I have a tabbed form in which I have a container which has a list. The content of the list are populated from a Webservice. On user action, I call the WS in a thread and show a progress dialog. Once I get the response, I want to update the list model. How do I do it? I created the UI using the UI builder of resource editor. In init model i specify the default value which must change on user action.

Thanks
Ramesh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ramesh130
Offline
Joined: 2011-01-07

I dug through the LWUIT source code and found out a method called reloadForm() which essentially reloads the current for and calls all the initializers so that the for components data can be refreshed.

ramesh130
Offline
Joined: 2011-01-07
ramesh130
Offline
Joined: 2011-01-07

I am facing a problem which is baffling me. The reload form is not working on j2me phones. It works on emulator, BB and android but not on J2ME. It randomly refreshes.

Any help would be appreciated.

Regards
Ramesh