Page 1 of 2

Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 1:06 pm
by Dupdroid

Why does my components design-time captions/text show briefly before the the rest service data binding kicks in when a page is loaded? Is there a way to prevent this?


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 1:49 pm
by Illya Stepanov

Hi - can you show where exactly this happens? Some code example or screenshot would help.


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 2:26 pm
by Dupdroid

It is a pretty straight forward page with a list list component and labels in a grid component. The Labels default Text is shown in the attached image as in design-time. This page uses a rest service to list the data.

When navigating to the page in runtime it shows the default text in all the labels for a split second and then changes to the values in the rest service.

Image


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 3:52 pm
by Illya Stepanov

Try to tick "Render all pages in one HTML file":
Image


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 4:10 pm
by Dupdroid

I have tried this. It makes no difference, unfortunately.

This problem is also present in the appery.io android testing app.


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 4:57 pm
by Illya Stepanov

So you are getting this in desktop browser and on a Android device respectively?


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 5:32 pm
by Dupdroid

Yes, that's correct.


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 7:33 pm
by Illya Stepanov

Can you give us a public link to your app, so we can test this?


Design-time captions/text showing before rest service data binding invoked.

Posted: Sat Jun 08, 2013 9:21 pm
by maxkatz

It's not really a problem -- this is how the browser works. The page is loaded into the DOM with default labels. Then a service is invoked and updates the labels. There is a short delay between that and what's why you see the previous labels. You could try clearing the previous data.


Design-time captions/text showing before rest service data binding invoked.

Posted: Sun Jun 09, 2013 8:22 pm
by Dupdroid

So everyone apps do this when using a rest service? Is there an example perhaps of the suggested workaround "clearing the previous data"?