<collection id="officeOutsourcingRegistriesDs"
class="com.elgsys.elg.entity.office.registries.OfficeOutsourcingRegistry"
view="office-outsourcing-registry-view-for-creating-monthly-requests">
<loader id="officeOutsourcingRegistriesDl">
<query>
<![CDATA[select e from elg$OfficeOutsourcingRegistry e where e.status.code = 'ACTIVE']]>
<condition>
<and>
<c:jpql>
<c:where>(e.date_end is null or e.date_end >= :selectedMonth)
and not exists (select 1 from elg$OfficeOutsourcingService oos where
oos.parent_registry.id = e.id and oos.date_start = :selectedMonth)
</c:where>
</c:jpql>
<c:jpql>
<c:where>lower(e.service_number) LIKE lower(:serviceNumber)</c:where>
</c:jpql>
</and>
</condition>
</query>
</loader>
</collection>
<facets>
<dataLoadCoordinator auto="true">
<refresh loader="officeOutsourcingRegistriesDl" param="selectedMonth"
onComponentValueChanged="monthDateField"/>
<refresh loader="officeOutsourcingRegistriesDl" param="serviceNumber"
likeClause="CASE_INSENSITIVE"
onComponentValueChanged="serviceNumberField"/>
</dataLoadCoordinator>
</facets>
Опытным путем было выявлено, что onComponentValueChanged срабатывает только тогда, когда пользователь что то меняет на экране, если в контроллере экрана прописать явно, то не будет refresh для collection - это косяк
@Subscribe
public void onBeforeShow(BeforeShowEvent event) {
monthDateField.setValue(timeSource.currentTimestamp());
}