2011-09-22 52 views
0

我有一個控制器,它有一個填充列表和地圖的方法。在Visualforce頁面顯示列表或地圖

Public class A 
{ public Map<string,Book__c> map1 {get;set;} 
    public List<String> Lst {get;set;} 
public A() 
{ 
    ..... do something... 
} 
public refresh() 
{ 
    Lst= new List<String>(); 
    map1=new Map<string,Book__c>; 
    // Populating the map and List in this method 
    } 
} 

在我的VF 我呼籲一個inputfield的變化刷新頁面的方法,該方法被調用以及地圖和列表得到填充。但他們不是在VF頁

VF代碼

<apex:pageblocksection id="tableApp" > 

<table id="apppp"> 
<tr> 
<th>Name</th> 
</tr> 
<apex:repeat var="d" value="{!Lst}"> 
<tr> 
    <td><apex:outputText value="{!d}"/></td> 


</tr> 

</apex:repeat> 
</table> 
</apex:pageblocksection> 

顯示這有什麼錯在此代碼?我正在重新渲染pageblocksection tableApp對輸入字段的更改

+0

不知道爲什麼這個問題是downvoted ..我做了相當多的研究之前,我posted..it將是巨大的,如果有人讓知道爲什麼它downvoted – Prady

回答

1

請問this link聽起來像是哪種類型的問題?它解決了嗎?

保羅

+0

可惜沒,這個問題是重新呈現不工作,保存按鈕點擊本身不起作用。我認爲它更多的rerender的語法是問題..一旦rerender標籤被刪除一切工作正常..記錄得到保存,但隨着rerender什麼都沒有發生 – Prady

相關問題