It needs to be in the f:view tag for it to take part in the faces-lifecycle.
you can also try the t:dataTable with preserveDataModel set to true, should have the same effect except that you loose your dataModel in the renderResponse phase - if you don't need it there anymore, you can also use this solution. regards, Martin On 9/7/05, Mathias Brökelmann <[EMAIL PROTECTED]> wrote: > Your x:savestate is outside of the form. Try to put it into the form. > > 2005/9/7, Rick Reumann <[EMAIL PROTECTED]>: > > By the way, when I give my "emloyeeListBean" session scope things work > > fine, so I'm guessing maybe it's the way I'm using x:saveState? > > > > <x:saveState id="employeesListBean" value="#{employeesListBean}"/> > > > > Does it matter where that x:saveState is located? I have it directly > > beneath my imports... > > > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> > > <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> > > <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> > > <x:saveState id="employeesListBean" value="#{employeesListBean}"/> > > > > On 9/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > > It's inside a column: > > > > > > <h:column> > > > <h:commandLink value="#{msgs.edit}" > > > action="#{employeeAction.prepareForEdit}"/> > > > > > > <h:commandLink value="#{msgs.delete}" > > > action="#{employeeAction.deleteAction}"/> > > > </h:column> > > > > > > > > > On 9/7/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > > > > It's probably the case, but is your h:commandLink is inside a column > > > > or facet? I don't think it can be a direct child of dataTable. > > > > > > > > On 9/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > > > > My commandLink will work when it's outside of the dataTable, but when > > > > > it's within the dataTable it is not working (it just refreshes the > > > > > same page, minus the model data, and doesn't even hit the action > > > > > method in the backing bean). > > > > > > > > > > I have... > > > > > > > > > > <x:saveState id="employeesListBean" value="#{employeesListBean}"/> > > > > > <f:view> > > > > > <h:form> > > > > > <h:dataTable var="emp" value="#{employeesListBean.employeesModel}" > > > > > > //stuff > > > > > <h:commandLink value="#{msgs.edit}" > > > > > action="#{employeeAction.prepareForEdit}"/> > > > > > </h:dataTable> > > > > > </h:form> > > > > > </f:form> > > > > > > > > > > If I also add > > > > > > > > > > <h:commandLink value="#{msgs.edit}" > > > > > action="#{employeeAction.prepareForEdit}"/> > > > > > outside of the dataTable the prepareForEdit method is hit. > > > > > > > > > > What do I need to do to get my commandLink working from within the > > > > > dataTable without using a Session scoped bean or preserveDataModel ? I > > > > > thought the x:saveState would do the trick? > > > > > > > > > > -- > > > > > Rick > > > > > > > > > > > > > > > > > > -- > > > Rick > > > > > > > > > -- > > Rick > > > > > -- > Mathias > -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German