Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Vaadin GWT コンポーネントに ID や名前がないのはなぜですか? document.getElementById('foo') など、外部の JavaScript を使用してそれらを参照したいので、私は尋ねています。
これらの属性を追加する理由を簡単に知っている人はいますか?
ありがとう、ステファニー
setDebugId を使用して、Vaadin コンポーネントの ID を設定できます。
button.setDebugId("myDebugId");
vaadin 7 以降、setDebugId は廃止され、次のようになります。
button.setId("myDebugId");
使用すべきです