0

ボタンを画像として表示したいので、次のように書きました。

<p:commandButton styleClass="edit_button_image" actionListener="#{userLeaveBean.editAppliedLeave}" title="Edit" process="@this"/>

ボタン画像を取得するための CSS:

.edit_button_image{
background: url(edit.JPG) no-repeat !important;

}

画像がよく表示されますが、画像の上にテキスト「ui-button」も表示されます。画像のみを取得するにはどうすればよいですか?選択して追加した process="@this".any のために、全体の一部に対して何らかのアクションを実行したいので、それを使用しても問題ありません。

4

1 に答える 1