Cannot inject GUI components

Hi,

I recently start to have a problem with earlier working code.
I injecting into AbstractWindow class some GUI elements (2 textFields) and the inject is failing the log file logged 2 WARNING

CDI - Unable to find an instance of type ‘interface com.haulmont.cuba.gui.components.TextField’ named ‘TF_CikkKod’ for instance of 'hu.codewizards.mascoproto.web.productgroup.ProductBrowse’
CDI - Unable to find an instance of type ‘interface com.haulmont.cuba.gui.components.TextField’ named ‘TF_SysCode’ for instance of 'hu.codewizards.mascoproto.web.productgroup.ProductBrowse’
Those fields are of course exists, the CUBA Plugin can inject them into class source code, and SOMETIMES after recompiling it works, but that is a rare case…

The relevant XML portion is here:

inside a table there is 2 buttonsPanel and those textfields are in the first buttonsPanel.

I was forced to use 2 buttonspanel, because i cannot force the buttonsPanel to work like flowBox, and linewrap if the screen is small. A FlowBox was tried but it is wrapping buggy, and not on the edge of screen so still i have some missing components because screen clipping.

<table id="table"
        height="100%"
        presentations="true">
     <actions>
         <action id="create"/>
         <action id="edit"/>
         <action id="remove"/>
         <action id="refresh"/>
         <action id="excel"/>
     </actions>
     <columns>
         <column id="syscode"
                 caption="SYSCODE"/>
         <column id="cikkKod"
                 caption="Cikk kód"/>
         <column id="megnevezes"
                 caption="Megnevezés"/>
         <column id="kerekitettNettoAr"
                 caption="Kerekített nettó ár"/>
         <column id="brand"
                 caption="Márka"/>
         <column id="supplier"
                 caption="Beszállító"/>
     </columns>
     <rows datasource="ArakImportCustomDs"/>
     <rowsCount/>
     <buttonsPanel id="btnPanel_1"
                   margin="true"
                   responsive="true">
         <button id="btnExcel"
                 action="table.excel"
                 caption="Excel export"/>
         <button id="btnSearch"
                 caption="Szűrés újra"
                 icon="icons/search.png"
                 invoke="onButtonClick"/>
         <popupButton id="btnPopup"
                      caption="Műveletek"
                      icon="icons/wf-design-scripts.png"
                      visible="false">
             <actions>
                 <action id="MRCExport"
                         caption="MRCExport"
                         invoke="onMRCExport"/>
             </actions>
         </popupButton>
         <label id="labelsrchCikkKod"
                align="MIDDLE_LEFT"
                value="Cikk kód:"/>
         <textField id="TF_CikkKod"/>
         <label id="label_1"
                align="MIDDLE_LEFT"
                value="SYSCODE:"/>
         <textField id="TF_SysCode"/>
     </buttonsPanel>
     <buttonsPanel id="btnPanel"
                   margin="true"
                   responsive="true">
         <button id="btnCreate"
                 action="table.create"
                 caption="Új termék"/>
         <popupButton id="popupCreate"
                      caption="Új termék beszúrása">
             <actions>
                 <action id="InsertRecordAfterExisiting"
                         caption="A kijelölt rekord után"
                         invoke="onInsertRecordAfterExisiting"/>
                 <action id="InsertRecordBeforeExisting"
                         caption="A kijelölt rekord elé"
                         invoke="onInsertRecordBeforeExisting"/>
             </actions>
         </popupButton>
         <button id="btnEdit"
                 action="table.edit"
                 caption="Szerkeszt"/>
         <button id="btnCopy"
                 caption="Másol és szerkeszt"
                 invoke="btnCopyOnClick"/>
         <button id="btnRemove"
                 action="table.remove"
                 caption="Töröl"/>
         <button id="btnRefresh"
                 action="table.refresh"
                 caption="Frissít"/>
     </buttonsPanel>
 </table>

Hi Sándor,

Could you provide a test project? I cannot reproduce the problem, at least on the latest platform version.