Problem description                                                     
Introduction:- we have a web application by name itemsub developed      
using jsf,spring and hibernate working in production since a long time.

 
Problem description:- Whenever use clicks on a tab by name "QuickAdds"  
user is rarely getting the following exception.                         
Duplicate component ID 'quickAddsHeader:_id54' found in view.

 
The exception we are getting is specifically from the following code of 
QuickAdds.jsp which is included in html table.  
 
<c:forEach items="${quickAddsBean.quickAddItemList}" var="varitems"     
varStatus="status">                                                     
<tr>                                                              
<td width="25%">                                                 
<h:inputText maxlength="15" value="#{varitems.itemNumber}" />   
</td>                                                            
<td width="25%">                                                 
<h:inputText  maxlength="15" value="#{varitems.subItem1}" />    
</td>                                                            
<c:choose>                                                       
<c:when test="${quickAddsBean.ruleType == 'INV'}">              
<td width="25%">                                               
<h:inputText  maxlength="15" value="#{varitems.subItem2}" />  
</td>                                                          
<td width="25%">                                               
<h:inputText   maxlength="15" value="#{varitems.subItem3}" /> 
</td>                                                          
</c:when>                                                       
<c:otherwise test="${quickAddsBean.ruleType == 'ALW'}">         
<td width="25%"></td>                                          
<td width="25%"></td>                                          
</c:otherwise>                                                  
</c:choose>                                                      
</tr>                                                             
</c:forEach>    
 
                                                   
As input text are inside the for loop and get repeated till it reaches  
required number of rows,  we didn't add id's to the text fields.        
Please suggest me a solution        
Thanks                                                                  
Krishna                                 

Reply via email to