VF & Controllers & Extensions Flashcards
1
Q
What is wrong with the code below. Why will it throw an error?
public class ShowSimilarCases {
public case getCurrentCase(){ public string cid = apexpages.currentPage().getparameters().get('cid'); return [SELECT id, priority FROM Case WHERE Id =: cid]; } }
A
The local string variable access modifier can not be public
2
Q
What is the one tag that is required in an VF page?
A