السلام عليكم و رحمة الله و بركاته
كما يعلم معظم الاخوه أني جدييييييييييييييييد جدا في ال jsf و لكني بفضل الله أشعر بسهولنها ، المهم أن روحت دورت علي كتاب فوجدت أحسن كتاب داخل عليطول في الموضوع هو " core jsf " http://corejsf.com المهم أني بدأت قراءة إلي أو وصلت لأول مثال ::::
هو طلب مني تحمبل الأمثله من هنا : http://www.horstmann.com/corejsf/corejsf2-examples.zip
و قمت بتحميل ال jsf و بدأت أول مثال، سأعرض لكم ما طلبه مني المؤلف هداه الله :
(الكلام الملون من كلامي و ليس من كلام المرلف )
<h4 class="docSection2Title"></h4>
اقتباس<h4 class="docSection2Title">Build Instructions</h4> We now walk you through the steps required for building JSF applications with your bare hands. At the end of this chapter, we show you how to automate this process.
- Launch a command shell.
Change to the ch1/login/WEB-INF/classes directory inside corejsf-examples, the directory that contains the sample code for this book. Run the command javac com/corejsf/UserBean.java (On Windows, use backslashes instead: javac com\corejsf\UserBean.java.)Make a ch1/login/WEB-INF/lib directory. Into that directory, copy the following files:
jsf/lib/jsf-api.jar // مكتبة ال jsf التي قمت بتحميلها
jsf/lib/jsf-impl.jar:jsf/lib/jsf-impl.jar
// مكتبة ال jsf التي قمت بتحميلها
tomcat/server/lib/commons-digester.jar // لم أجدها إنظر الملاحظه بأخر الموضوع
tomcat/server/lib/commons-beanutils.jar // لم أجدها أنظر الملاحظه بأخر الموضوع
tomcat/webapps/jsp-examples/WEB-INF/lib/jstl.jar // لا أدري لم ال jstl هنا ؟!
tomcat/webapps/jsp-examples/WEB-INF/lib/standard.jar // لا أدري لم ال jstl هنا ؟Change to the ch1/login directory. Run the command
jar cvf login.war.
(Note the period at the end of the command, indicating the current directory.)Copy the login.war file to the directory tomcat/webapps. Now point your browser to
http://localhost:8080/login
The application should start up at this point.TIP
If you are very impatient, you can use two shortcuts. Copy the six library JAR files into the tomcat/common/lib directory and restart the server. Then you don't have to place the libraries into the WEB-INF/lib directory of your applications. Moreover, you can bypass the WAR file—simply copy the entire login directory (including its subdirectories) to the tomcat/webapps directory. Remember to compile the source files in the WEB-INF/classes directory.
For more complex programs that reference the JSF libraries, the compilation step is more complex. Your class path must include the following JAR files:<a name="ch01index73">
tomcat/common/lib/servlet-api.jar
tomcat/common/lib/jsp-api.jar
jsf/lib/jsf-api.jar
jsf/lib/jsf-impl.jar
A typical compilation command would look like this:
javac -classpath .:tomcat/common/lib/servlet-api.jar
:tomcat/common/lib/jsp-api.jar:jsf/lib/jsf-api.jar
com/corejsf/*.java
The entire command needs to be placed on a single line.
(On Windows, use semicolons to separate the path elements.)
ملحوظه : المؤلف طلب مني نسخ
tomcat/server/lib/commons-digester.jar
tomcat/server/lib/commons-beanutils.jar
ولكني لم أجدهم بهذا المسار و أضطررت للحصول عليهم من eclipse المثبت عندي
أرجو المساعده

