recuperer le composant inputText pour le setter
Salut,
J'arrive pas à récupérer le composant inputText de ma JSP. Voila comment je fais :
Code:
UIInput inputTextFullName =(UIInput)FacesContext.getCurrentInstance().getViewRoot().findComponent("popupForm:idTxtFullNameAsset");
ça me renvoit null.
Et la partie ou il y a le inputText la voila :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
| <ice:form id="popupForm">
<ice:panelPopup id="popupId" visible="#{bean.popupVisible}" styleClass="icePnlPopTabSet" modal="true">
<f:facet name="header">
<ice:panelGrid style="text-align: right;" width="100%" cellpadding="0" cellspacing="0" columns="1">
<ice:commandButton image="../images/img/closePopup.gif" action="#{bean.closePopup}" title="Close this draggable popup"
immediate="true" />
</ice:panelGrid>
</f:facet>
<f:facet name="body" >
<ice:panelTabSet selectedIndex="#{bean.secondFocusIndex}" styleClass="stylePnlTabSet" >
<!-- Panel Tab 11 -->
<ice:panelTab label="Asset Managers" id="panelTab11" >
<ice:panelGrid columns="2" styleClass="panelPopupGrid">
<ice:panelGroup style=" border: 1px solid #ABABAB; ">
<ice:dataTable value="#{bean.assetRowDataModel}" var="row" id="tableSet1"
rows="4" cellpadding="0" width="200px" styleClass="tablestyle">
<ice:rowSelector styleClass="#{bean.styleRowSelector}" />
<ice:column>
<f:facet name="header">
<ice:outputText value="Full list" style="text-decoration:underline;"/>
</f:facet>
<ice:panelGroup style="text-align:center;">
<ice:commandLink >
<ice:outputText value="#{bean.assetCellValue}" title="#{bean.assetCellValue}"/>
</ice:commandLink>
</ice:panelGroup>
</ice:column>
<ice:column>
<f:facet name="header">
</f:facet>
<ice:panelGroup style="text-align:center;">
<ice:commandLink actionListener="#{bean.deleteAssetManagers}">
<ice:graphicImage id="expandContractImage2" value="../images/img/close.gif"
style="border: 0px solid;" title="Delete"/>
</ice:commandLink>
</ice:panelGroup>
</ice:column>
<ice:column>
<f:facet name="header">
</f:facet>
<ice:panelGroup style="text-align:center;">
<ice:commandLink actionListener="#{bean.updateAssetManagers}">
<ice:outputText value="Edit"/>
</ice:commandLink>
</ice:panelGroup>
</ice:column>
</ice:dataTable>
<!-- Paginator with page controls -->
<br> </br>
<ice:panelGroup style="text-align:center;">
<ice:dataPaginator for="tableSet1" paginator="true" fastStep="3" paginatorMaxPages="4"
renderFacetsIfSinglePage="false" styleClass="OLPgr" binding="#{bean.assetPaginator}">
<f:facet name="first">
<ice:graphicImage url="../images/img/first_btn.jpg" styleClass="OLPgrScrBtn" title="First Page" />
</f:facet>
<f:facet name="last">
<ice:graphicImage url="../images/img/last_btn.jpg" styleClass="OLPgrScrBtn" title="Last Page" />
</f:facet>
<f:facet name="previous">
<ice:graphicImage url="../images/img/previous_btn.jpg" styleClass="OLPgrScrBtn" title="Previous Page" />
</f:facet>
<f:facet name="next">
<ice:graphicImage url="../images/img/next_btn.jpg" styleClass="OLPgrScrBtn" title="Next Page" />
</f:facet>
</ice:dataPaginator>
</ice:panelGroup>
</ice:panelGroup>
<ice:panelGroup style=" border: 1px solid #ABABAB; ">
<ice:panelGrid columns="2">
<ice:panelGrid columns="1" >
<ice:outputText value="Full Name" style="color:white;"/>
<ice:outputText value="Trader Id (definitive)" style="color:white;"/>
</ice:panelGrid>
<ice:panelGrid columns="1">
<ice:inputText id="idTxtFullNameAsset" value="#{bean.fullNameAsset}"/>
<ice:inputText id="idTxtTraderIdAsset" value="#{bean.traderIdAsset}"/>
</ice:panelGrid>
...... |
Merci pour votre aide