You need to sign in to do that
Don't have an account?
java.lang.IllegalArgumentException: Illegal view ID 166.42.2.29. The ID must begin with /
Can any one help me on this error?.. I am trying to get the Ip address of system through a custom link.. Here is my code. ANy help will be appreciated. Thanks
Controller:
public
withsharingclassIpaddress {
public string ipaddress{get;set;}
publicIpaddress(ApexPages.StandardController controller) {
//String Ipaddress= ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');
}
publicstring ipvalue(){
Ipaddress= ApexPages.currentPage().getHeaders().get(
'X-Salesforce-SIP');
//ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,'your address '+Ipaddress));returnIpaddress;
}
}
Page:
<
apex:pagestandardcontroller="Account"extensions="Ipaddress"><!-- Begin Default Content REMOVE THIS -->
<
apex:form><apex:pageblockid="test"><apex:commandLink action="{!ipvalue}"rerender="test"> ipaddress </apex:commandLink></apex:pageblock></apex:form></apex:page>
Well, your commandLink action function needs to be of type ApexPages.Action rather than String. Try something like:
And then the VF page:
Hope this helps.