Re: access @Border in subfolder of web-inf

2008-09-26 Thread michael lim
yes, i have Border.jwc file

  //this will access Border.html in
/web-inf/Border.html with no problem

  // can this be used to access
/web-inf/test/Border.html ?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



access @Border in subfolder of web-inf

2008-09-26 Thread michael lim
i access my page like this

http://localhost:8080/TestApp/app?service=page&page=test/index


i have Border.html and Border.page inside /web-inf/test/* folder.. inside my
index.html file. how do i define the border ?

   //this doesnt  work


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



t4 put .html .page in other folder

2008-09-23 Thread michael lim
on my tapestry 4, normally i will put .html .page in /web-inf/* folder. can i
put in /web-inf/test/*   or /web-inf/abc/*   ? what files I need to configure ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: contrib table field alignment

2008-09-11 Thread michael lim
for custom field in .page  =DateValidFromColumn, how to display it in .html
,because i want to align to right


  

  

  // this working fine

  
   // this doesnt work





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



contrib table field alignment

2008-09-11 Thread michael lim
current i using code below to display table and all fields are displayed right
alignment.







if i want certain field to align "left" and certain field to align "right"  .
how do to that?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tacos @Cached in t4

2008-09-06 Thread michael lim
i tried this. whenever i press f5, pagebeginrender will still be called and db
will be hit


@Persist("session")
public abstract Collection getPersistThisOne();
public abstract void setPersistThisOne(Collection persistThisOne); 

 public  void pageBeginRender(PageEvent event) {
 System.out.println("pageBeginRender..");
 
setPersistThisOne( dao.getFromDB());

  
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tacos @Cached in t4

2008-09-06 Thread michael lim
my .application look like this

 
  
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tacos @Cached in t4

2008-09-06 Thread michael lim
in my page, i do like below, but when i press refresh F5 on page, i keep on
getting database hit.  when using cached, aren't it not suppose to call
getFromDB() for subsequent call ?


@Cached
  public String getGenerateMenuCached() {
 

return dao.getFromDb();
}




//in my dao
public String getFromDB(){

  System.out.println("hit db");
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



force download csv file in /web/ folder

2008-09-04 Thread michael lim
i put my csv file in /web folder. when user open browser, the entire content of
csv is displayed in browser. how to force download the file?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cache on T4 page

2008-08-25 Thread michael lim
 in my pagevalidate method, i call db to retrieve information and print out on
page using @insert

how do i cache it so that it will not hit the db so frequent ? any example?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tapestry 4 button that skip client validation

2008-08-23 Thread michael lim
i have a form that using client validation. inside the form i have few buttons,
each time a button is pressed, the form will be validated first. if i want to
create a delete button that skip client validation and call doThisMethod(). how
to do that?








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]