JSF: make f:facet header as commandLink -
jsf:
<rich:datatable> ... <h:column> <f:facet name="header"> <h:commandlink action="filesearchsort" styleclass="theader"> name </h:commandlink> </f:facet> #{f.name} </h:column> ... </rich:datatable>
if this:
... <h:column> <h:commandlink action="filesearchsort" styleclass="theader"> <f:facet name="header"> name </f:facet> </h:commandlink> #{f.name} </h:column> ...
that label "name" in header dissappeared.
is possible whole f:facet
header commandlink
?
thanks.
as behaviour you're seeing, <f:facet>
nested direct child of jsf component supposed own facet, in case <h:column>
. placing inside <h:commandlink>
instead make facet of <h:commandlink>
, component doesn't support facet name header
, you'll see nothing.
as concrete functional requirement, jsf <h:commandlink>
component renders html <a>
element default inline element. if want let occupy entire space of parent html <th>
element, need make <a>
block element instead. adding display: block
style class should do.
.theader { display: block; ... }
Comments
Post a Comment