Hi
In an instance variable I put path to return by default in the constructor
method.
@Component
public class OrdenEdit extends com.bas.eservice.page.BorderPage {
...
private String toReturn;
...
public OrdenEdit() {
toReturn = "/admin/orden-table.htm";
...
}
In the method onGet() I modify that value from a value stored in the Session
Object.
...
@Override
public void onGet() {
...
toReturn = getContext().getSessionAttribute("orden.return");
// "/admin/orden-edit.htm" -> toReturn
...
}
Soon use the variable in a method onCancelClick, but the value that it has, is
original and not placed in the method onGet.
public boolean onCancelClick() {
...
setRedirect(toReturn);
// toReturn value is "/admin/orden-table.htm" instead of
"/admin/orden-edit.htm"
}
It is not preserved in value of an instance variable between calls to different
methods from the same page ???
Thank
Sorry for my bad english
Jorge