-
15. after form-submit: Target component for id not found
maiajosipin Feb 16, 2011 7:54 PM (in response to murali.chvmk)Hi Murali,
HAve you tried putting the primaryContLink on your reRender tag? Since primaryContLink is on the main form and you are reRendering it from the modal panel, maybe you need to add prefix like main.primaryContLink, or whatever the parent's form name. But i'm just guessing, like I said before, try to check the UI ids, maybe you're calling a non existing field.
-
16. after form-submit: Target component for id not found
gmassenzano Mar 30, 2011 4:59 PM (in response to maiajosipin)Hi Joey / Nimo / Murali,
I am facing the same you have already mentioned, rendering works fine, however I get that warning message of "Target component id not found".
Can you please tell me how did you manage that?
Thanks in advance,
Gerardo
-
17. after form-submit: Target component for id not found
ilya_shaikovsky Mar 31, 2011 5:18 AM (in response to gmassenzano)Gerardo, for every case even if it looks "similar" it's better to provide the code. That message could appear because of different reasons.
-
18. Re: after form-submit: Target component for id not found
gmassenzano Mar 31, 2011 9:15 AM (in response to ilya_shaikovsky)Hi Ilya, thanks for your replay. This is the code:
<rich:simpleTogglePanel id="#{id}" switchType="client" label="#{messages[label]}:">
<h:form id="#{formId}">
<s:div styleClass="formContainer">
<ui:include src="#{searchPanelSrc}" />
<s:div styleClass="buttonContainer">
<a4j:commandButton id="search" action="#{searchPanel.searchAction()}" value="#{messages['common.search']}" disabled="#{formValidations.hasErrors()}" reRender="#{reRenderOnSearch}">
<s:defaultAction/>
</a4j:commandButton>
<a4j:commandButton id="clearButton" action="#{searchPanel.clear(formId)}" value="#{messages['common.clear']}" immediate="true" reRender="#{id}"/>
</s:div>
</s:div>
</h:form>
</rich:simpleTogglePanel>
When clear button is pressed, the correspondent action is executed, the panel is correctly rerendered with empty values, and the following message is shown:
WARN org.ajax4jsf.context.AjaxContext - Target component for id paymentSearch not found
In this case paymentSearch is the value for id.
-
19. Re: after form-submit: Target component for id not found
ilya_shaikovsky Apr 1, 2011 4:37 AM (in response to gmassenzano)I guess you populating the panels in iteration? which component you using for that?
-
20. Re: after form-submit: Target component for id not found
gmassenzano Apr 1, 2011 10:30 AM (in response to ilya_shaikovsky)It is not an interation, it is being used a custom component with only one search panel in the page, which fields are included dynamically using <ui:include src="#{searchPanelSrc}"/> (the source depends on the loaded page).