2 Replies Latest reply on Aug 11, 2008 3:32 PM by Sascha Janz

    modal panel and ajax region  Error clearing node content

    Sascha Janz Master

      hi,

      i am still having trouble to update an inputtext by row clicking of a datatable. i am using richfaces 3.2.1

      modal panel is



      <rich:modalPanel id="selectactor" autosized="true">
      
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="select actor"></h:outputText>
       </h:panelGroup>
       </f:facet>
      
       <a4j:form id="frm2">
       <a4j:region id ="a4jregion1" >
       <h:inputText id="selmember" value="#{jsp1Bean.membername}"> </h:inputText>
       </a4j:region>
       <rich:dataTable value="#{jsp1Bean.members}" var="m"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" columnsWidth="5%,10%,85%"
       width="100%" border="0" columns="3">
       <a4j:support event="onRowClick" reRender="selmember"></a4j:support>
      
      
      
      
      
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column colspan="1">
       <h:outputText value="" />
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Benutzer/Rolle" />
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Name" />
       </rich:column>
      
       </rich:columnGroup>
      
       </f:facet>
       <rich:columnGroup>
       <rich:column colspan="1">
       <center><h:selectBooleanCheckbox value="#{m.selected}" />
       </center>
       </rich:column>
       <rich:column colspan="1">
       <center><h:graphicImage value="#{m.image}"></h:graphicImage>
       </center>
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="#{m.name}" />
       </rich:column>
      
      
       </rich:columnGroup>
       <a4j:support event="onRowClick" reRender="selmember" actionListener="#{SessionBean.processAction}" action="#{SessionBean.setActorForTask}" >
       <a4j:actionparam name="membername" assignTo="#{jsp1Bean.membername}" value="#{m.name}"> </a4j:actionparam>
       </a4j:support>
      
       </rich:dataTable>
      
       <br></br>
       <a4j:log popup="false" level="ALL" style="width: 800px; height: 300px;"></a4j:log>
      
       </a4j:form >
      
      
      
      
      
       </rich:modalPanel>
      


      the aj4:log shows me, that the parameter membername is sent.

      and also the log shows me that frm2:selmember should be updated.

      but the a "error clearing node content appears"



      any idea why?

      
      debug[14:38:24,313]: Attempt to update part of page for Id: frm2:selmember
      debug[14:38:24,313]: call selectSingleNode for id= frm2:selmember
      debug[14:38:24,313]: Replace content of node by outerHTML()
      error[14:38:24,329]: Error to clear node content by innerHTML unknown runtime error
      debug[14:38:24,329]: search for elements by name 'script' in element input