You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2010/04/27 03:23:14 UTC

clientId error for decode

Hello,
we made a JSF component called <my:select>. It is used inside <t:dataTable> as the following:
 
<t:dataTable...>
   <t:column>
 
       <t:dataList ...>
           <h:inputText rendered="bean.inputRenderable" ... />
 
           <my:select rendered="bean.selectRenderable" ... />
 
       </t:dataList>
 
   </t:column>
</t:dataTable>
 
During encodeEnd(....) , the client id is  (simplified version) 
 
A:4:B:0:C:D
 
But decode(...),  the client id is  A:1:B:0:C:D
the decode(...) for client id (A:4:B:0:C:D) is never called.
 
the request is made using ajax, the client Id is a request parameter.
 
In the decode(...) method, we check if the request map contains the clientId
 
    if (!requestMap.containsKey(clientId))
       return true;
 
So the decode is ignored.
 
Thanks for help.
Dave