I have a PrimeFaces DataTable with one column, called 'name' and a rowexpansion with the 'description'.
Is it possible, to make these rows selectable by clicking, but at expansion the selecting event can not be fired?
EDIT
<h:form id="customerCategoryListForm">
<p:dataTable var="customerCategory" value="#{admin.customerCategories}" id="customerCategoryList"
paginator="true" rows="10"
rowKey="#{customerCategory.id}" selectionMode="single" selection="#{admin.selectedCustomerCategory}"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="10,25,50"
emptyMessage="Nincs adat!">
<p:ajax event="rowSelect" update=":customerCategoryDialogForm:customerCategoryDisplay" oncomplete="customerCategoryDialog.show()" />
<f:facet name="header">
Categories
</f:facet>
<p:column width="10">
<p:rowToggler />
</p:column>
<p:column headerText="Category name" sortBy="#{customerCategory.name}" width="740">
<h:outputText value="#{customerCategory.name}" />
</p:column>
<p:rowExpansion>
<h:outputText value="#{customerCategory.description}" />
</p:rowExpansion>
<f:facet name="footer">
<p:commandButton value="Új hozzáadása" />
</f:facet>
</p:dataTable>
</h:form>