voyent
3.3.0 to 4.3.0 migration - initial application load problem  XML
Forum Index -> General Help
Author Message
cpettifer

Joined: 10/Oct/2018 09:48:59
Messages: 4
Offline


I'm migrating an application from icefaces 3.3.0 which has "ice compat" components in to icefaces 4.3.0 and "ace" components (or other jsf components as per the migration guide). Mostly things seem fine, but when the application first loads in a clean browser session (e.g. incognito window), the various components do not function until the third time of asking. e.g. I have a linkButton to edit an item in a data table of things, I have to hit Edit 3 times before I get taken to the edit page. This is not limited to linkButtons, but every component on the page exhibits the same behaviour.

Alternatively, if I hit "refresh" before using a component for the first time, they then work fine.

Once I've got past this initial load issue every component functions as expected.

Am I missing something crucial around some startup / initialisation thing I'm not setting?
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


It sounds like your page is not loading all the resources correctly so that the components may not be fully initialized---check your browser console to see if there are any javascript errors...that would be my first guess. Check to also see that the page is actually ready if you are using custom javascript.
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


It sounds like your page may not be loading all the resources correctly so that the components may not be fully initialized---check your browser console to see if there are any javascript errors...that would be my first guess. Check to also see that the page is actually ready if you are using custom javascript.
cpettifer

Joined: 10/Oct/2018 09:48:59
Messages: 4
Offline


Hi.

There are no errors in the JavaScript console. When I perform any of the actions there is a request submitted back to the server.

I've compared the three requests, all from clicking the same control. They are all identical except for one extra parameter on the first click, which also sends javax.faces.ClientWindow. But all subsequent clicks of the control send the exact same request.

Could there be something missing from the page that can't process the response properly?

Or something incorrect in the response?
cpettifer

Joined: 10/Oct/2018 09:48:59
Messages: 4
Offline


I've also now compared the page html between the requests. The only items changing on the page are the ice.view and javax.faces.ViewState values.
cpettifer

Joined: 10/Oct/2018 09:48:59
Messages: 4
Offline


After lots of faffing we've stumbled upon a solution. We've downgraded to 4.2.0 and it works fine.

We're not sure why this would be the case, but something is not right with 4.3.0.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team