Home / 1.4
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2015-02-01 1.3 kB
how_to_start.1.4.zip 2015-02-01 9.2 MB
thinkjava_struts_example_project.1.4.zip 2015-02-01 9.1 MB
thinkjava.docs.API.1.4.zip 2015-02-01 177.1 kB
thinkjava.dist.1.4.zip 2015-02-01 8.2 MB
Totals: 5 Items   26.7 MB 0
What's new in ThinkJava 1.4 ?
1.Rewrote the core mapping framework,which runs more stable now!
2.Removed the method 'getPagedHTML()' in the Interface 'Page'.Now it is a static method and moved to the class 'test.thinkjava.extend.WebPage' attached in the project 'thinkjava_example_project' in the file 'how_to_start.1.4.zip'.Here is an example for using the 'Model' and 'WebModel':
	Model m=new Model(Post.class);
	Page pg=m.page(5,1);//page size is 5,page number is 1.
	List list=pg.getList(); 
	
	String pagedHTML=WebModel.getPagedHTML("post_list.jsp",pg);//'page_list.jsp' is the JSP page which need to paging function
	//Then the value of variable pagedHTML is like "first&nbsp;prev&nbsp;<a href='post_list.jsp?p=2'>next</a>&nbsp;<a href='post_list.jsp?p=19'>last</a>".
	//You can customize the pagedHTML link in the method WebModel.getPagedHTML() now.
3.Recovered the method and(String condition) and or(String condition) in class Model.
4.Retested and adjusted the ehchache in the project.Now the persistent objects of result returned from the methods: get(),getByPK(Object pk),list(),page(int pageSize,int pageNum) in Model will be cached!
5.Renamed the configuration file 'thinkJava.properties' to ''thinkjava.properties',the 'j' is a lower case now.

by rockydan
1/2/2015
Source: readme.txt, updated 2015-02-01