Hi All

I have a jsf page coded like this

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en"
      xmlns:ui="http://java.sun.com/jsf/facelets";
      xmlns:h="http://java.sun.com/jsf/html";
      xmlns:f="http://java.sun.com/jsf/core";
      xmlns:t="http://myfaces.apache.org/tomahawk";>

<ui:composition>
      <h:dataTable id="utx_table" var="investment"
value="#{investmentList.investments}">
          <h:column> <h:outputText value="#{investment.name}" id="ut_name"/>
</h:column>
      </h:dataTable>
</ui:composition>
</html>

The managed bean "investmentList" has session scope, the list investments
contains 5  items.
The 1st time I open this page the generated html contains
....   <table id="utx_table"> ....


However, if i navigate somewhere and return to this page, the html now
contains
....   <table id="utx_table:5"> ....

I suspect that the unique id generator does not reset when rerendering the
page.
Does anyone know of a way to force it to?

I need to keep session scope on the bean.
This is actually a trimmed down version of a page which contained a form and
navigation buttons. I need to access the table via javascript.
If a form submit is used to exit the page, the next entry to this page
always contains the 1st version i.e.
<table id="utx_table"> 

Terry East
-- 
View this message in context: 
http://www.nabble.com/force-resetting-of-id-sequence-generator-tf2039692.html#a5613236
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to