Skip to main content
14 events
when toggle format what by license comment
Dec 29, 2015 at 6:36 comment added Himanshu Let us continue this discussion in chat.
Dec 29, 2015 at 6:36 comment added Rimii when hasuser is false register and accept gets displayed. When hasuser is true none of the buttons gets displayed. There is a javascript function as well where the Ids of both the buttons is being passed.
Dec 29, 2015 at 6:29 comment added Himanshu i am expecting that you see Login and Accept button in that case ?
Dec 29, 2015 at 6:27 comment added Rimii Yes I am passing the userid in the url. I checked that as well. The debug log is populating it correctly
Dec 29, 2015 at 6:26 comment added Himanshu are you passing UserId in url ?
Dec 29, 2015 at 6:16 comment added Rimii This where the value of hasuser is being set to true or false. This is the constructor of the controller class public LandingPageController(){ UserId= ApexPages.currentpage().getParameters().get('UserId'); hasuser=false; System.debug('hasusercheck 1 '+hasuser); if(UserId!=null){ hasuser=true; System.debug('hasusercheck 2 '+hasuser); } System.debug('hasusercheck 3 '+hasuser); }
Dec 29, 2015 at 5:00 comment added Himanshu Can you post your code where you make that true or false
Dec 29, 2015 at 4:44 comment added Rimii No its not a part of ajax refresh. When hasuser is true the register and accept gets diplayed. When hasuser is false , none of the buttons gets displayed . I tried all the ways described above @crop1645
Dec 28, 2015 at 18:24 comment added cropredy @Rimii, I agree with Himanshu, alternate syntax is rendered="{!NOT(hasUser)}" but this shouldn't matter; is the visibility part of an Ajax refresh?
Dec 28, 2015 at 13:45 comment added Himanshu what is the data type of hasUser ?
Dec 28, 2015 at 13:39 comment added Jason I use this syntax: {!hasuser = false}
Dec 28, 2015 at 13:01 comment added Himanshu when you make that false? because on page load it can be either true or false
Dec 28, 2015 at 12:58 comment added Rimii I have tried it too...its not working either @himanshu
Dec 28, 2015 at 12:54 history answered Himanshu CC BY-SA 3.0