-
1. Re: after form-submit: Target component for id not found
nimo22 Apr 15, 2009 4:43 PM (in response to nimo22)When I have this:
<s:div id="myPage"> <h:form id="formA"> ... <a4j:commandButton action="#{bean.fire}" reRender="myPage, formA, subpage"/> </h:form> <s:div id="subpageA"> <ui:include src="subpageA.xhtml"/> </s:div> </s:div>
and submit then I get these errors:WARN [AjaxContext] Target component for id myPage not found WARN [AjaxContext] Target component for id formA not found WARN [AjaxContext] Target component for id subpageA not found
-
2. Re: after form-submit: Target component for id not found
nimo22 Apr 16, 2009 4:54 AM (in response to nimo22)the strange thing is that my a4j:log says:
debug[10:47:58,826]: Update part of page for Id: subpageA successful
but the stacktrace says:WARN [AjaxContext] Target component for id subpageA not found
? -
3. Re: after form-submit: Target component for id not found
ilya_shaikovsky Apr 16, 2009 6:11 AM (in response to nimo22)which RF version you using?
-
4. Re: after form-submit: Target component for id not found
nimo22 Apr 16, 2009 6:16 AM (in response to nimo22)I use RF 3.3.0.
-
5. Re: after form-submit: Target component for id not found
ilya_shaikovsky Apr 16, 2009 6:29 AM (in response to nimo22)will this be changed if you change s:div to a4j:outputPanel with layout=block(it will also gerate div)?
-
6. Re: after form-submit: Target component for id not found
nimo22 Apr 16, 2009 7:00 AM (in response to nimo22)hello ilya,
thank you!! that was the reason:
This works:<a4j:outputPanel id="myPage"> <h:form id="formA"> ... <a4j:commandButton action="#{bean.fire}" reRender="subpageA"/> </h:form> <s:div id="subpageA"> <ui:include src="subpageA.xhtml"/> </s:div> </a4j:outputPanel>
Now, the reRendering definitly works, but besides, I get the (false?) warnings in my stacktrace:Target component for id subpageA not found
But it works, only the warnings are false. -
7. Re: after form-submit: Target component for id not found
maiajosipin Dec 6, 2010 4:57 AM (in response to nimo22)hi nimo, i would just like to know if you have managed to get rid the warning message? I am encountering the same issue, rerendering works but the warning "Target component id not found" appears.
Thanks in advance. cheers
-
8. Re: after form-submit: Target component for id not found
nimo22 Dec 14, 2010 2:54 AM (in response to maiajosipin)What version do you use?
-
9. after form-submit: Target component for id not found
murali.chvmk Feb 11, 2011 1:33 AM (in response to nimo22)Hi Nimo,
I am using richfaces 3.3.3 with seam 2.0.2. I got same error.
Could you please suggest me how to resolve this issue. Rendering extenedableDatatable in modelpanel. Sometimes its working but sometimes its fails.
And also the same way i am rendering othertable tables those working fine.
Could you please suggest me?
Thanks
Murali
-
10. Re: after form-submit: Target component for id not found
nimo22 Feb 11, 2011 3:07 AM (in response to murali.chvmk){quote}Rendering extenedableDatatable in modelpanel.{quote}
Maybe you forgot to rerender the whole modalpanel (with its content datatable).
Wrap your modalPanel with a a4j:panel and rerender its ID (in this case "renderthis")
<a4j:panel id="renderthis">
<rich:modalPanel ..>
<rich:extendedDatatable>
..
</rich:extendedDatatable>
</rich:modalPanel>
</a4j:panel>
-
11. after form-submit: Target component for id not found
murali.chvmk Feb 11, 2011 8:02 AM (in response to nimo22)Hi Nimo,
Once i did this using <a4j:outputPanel> modelPanel will lost its style.
Another thing that when i select the row in table the table will refresh with existing data onceagin, it should not happen in my case. once i select row in table parent page commandlink will replace with selected row item.
this is the commandlink code:
<a4j:commandLink id="primaryContLink" ajaxSingle="true"
action="#{addContactDetails.refreshACAll}"
reRender="contactPanelDiv,primaryContLink,AddAContactIntPanel,AddAContactExtPanel"
oncomplete="Richfaces.showModalPanel('AddAContact');return false">
<h:outputText value="#{messages['oncall.grp.addlevelonecontact']}"
rendered="#{groupDetails.primaryContact == null}" />
<h:outputText
value="#{groupAction.groupDetails.primaryContact.lastName}, #{groupAction.groupDetails.primaryContact.firstName}"
rendered="#{groupDetails.primaryContact != null}" />
<f:setPropertyActionListener value="OnCall"
target="#{addContactDetails.typeOfPage}" />
<f:setPropertyActionListener value="primaryContLink"
target="#{addContactDetails.contactLinkid}" />
</a4j:commandLink>
here is the extendabledatable in model panel:
<rich:panel id="contactInfoTableWrapper" style="border:0px solid;">
<rich:extendedDataTable height="100px" width="100%" binding="#{table}"
selectedClass="dataTableSelectedRow" selectionMode="single"
id="contactInfoTable" columnClasses="col" value="#{personContactHelper.contactsDataModel}"
var="info" selection="#{personContactHelper.simpleSelection}"
tableState="#{personContactHelper.contactTableState}"
rendered="#{addContactDetails.showResultList}"
noDataLabel="No Results. Please try again using different search criteria">---------
----------
<a4j:support
id="person_take_selection" status="waitStatus"
oncomplete="#{rich:component('waitModalPanel')}.hide(); return false"
action="#{personContactHelper.takeContactSelection}"
event="onselectionchange" />
</rich:extendedDataTable></rich:panel>
-
12. after form-submit: Target component for id not found
maiajosipin Feb 11, 2011 10:53 AM (in response to murali.chvmk)Hi Murali,
May I also know your problem? Are you getting the "Target component id not found" warning even if the component is existing? Or is your problem about rerendering the component?
I just also want to share what happened to me. I'm getting the "Target component id not found" warning from the logs even though the page and popup is working fine. Nimo was right, I have fixed mine by wrapping the modalpanel, then call that new id during rerender. You may want to also try using FireBug plugin in Mozilla Firefox, so that you can debug and know the ids of each field when its up
-
13. after form-submit: Target component for id not found
murali.chvmk Feb 14, 2011 7:32 AM (in response to maiajosipin)Hi Joey,
Thanks for your reply.
Actually that problem is solved. I got another problem. I need to update actually saying that rerender primaryContLink when click Add button in the modelPanel. In the backing bean the updated values are stored in corresponding properties but not rerendered immediately. Its updated when i clicked on perticular primaryContLink, its got updated.
Could you please suggest me any solution for this.
Thanks,
Murali
-
14. after form-submit: Target component for id not found
murali.chvmk Feb 14, 2011 7:32 AM (in response to maiajosipin)Hi Joey,
Thanks for your reply. Actually that problem is solved. I got another problem with rendering the backing bean properties immediately.
The primaryContLink is updated with the selected value from the modelPanel when i click Add button. Actully the values are upated in backing bean properties with selected values in the modelPanel extendenedDataTable. New values are not updated in the UI.
The primaryContLink is updated with selected value. How to rerendered this.
Please Suggest me?
Thanks,
Murali