0

我正在编写一个visualforce页面代码:

<apex:page controller="AuthSubController" showHeader="false">
<head><title>Hello World</title>
<meta name="google-site-verification" content="XCzApP9fdbR3auxPHd3-X0g7uCNbrXZDQU_jm5GHXLI" />
</head>
     <apex:outputPanel rendered="{!$CurrentPage.parameters.token != null}"> 

The one time use token is :<b>{!$CurrentPage.parameters.token}</b>
            <br />
Record to update is {!$CurrentPage.parameters.id}
<br />
URL to update is {! getHello($CurrentPage.parameters.url)}


     </apex:outputPanel>

</apex:page>

和顶点控制器段是

public class AuthSubController {
    public string getHello(String x) {
        return x.substring(3);
    }
}

getHello在我的 Controller 类中定义。有人可以告诉我为什么会收到此错误吗?

4

1 回答 1

0

改变:

URL to update is {! getHello($CurrentPage.parameters.url)}

到:

URL to update is { !Hello($CurrentPage.parameters.url) }

会没事的。

于 2012-12-26T02:38:02.923 回答