You need to change your code in following way.
Visualforce
<apex:page standardController="QuickCase__c" extensions="qs" action="{!init}">
<apex:pageBlock title="Nominate user">
<apex:pageblockTable value="{!Quick}" var="qk">
<apex:column value="{!qk.Name}"/>
</apex:pageblockTable>
</apex:pageBlock>
</apex:page>
Controller
public with sharing class qs
{
public List<Quickcase__c> Quick {get;set;}
public qs(ApexPages.StandardController controller) {
}
public void init()
{
Quick = [select id ,Name from Quickcase__c limit 5];
}
}
Note: following changes have been made.
Rather than using second no argument constructor, changed it to init()
method which is getting called from apex:page
action.
Instead of using List<Quickcase__c> Quick = new list<Quickcase__c>();
, following public getter-setter used: public List<Quickcase__c> Quick {get;set;}
You have incorrectly used <apex:pageblockTable value="{!QuickCase__c}"
, value should expect List
of records.
I should suggest you go through trailheads to learn Visualforce.