Good afternoon.

I have too many  inputText elements. Therefore I generate ids for it.
But  I can't find right way.

If i use:
<%for(int i=0; i<PriceBackBean.numberGraduations; i++) {%>
<tr>                                                                            
                  
        <td class="Nkrs"><%=(String)PriceBackBean.graduationsNames.get(i)%></td>
        <%for(int j=0; j<=9; j++) {
        out.println("<td class=\"NCell\"><t:inputText id=\"FE_"+i+"_"+j+"\"
styleClass=\"inputNCell\"/></td>");
        }%>
</tr>                             
<%}%>

jsf pass to web-tier t:inputText  so it can be parsed by browser like normal
HTML input tag.

If I use 
                                  <%for(int i=0; 
i<PriceBackBean.numberGraduations; i++) {%>
                                <tr>                                            
                                                  
                                        <td
class="Nkrs"><%=(String)PriceBackBean.graduationsNames.get(i)%></td>
                                            <%for(int j=0; j<=9; j++) {%>
                                                        <td 
class="NCell"><t:inputText id="FE_<%=i%>_<%=j%>"
styleClass="inputNCell"/>
                                                        <%}%>
                                          </tr>
                                <%}%>

then I get:
javax.servlet.ServletException: Exception in JSP: /price.jsp:87
84:                             <tr>                                            
                                                  
85:                                     <td
class="Nkrs"><%=(String)PriceBackBean.graduationsNames.get(i)%></td>
86:                                         <%for(int j=0; j<=9; j++) {%>
87:                                                     <td 
class="NCell"><t:inputText id="FE_<%=i%>_<%=j%>"
styleClass="inputNCell"/>
88:                                                     <%}%>
89:                                       </tr>
90:                             <%}%>


Stacktrace:
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)

does anybody can suggest something ?
thank you.. for you time
--
View this message in context: 
http://www.nabble.com/id-for-inputText-t1742012.html#a4733978
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to