PrimeFaces 6 を使用しています。rowEditor と commandButton を dataTable の同じ列に配置したいと考えています。ただし、要素は上下にレンダリングされます。レイアウトは次のようになります。
<p:dataTable ...>
<p:column>
...
</p:column>
...
<p:column>
<p:rowEditor />
<p:commandButton/>
</p:column>
</p:dataTable>
私の質問は、実際にはPrimefaces roweditor in same column with other buttons と同じですが、答えは私にとってはうまくいきません。
私は両方を試しました
.ui-row-editor:after {
clear: none !important;
}
と
.ui-row-editor{
display: inline;
}
しかし、これは機能しません。ブラウザーのインスペクターで html を調べましたが、これらの要素がそのように配置されている理由がわかりません。