-
1. Re: How to keep information on the tabPanel
pmuir Jul 9, 2007 6:41 PM (in response to quintenjiang)Please post some code to show what you are doing!
-
2. Re: How to keep information on the tabPanel
quintenjiang Jul 10, 2007 11:51 AM (in response to quintenjiang)I just try to migrate Ajax4jsf code google-house into Seam and richfaces.
And modify code EmployeeTable.java and Employee.java.
Orignal jsf page call employee like:
#{employeeTable.employee.address}
So when switching between tabPanel, pages can keep all typing information. But after I change them into seam EmployeeTable code like:
@In @out
Employee employee;
and pages:
#{employee.address}
So how to activate employee session to keep its information?
Thanks
Quinten -
3. Re: How to keep information on the tabPanel
smithbstl Jul 10, 2007 2:09 PM (in response to quintenjiang)Try using a Stateful Bean which will coversationally scoped. You won't need to scope your variables as Session.
-
4. Re: How to keep information on the tabPanel
quintenjiang Jul 11, 2007 5:50 PM (in response to quintenjiang)Tomahawk have function t:saveState to try to enables you to persist beans to keep information on eack pages between tabPanel. May I know if there are any similar functions on seam or ajax4jsf? of couse I can put like
<h:inputText size="50" value="#{person.name}" >
<a4j:support event="onkeyup" reRender="rep"/>
</h:inputText>
on each inputText to persist each field at the beans. but it look stuipt.
Thanks,
Quinten -
5. Re: How to keep information on the tabPanel
pmuir Jul 12, 2007 6:03 AM (in response to quintenjiang)Conversation and Page scopes will both work here.