Re: Why submit again when click refresh button in IE ?

2007-03-26 Thread Huang Gehua
public ILink onSubmit(IRequestCycle cycle) { //your some codes here //below is the redirect code.Remember this method must return a ILinK. ExternalServiceParameter esp=new ExternalServiceParameter("member/LeaveWord",new Object[]{getUserIdBeViewed()}); return this.get

how to add checkbox into tacos:Table

2007-01-17 Thread Huang Gehua
hello everybody!!! Is there some method to put checkbox into tacos:Table??? thanks!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to move tapestry project to the web root

2006-12-29 Thread Huang Gehua
app You can put either your application path (app) or a friendly url to a page (Home.page if you've got a for *.page) -Steve Mahmut Izci wrote: > Huang Gehua schrieb: >> Always our project is run under the path with a context path ,For >> example: >> http://someH

How to move tapestry project to the web root

2006-12-29 Thread Huang Gehua
Always our project is run under the path with a context path ,For example: http://someHost:8080/prjectName/app If i want use url like this [http://someHost:8080/app] to visit my app ,How to do? i have try to build a Virtual host in my tomcat like this i can visit my app use

friendly url problem when setting context path to the web root directory

2006-12-28 Thread Huang Gehua
I was a beginner of Tapestry 4.0.x. In my T4 project I've activated Friendly URLs and it works fine. But when i deploy the T4 project to a new Virtual Host and set the context path as the web root I meet problems.I can visit the Home page with http://10.0.0.201/app.But can't visit orther pages thr

getRowCount() of IBasicTableModel run 4 times????

2006-10-27 Thread Huang Gehua
This is my code: === public IBasicTableModel getAllPerson()throws CnbrnException{ return new IBasicTableModel(){ public int getRowCount(){ return getRelationshipService().getFriendsCount(

Re: How to difference the first time a request to a page and a rewind to a page

2006-10-23 Thread Huang Gehua
} if (getRequestCycle().isRewinding()) { initForRewind(event); // execute only for rewind cycle } else { initForRender(event); // execute only for render cycle } } And then my subclasses all overload initPage(), initOnlyOnce(), initForRewind(), and initF

How to difference the first time a request to a page and a rewind to a page

2006-10-21 Thread Huang Gehua
Im was a T4 user. I want to do something in the first time a request to a page.And does not want this "something" to be done in the rewind period when a form is submit or other event was actived. Is there a PageEvent to handle this first time of requesting?Or other way to solve this problem? Any a

Re: How to change table page index by a form submit event

2006-10-18 Thread Huang Gehua
( ) { ... setItemsPerPage( DEFAULT_PAGE_SIZE ); // Reset table, so that on next rendering it begins at page 1 // in this session getTable( ).reset( ); } Tom -----Original Message- From: Huang Gehua [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 2:48 PM To: users@tape

How to change table page index by a form submit event

2006-10-16 Thread Huang Gehua
I made a T4 page with a Contrib:Table and a form in it. In the form there is a textbox and a submit button to add record to the table.If i was view the 3rd page of the table and then add a new record . After submitting the new record was added and i was still at the 3rd page of the table.But the