如果使用smartGWT開發通用客戶端。 我們設計我們的應用程序爲: 在屏幕的左側,我們有樹形導航器, ,在右邊我們顯示目標樹元素的形式(onClick樹項目)。 在顯示錶單時,我們使用的是筆記本,也就是說,無論何時點擊一個樹狀項目,我們都會在筆記本中添加一個標籤以顯示其相關表單。 因此多個表單可能同時存在於DOM中。如果以不同的形式包含在不同的smartgwt筆記本中具有相同的widget-name-field
My query is:
what if multiple notebooks (thus different forms) say X and Y have same-field-widget say 'name',
Will this cause ID conflict problem in operation like `save` or `onchange` or simply is this a good practice in smartGWT?
Note: we want to generate same ID of the widget each time we generate particular form, for some testing purpose.
您是否根據自己的要求編寫了一些代碼?你可以在這裏發佈嗎? – RAS
實際上,目前我們沒有將ID分配給自動生成的小部件。但正如我所說的,在進行測試時(使用硒),我認爲分配唯一的ID將解決我們硒問題,所以問這個含糊不清。 – Shanta