Skip to main content

Posts

Showing posts from 2007

Simple JSF

Here my snippet that working successfully... The page is where user can view ,add,delete and edit the data in the same page. My Managed bean public class MyBean { private List myDataList ; private HtmlDataTable myDataTable ; //bind private MyData myDataItem = new MyData (); private boolean editMode = false ; private String status = "" ; private MyDataAccess da = new MyDataAccess (); /** Creates a new instance of MyBean */ public MyBean () { loadMyDataList (); } public void loadMyDataList (){ //my dao thing try { myDataList = da . retrieveNationalityList (); } catch ( Exception ex ) { System . out . println ( "Something error while loadMyDataList..." ); ex . printStackTrace (); } } public List getMyDataList () { if ( FacesContext . getCurrentInstance (). getRenderResponse ()){ loadMyDataList (); } return myDataList ; } public void setMyDataList ( List myDataList ) { this . myDataList = myDataLi

How to setup JBOSS?

1.Download JBOSS Application Server Installer, mine is version 4.0.5 , http://labs.jboss.com/portal/jbossas/download 2.Just install it . 3.Open MyEclipse,mine is 5.1.0 go to Window >Preferences>MYEclipse>Application Servers 4.Choose JBoss 4,setup JBoss server to Enable 5. Make sure that it read the right JRE.Like my latest JRE is inside folder Java 6.Then start JBoss,it should be OK.But if you get an error something like this …"JVM address in used" that 's mean the default port of JBoss which is 8080 is used by other program. If you feel wasting your time to figure out which program is it, you just need to change port for JBoss.Use other port instead of 8080. To change the port is, 7.Go to F:\jboss\server\default\deploy\jbossweb-tomcat55.sar ,where you install your JBpss.Open server.xml,change 8080 to any other number that you prefer.For example I changed it to 8081 8.Start your JBoss again, and you can see that your JBoss start happily e

How to install and setup cvs

This setup is only basic manual.I created it after successfully install and setup cvs.The different step that I faced while reading references thru internet makes me create new manual so I will not forget in the future.I am happy if you feel it's useful. Software requirement -cvsnt-2.5.0.3.2382 -WinCvs2_0_2-4 http://www.wincvs.org/download.html -python 2.5 http://www.python.org/download/ -pywin32-210.win32-py2.5 http://sourceforge.net/project/showfiles.php?group_id=78018 -WinMerge-2.6.4-Setup http://winmerge.org/ Installation step Install CVS and WinCVS a) Install cvsnt-2.5.0.3.2382 and WinCVS (Sometimes it's already bundled with Wincvs,if not just install it separately) b) Go to Control Panel,click twice on CVSNT Server c)Choose Repository Configuration, click Add d)Then choose location,make new folder if you do not have it yet.For example my Location is F:/Repositories/MyRepo. At Name I put as /MyRepo to make people outside see it just as /MyRepo not F:/Repositories/M