I have a button to display a popuppanel, after clicking on it for the first time the popup is displayed without loading data, after the second click it works fine.
What is the difference between the first click and the second click???
Here is the code of my button:
<r:commandButton id="editaccountsbutton" value="#{msg['Trading_Accounts']}" action="#{user.selectLead}" render="editaccountform" oncomplete="#{r:component('editaccountspanel')}.show()">
<f:param name="id2load" value="#{lead.id}" />
</r:commandButton>
The data is not getting rendered immediately after the pop up is opened. Use an ajax function to open the popup.