Hello again,
 
I've made a test of JSF and i have some problems to reach backing-bean data.
I'm using 2 JSP pages  : "page1.jsp" and "page2.jsp", and this is my code simplified.
In the first one I include the second one with a dynamic path, so i use this tag :

<f:view>
 
<f:verbatim>
   
<jsp:include page="<%= path %>"/>
  </f:verbatim>

</f:view>

The second one contain this code :

<html>
 
<body
>
   
<f:subview id="page2"
>
     
<% for(int i = 0; i < MyBean.number; i++) { %>
       
<x:inputText value="#{MyBean.myTreeMap[MyBean.key].stringInfo}"/>
     
<% }; %>
   
</f:subview>
 
</body
>
</html>

My problem is when i visualize the result at http://localhost:8080/mytest/page1.jsp, i obtain always the same value in every inputtext. This value should be only in the last field.
And when i visualize the result at http://localhost:8080/mytest/page2.jsp, i obtain the good result in each field.

Do you have an idea to explain this phenomen ?

Thanks,

Pierrick

Reply via email to