2016-11-08 15 views

答えて

5

​​

YourPage.javaで:

WebComponent base = new WebComponent("base"); 
add(base); 
base.add(new AttributeModifier("href", "<the url>")); 
+0

方法については、使用すると、 'WebMarkupContainer 「それは間違っているか違いがあるのか​​? – soorapadman

+0

'WebMarkupContainer'は、コンポーネントに子があることを前提としています。 'WebComponent'は、' '、' '、' 'などのリーフHTML要素用に設計されています。' WebMarkupContainer'を使うことは何の害もありません! –

関連する問題