Thursday, 24 December 2015

ADF : JSPX and JSFF onPageLoad display Popup

ADF : JSPX and JSFF onPageLoad display Popup


1. JSPX page load


  a. <f:view> has beforePhase , afterPhase property.
  b. <af: form> -> showPopupBehaviour  - onLoad
       http://andrejusb.blogspot.in/2012/03/open-adf-popup-on-page-load.html
  c. before loading this jspx page -> have method call activity in the taskflow (but by that time page would not have loaded so popup might not display)

2. JSFF page load


       a. <af: Popup> -> below that <af: commandButton visible="false" binding="Bean.myButton">
            in getter method of myButton -> Popup.show()
          [Note : button shoud be below the popup component ]

Thursday, 17 December 2015

PUZZLE : Simple puzzle questions : Ans

PUZZLE : Simple puzzle questions : Ans


1. instead of weighing 4 and 4, take 3 and 3.
    In 1st weigh -> if you get any difference, then take all 3 higher one.(Note: if there is no difference, then left out balls will be 2, you can use these 2 for next weight)





2. instead of thinking to cut in different degree angles.
    1st cut   : half
        keep 2 half cakes one on another.
    2nd cut  : quarter
        keep all 4 quarter pieces one on another
    3rd cut   : 8 equal pieces.






3. distribute coins as shown below.


PUZZLE : Simple puzzle questions

PUZZLE : Simple puzzle questions


1. I have 8 balls. among 8 one ball weigh little more. In how many try will you identify the ball which weigh's more.





2. I have a cake, i will give you 3 cut's , you need to make 8 equal pieces in 3 cuts.








3. I have 1000 gold coins and i have 10 sacks, you need to put all 1000 gold coins among 10 sacks.
    If i ask you any number between 1 to 1000, you should be able to give coins in terms of sacks.
    you need think and arrange the coins in each of the sack. (eg: after arranging if i ask you to give 205   coins,    you should be able to give in terms of sacks).




Ans : http://pavanadf.blogspot.in/2015/12/puzzle-simple-puzzle-questions-ans.html