function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SIVASASNKARSIVASASNKAR 

Unable to find controller class in Visualforce page

Hi, Good morning every one.

 

  I have a problem while creating a variable in visualforce page I got Error like Unable to find controller class in visual force page. Please help me. 

kiranmutturukiranmutturu

could you plz post the class and page code here?

SIVASASNKARSIVASASNKAR

Thanks kiran for reply it has more than component 

 visualforce page

 

<apex:page controller="whome1class" showHeader="false">


<style>
.labelunderline1
{
text-decoration:underline;
cursor: pointer;

}

.notlabelunderline1
{
text-decoration:none;

}
</style>

<script>
function onover1()
{

document.getElementById('page:form:pb:add').className='labelunderline1';

}

function onout1()
{
document.getElementById('page:form:pb:add').className='';

}

function onover2()
{

document.getElementById('page:form:pb:sys').className='labelunderline1';

}

function onout2()
{
document.getElementById('page:form:pb:sys').className='';

}
function onover3()
{

document.getElementById('page:form:pb:mo').className='labelunderline1';

}

function onout3()
{
document.getElementById('page:form:pb:mo').className='';

}
function onover4()
{

document.getElementById('page:form:pb:fo').className='labelunderline1';

}

function onout4()
{
document.getElementById('page:form:pb:fo').className='';

}

</script>

 


<style type="text/css">

#global-nav {
width: 200px;
float: center;
background: #e8eef4;
}

#global-subnav {
width: 121px;
background: #09C;
}

#global-nav a {
color: #034af3;
cursor: pointer;
display: block;
height: 40px;
line-height: 40px;
text-indent: 10px;
text-decoration:none;
font-weight: bold;
width: 100%;
}

#global-nav ul{
background: yellow;
padding: 0;
margin: 0;
}

#global-subnav ul{
background: orangered;
position: relative;
top: -10px;
left: 40px;
}

#global-nav li{
list-style: none;
border-bottom: #5C87B2 solid;
border-width: 3px;
}

#global-nav ul ul li{
display:none;
}

#global-nav li:hover {
background: #fff;
}

#global-nav li:hover ul li{
display:block;
}

</style>


<apex:form id="form">
<div style="background-color:#125BA5;">
<table width="100%">
<tr>
<div align="right">
<apex:stylesheet value="{!$Resource.Styletext}"/>
<apex:outputlabel styleclass="labelcolor1" > Welcome</apex:outputlabel>
<apex:outputlabel styleclass="labelcolor1" > KOTAGUNTA SIVASANKAR :</apex:outputlabel>
<apex:outputlabel id="U" onmouseover="under1()" onmouseout="notunder1()" styleclass="labelcolor1" >User Manual| </apex:outputlabel>&nbsp;
<apex:outputlabel id="C" onmouseover="under2()" onmouseout="notunder2()" styleclass="labelcolor1"> Company profile -</apex:outputlabel>
<apex:outputlabel id="M" onmouseover="under3()" onmouseout="notunder3()" styleclass="labelcolor1"> My Profile | </apex:outputlabel>
<apex:outputlabel id="L" onmouseover="under4()" onmouseout="notunder4()" onclick="openpopup()" style="font-family:Times New Roman;margin-right:250px; font-size:15px; font-weight:bold; color:#FFFFFF" > Log out </apex:outputlabel>
</div>

<td > <apex:outputLabel styleclass="margin" style="font-family:Harrington; font-size:50px; font-weight:bold; color:#FFFFFF" > AlrK </apex:outputLabel> </td>
</tr>

</table>
</div>
<br/>

<table align="center" border="1" height="100%" style="width: 80%; background-color:#ECEEEC; color: inherit; border-bottom: px solid #AAA; ">
<tr >
<td colspan="2" width="100%"> <apex:image value="{!$Resource.iconimg}" style="height:20px;width:20px;margin-right:8px;"/> <apex:outputlabel style=" font-family:Times New Roman; font-size:15px; font-weight:bold; color:#0000FF">
<apex:outputlabel rendered="{!personalhome}"> Personal Home </apex:outputlabel>
<apex:outputlabel rendered="{!Details}"> Asset Details</apex:outputlabel>
<apex:outputlabel rendered="{!Departments}"> Departments </apex:outputlabel>
<apex:outputlabel rendered="{!Interviews}"> Interviews </apex:outputlabel>
<apex:outputlabel rendered="{!Po}"> Posts </apex:outputlabel>
<apex:outputlabel rendered="{!LeaveTypes}"> Leave Types </apex:outputlabel>
<apex:outputlabel rendered="{!Services}"> Asset Services </apex:outputlabel>
<apex:outputlabel rendered="{!Stations}"> Stations </apex:outputlabel>
<apex:outputlabel rendered="{!Contracttypes}"> Contract Types </apex:outputlabel>
<apex:outputlabel rendered="{!Qualificationtypes}"> Qualification Types </apex:outputlabel>
<apex:outputlabel rendered="{!History}"> Asset History </apex:outputlabel>


<apex:image value="{!$Resource.iconimg}" style="height:20px;width:20px; margin-left:910px;"/></apex:outputlabel></td>
</tr>

<tr height="100px">

<td width="20%" valign="top" style="background-color:#1E1E1E ">
<br/>


<div id="global-nav">
<ul>
<li> <apex:commandLink style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Human Resources"/>
<div id="global-subnav">
<ul>
<li>
<apex:commandLink immediate="true" action="{!setup}" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="SETUP"/> </li>

<li>
<apex:commandLink action="{!employee}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Employee"/></li>

<li><apex:actionFunction name="leave" action="{!leave}"/>
<apex:commandLink action="{!leave}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Leave"/></li>

<li><apex:actionFunction name="casual" action="{!casuals}"/>
<apex:commandLink action="{!casuals}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Casuals"/></li>

<li><apex:actionFunction name="interview" action="{!interview}"/>
<apex:commandLink action="{!interview}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Interviews"/></li>

<li><apex:actionFunction name="report" action="{!report}"/>
<apex:commandLink action="{!report}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Reports"/></li>
</ul>
</div>
</li>
<li><a href="#Two"><apex:outputlabel style="margin-left:0px; font-size:15px;color:#2E8BE8; cursor:pointer; font-weight:bold" > User Manager</apex:outputlabel></a>
<div id="global-subnav">
<ul>
<li>
<apex:actionFunction name="profile" action="{!profile}"/>
<apex:commandLink action="{!profile}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Profile"/>
</li>

<li>
<apex:actionFunction name="user" action="{!user}"/>
<apex:commandLink action="{!user}" immediate="true" onclick="location.reload()" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="User"/>
</li>
</ul>
</div>
</li>

<li>
<a href="#Two"><apex:outputlabel style="margin-left:0px; cursor:pointer; font-size:15px;color:#2E8BE8;font-weight:bold ">Audit</apex:outputlabel></a>
<div id="global-subnav">
<ul>
<li>
<apex:actionFunction name="audit" action="{!audit}"/>
<apex:commandLink action="{!audit}" immediate="true" style="margin-right:20px; font-size:15px; color:#2E8BE8; cursor:pointer; font-weight:bold" value="Audit"/>
</li>

</ul>
</div>
</li>

</ul>
</div>

</td>

<td width="80%" valign="top"><apex:pageMessages ></apex:pageMessages>
<c:FrontPage rendered="{!cfront}"/>
<c:Setup rendered="{!csetup}" />
<c:Employee rendered="{!cemployee}"/>
<c:Leave rendered="{!cleave}"/>
<c:Casual rendered="{!ccasual}"/>
<c:winterview rendered="{!cinterview}"/>
<c:wsearchreports rendered="{!creport}"/>
<c:wsearchprofile rendered="{!cprofile}"/>
<c:wsearchuser rendered="{!cuser}"/>
<c:wsearchaudit rendered="{!caudit}"/>


<apex:pageBlock id="pb" rendered="{!sprofile}" >


<div align="right">
<apex:actionFunction name="add" action="{!Addprofile}"/>
<apex:outputlabel id="add" onmouseover="onover1()" onmouseout="onout1()" onclick="adddepartment()" style="color:blue; background-color:white; cursor:pointer; margin-right:100px; font-size:15px; font-weight:bold;"> Add Profile </apex:outputlabel>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<br/><br/>
<div align="center">
<apex:outputLabel style="background-color:white; font-size:15px; font-weight:bold; " > Profiles </apex:outputLabel> <br/>

<apex:actionFunction name="sysadmin" action="{!Sysadminclick}"/>
<apex:outputLabel id="sys" onclick="sysadmin()" onmouseover="onover2()" onmouseout="onout2()" style="color:blue; cursor:pointer; font-size:12px;">Sys Admin </apex:outputlabel>&nbsp;&nbsp;[

<apex:actionFunction name="module" action="{!moduleclick}"/>
<apex:outputLabel onclick="module()" id="mo" onmouseover="onover3()" onmouseout="onout3()" style="color:blue; cursor:pointer; font-size:12px;">Modules</apex:outputlabel>]&nbsp;&nbsp;[

<apex:actionFunction name="formclick" action="{!formclick}"/>
<apex:outputLabel id="fo" onclick="formclick()" onmouseover="onover4()" onmouseout="onout4()" style="color:blue; cursor:pointer; font-size:12px;">Forms</apex:outputlabel>]

</div>


</apex:pageblock>

<apex:pageBlock rendered="{!fprofile}">

<table width="100%">
<tr>
<td width="40%" align="right">Module</td>
<td aligin="left" style="background-color:white;">
<apex:actionFunction name="change" action="{!Changefunction}"/>
<apex:selectList size="1" Value="{!SelectedModule}" onchange="change()">
<apex:selectOptions value="{!Profile}"/>
</apex:selectList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <apex:commandButton value="Save" action="{!Savemodulepermissions}"/>
</td>
</tr>

</table>

<apex:pageBlock rendered="{!Dprofile}">

<apex:pageBlockTable value="{!dispprofile}" var="P1">
<apex:column headerValue="Form" value="{!P1.Form__c}"/>
<apex:column headerValue="View" >
<apex:inputCheckbox value="{!P1.View__c}" />
</apex:column>

<apex:column headerValue="Save" >
<apex:inputCheckbox value="{!P1.Save__c}" />
</apex:column>

<apex:column headerValue="Delete" >
<apex:inputCheckbox value="{!P1.Delete__c}" />
</apex:column>

<apex:column headerValue="Review" >
<apex:inputCheckbox value="{!P1.Review__c}" />
</apex:column>

<apex:column headerValue="Approve" >
<apex:inputCheckbox value="{!P1.Approve__c}" />
</apex:column>


</apex:pageBlockTable>

</apex:pageBlock>

<!-- -------------------- MODULE PAGEBLOCK -------- -->

<apex:pageBlock rendered="{!MDisplay}">
<table>
<tr>
<td align="right">Modules </td>
<td align="left" style="margin-left:10px;"> <apex:commandButton value="Save" action="{!ChangeModules}" /> </td>
</tr>

</table>

<apex:pageBlock rendered="{!MRights}">
<apex:pageBlockTable value="{!lstWrap}" var="MR">

<apex:column headerValue="Modules" value="{!MR.Modules}"/>
<apex:column headerValue="Permissions">
<apex:inputCheckbox value="{!MR.Check}"/>
</apex:column>
</apex:pageBlockTable>

</apex:pageBlock>

</apex:pageBlock>


</apex:pageBlock>


</td>
</tr>

<tr >
<td colspan="2" width="100%"> <apex:image value="{!$Resource.iconimg}" style="height:20px;width:20px;margin-right:8px;"/>

<apex:outputText style=" font-family:Times New Roman; font-size:15px; font-weight:bold; color:#0000FF" value=" {0,date,dd.MM.yyyy 'at' HH:mm:ss z}">
<apex:param value="{!NOW()}" />
</apex:outputText>


<apex:image value="{!$Resource.iconimg}" style="height:20px;width:20px; margin-left:550px;"/>
</td>
</tr>
</table>
</apex:form>
</apex:page>