JSF: Java Server Faces Short Notes from the past
JSF: Java Server Faces Short Notes from the past http://bangla.salearningschool.com/recent-posts?s=jsf
Data conversion in jsf applications 2022/04/15 at 10:01 am 0 views Select internationalization in jsf #AngularJS #By Sayed Ahmed internationalization in jsf #AngularJS #By Sayed Ahmed
2021/08/02 at 4:10 am 0 views Select data conversion in jsf applications #AngularJS #By Sayed Ahmed data conversion in jsf applications #AngularJS #By Sayed Ahmed
2021/08/02 at 4:10 am 0 views Select JSF and Apache myFaces #Java Short Notes JSF and Apache myFaces #Java Short Notes
2021/07/21 at 4:10 am 0 views Select JSF: Lesson – 4: Accessing Context Data from Beans #Java Short Notes JSF: Lesson – 4: Accessing Context Data from Beans #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 3: Controlling Page Navigation in JSF #Java Short Notes JSF: Lesson – 3: Controlling Page Navigation in JSF #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 7: Using Message Bundles in JSF: Support Internationalization #Java Short Notes JSF: Lesson – 7: Using Message Bundles in JSF: Support Internationalization #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 5: Converting Data #Java Short Notes JSF: Lesson – 5: Converting Data #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 6: Validating User Input in JSF #Java Short Notes JSF: Lesson – 6: Validating User Input in JSF #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 1: JSF Specifications #Java Short Notes JSF: Lesson – 1: JSF Specifications #Java Short Notes
2021/07/19 at 4:10 am 0 views Select JSF: Lesson – 2: JSF Managed Beans #Java Short Notes JSF: Lesson – 2: JSF Managed Beans #Java Short Notes
2021/07/19 at 4:10 am 0 views Select navigation control in jsf j2ee applications #Root navigation control in jsf j2ee applications #Root
2021/03/31 at 7:35 pm 0 views Select using jsf with jsp tomcat 6 #Root using jsf with jsp tomcat 6 #Root
2021/03/31 at 7:35 pm 0 views Select jsf managed bean #Root jsf managed bean #Root
2021/03/31 at 7:35 pm 0 views Select JSF এ ইউজার ইনপুট ভেলিডেটিং করা JSF এ ইউজার ইনপুট ভেলিডেটিং করা
Author-Check- Article-or-Video জাভা, ডট নেট/.Net, পি এইচ পি/PHP 2015/03/27 at 3:21 pm 0 views Select Arthur Grand Technologies Inc is hiring for Java Developer. 19+ more java jobs in Toronto, ON. Arthur Grand Technologies Inc is hiring for Java Developer. 19+ more java jobs in Toronto, ON.
2022/05/07 at 11:32 am 0 views Select #StackOverflow. The Overflow #122: Your salary shouldn’t be dictated by how good a negotiator you are #StackOverflow. The Overflow #122: Your salary shouldn’t be dictated by how good a negotiator you are
2022/04/20 at 10:46 am 0 views Select Data Science Jobs Data Science Jobs
Sayed Jobs in Canada and USA, ব্লগ । Blog 2022/04/13 at 10:16 am 0 views Select ITExpertUS is hiring for Java Developer. 19+ more java jobs in Toronto, ON. ITExpertUS is hiring for Java Developer. 19+ more java jobs in Toronto, ON.
2022/02/04 at 11:54 am 0 views Select Data and Machine Learning Jobs Data and Machine Learning Jobs
2022/02/04 at 11:53 am 0 views Select Java Developer Opportunities Java Developer Opportunities
2022/01/28 at 11:11 am 0 views Select Skills for Current Java Focused Jobs #Blog #Java Skills for Current Java Focused Jobs #Blog #Java
2021/07/31 at 11:52 am 0 views Select Basic Java But Essential Knowledge for exams like SCJA, or to the project managers new to Java technologies #Computer Game Design #Java Short Notes Basic Java But Essential Knowledge for exams like SCJA, or to the project managers new to Java technologies #Computer Game Design #Java Short Notes
2021/07/27 at 4:10 am 0 views Select Java/J2EE:Important Resources: Struts, Spring, Hibernate, JPA #Java Short Notes Java/J2EE:Important Resources: Struts, Spring, Hibernate, JPA #Java Short Notes
2021/07/22 at 4:10 am 0 views Select Topics to Learn in Java Spring framework #Java Short Notes Topics to Learn in Java Spring framework #Java Short Notes
2021/07/22 at 4:10 am 0 views Select Java Skills for Job #Java Short Notes Java Skills for Job #Java Short Notes
2021/07/20 at 4:10 am 0 views Select Key J2EE Components : Basic Concepts with Examples #Java Short Notes Key J2EE Components : Basic Concepts with Examples #Java Short Notes
2021/07/19 at 4:10 am 0 views Select Servlet, JSP Specifications #Java Short Notes Servlet, JSP Specifications #Java Short Notes
2021/07/18 at 11:24 am 0 views Select Java Spring Topics: What spring framework brings to the table #Java Short Notes Java Spring Topics: What spring framework brings to the table #Java Short Notes
2021/07/18 at 10:54 am 0 views Select Spring Applications: Examples #Java Short Notes Spring Applications: Examples #Java Short Notes
2021/07/18 at 10:54 am 0 views Select MVC : Struts : Java : Industry Web Application #Java Short Notes MVC : Struts : Java : Industry Web Application #Java Short Notes
data conversion in jsf applications
internationalization in jsf #AngularJS #By Sayed Ahmed
From: http://sitestree.com/?p=2748
Categories:AngularJS, By Sayed Ahmed
Tags:jsf
Post Data:2015-11-02 00:19:07
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
data conversion in jsf applications #AngularJS #By Sayed Ahmed
From: http://sitestree.com/?p=2750
Categories:AngularJS, By Sayed Ahmed
Tags:application, jsf
Post Data:2015-11-02 06:20:20
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF and Apache myFaces #Java Short Notes
- Introduction to JSF
- Create MyFaces Development Environment
- Lecture Notes of JSF and MyFaces
- MyFaces Wiki
From: http://sitestree.com/?p=5098
Categories:Java Short Notes
Tags:
Post Data:2009-12-30 08:31:19
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 4: Accessing Context Data from Beans #Java Short Notes
- In some cases, from the beans used in JSF applications, you will need to access the request parameters. For example, in the BusSearch.java, we accessed, the request parameters [Please check the previous JSF lesson].
- How to access: FacesContext context = FacesContext.getCurrentInstance();
- Some methods of FacesContext:
- Map getApplicationMap()
- String getInitParameter(java.lang.String name)
- Map getInitParameterMap()
- String getRemoteUser()
- Map getRequestCookieMap()
- Map getRequestHeaderMap()
- Map getRequestHeaderValuesMap()
- Map getRequestMap()
- Map getRequestParameterMap()
- Iterator getRequestParameterNames()
- Map getRequestParameterValuesMap()
- Map getSessionMap()
- Sample code:
FacesContext context = FacesContext.getCurrentInstance();
-
Map requestParams = context.getExternalContext().getRequestParameterMap();
-
String tripNum = (String) requestParams.get("tripNum");
From: http://sitestree.com/?p=4995
Categories:Java Short Notes
Tags:
Post Data:2007-08-18 13:22:28
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 3: Controlling Page Navigation in JSF #Java Short Notes
- Sample application for this article
- Video Tutorial for this article
- Pre-requisite: JSF Lesson 1 & 2
- Navigation: Two Types:
- Static: The destination page is fixed
- Dynamic: The destination page varies with the conditions
- Static
- Static: You provide a fixed value for the "action" attribute for a JSF event control/action element
- That fixed value is mapped to the fixed destination page in the configuration file such as the faces-config.xml
- If you check our previous lesson, the searchForms.jsp contains . In this line, the text 'action="submit"' defines the static navigation.
- The navigation rule in the following text maps submit action to searchResults.jsp page [static/fixed mappping]
/searchForm.jspsubmit
/searchResults.jsp
- Dynamic Navigation
- In this case, the action takes a dynamic value. All possible values are mapped into [different] destination pages. Hence, when the action gets a different value, the destination page is also different [unless mapped to the same destination page]
- To get dynamic nature, the action is mapped to a value/property or a method of a managed bean. The property must be of String type. Also, the method must return String and must not take any parameter.
- At the time, the action is executed [the button is pressed], corresponding property value is retrieved or the method is called to get value. This value is then matched with the navigation cases in faces-config.xml.
- The user is then redirected to the destination of the mathching navigation case.
- Example: Binding action to a value/method expression in jsp: . Here, search is a method in the bus bean. Hence, at the button click, the search method is executed. For example, it may get values such as success, noTrips
- Mapping in faces-config.xml: success, and noTrips are mapped in the following navigation cases.
- /searchForm.jsp
success
/searchResults.jspnoTrips
/noTrips.jsp
- Navigation Rules:
- If you observe the navigation rules above, you will notice elements. This is to mention, from where the action is generated.
- : is the action message based on which flow is maintained
- element provides the destination page
- is optional. If you omit , then for all <from -outcome> message for the application, will be redirected to the related destination page. If all page refers to the same privacy policy file, this rule can be useful
- Example:
privacy-policy
/WEB-INF/privacy.jsp - You can also redirect for the same message for a group of pages to the same destiation. Such as:
/order/*
success
/WEB-INF/invoice.jsp - element: Consider a case, in the same page, in two command buttons, the actions are mapped to save and search methods. Both save and search methods can return success as the element. But, if you want them (two successes from the two methods) to go to two different destination pages, then element comes handy.
- You can use element in the following way:
- /searchForm.jsp
#{bus.search}
success
/searchResults.jsp#{bus.save}
success
/searchForm.jsp
From: http://sitestree.com/?p=4994
Categories:Java Short Notes
Tags:
Post Data:2012-08-07 12:03:08
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 7: Using Message Bundles in JSF: Support Internationalization #Java Short Notes
- Target: Intermediate level web-developers (Java-platform).
- Sample application on Internationalization with JSF
- Video Tutorial on Internationalization with JSF
- To support Internationalization, in the web-pages, the text messages and the control texts make use of the keys for the values/messages. In the value fields, keys are mentioned/provided as the values. Later, based on the current locale/language, the keys are replaced with the appropriate texts for the current locale/language
- In some property files, keys and their corresponding values are listed
- For each language, one property file is provided
- The file names usually end with .properties
- Example: contents of the Property files:
search.text.new=New SearchorderBtn.text = Confirm Order
- Wherever orderBtn.text is used for values, will be replaced with "Confirm Order"
- If the file name is messages.properties, the file can be loaded into the JSP pages as follows:
- Example use of the property file from JSP pages
- You are also required to list the default languages (that your application supports) in the faces-config.xml file
From: http://sitestree.com/?p=4998
Categories:Java Short Notes
Tags:
Post Data:2010-04-09 07:54:07
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 5: Converting Data #Java Short Notes
- Sample application for JSF Data Type Converter
- Video Tutorial for JSF Data Type Converter
- Pre-requisite: JSF Lesson 1, 2, 3, 4
- JSF provides two different types of built-in data type converters such as: String and Date Conversion, Number and String Conversion.
- Related tags: f:convertDateTime, f:convertNumber, f:converter
- In our previous examples, we could accept departing and returning dates to be date/time types rather than string types [as expected]
- How to achieve:
- For other types of conversions, you have to use custom converters.
- To make use of the strategy, you have to write a class that will do the conversion work.
- Your class should implement: javax.faces.convert.Converter interface that has two methods that you must implement. One method takes input as String and returns an Object. Another method, takes an Object as the input and returns String.
- Methods
Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
- getAsObject: Returns an object
- getAsString: Returns String
- As you have access to the JSF context, and the corresponding user interface component in these methods- you will be able to greatly customize your converter
- How to use the custome converter:
- Define a converter in the configuration file (faces-config.xml) as follows where TerminalConverter is your custom converter class:
terminal.converter net.justetc.jsf.TerminalConverter
- From JSPs refer to a converter-id as defined in the configuration file. See example below:
-
or
- You can also, define/use the converter for all properties of a class such as Terminal as follows:
net.justetc.jsf.Terminal net.justetc.jsf.TerminalConverter
- In this last scenario, whenever JSF identifies a Terminal type data it converts the data using the TerminalConverter class.
In this example, as it encounters bus.origin to be of Terminal type, it will convert the origin to be a Terminal object though the user will just enter a String.
- Define a converter in the configuration file (faces-config.xml) as follows where TerminalConverter is your custom converter class:
From: http://sitestree.com/?p=4996
Categories:Java Short Notes
Tags:
Post Data:2011-05-14 09:49:51
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 6: Validating User Input in JSF #Java Short Notes
- Target: Intermediate level web-developers.
- Sample application for this article
- Video Tutorial for this article
- In web-application development, validating user inputs takes much efforts. JSF has made validations much easier than usual
- JSF Built-in Validators:
- validateDoubleRange: Checks that the value provided is a double value. You can also set a minimum and a maximum.
- validateLongRange: Validates the input to be a long. It also has the optional minimum and maximum parameters.
- validateLength: Validates the length of a string
- Without the minimum and the maximum values these validators actually do nothing
- You can also enforce a value as follows. If no value is provided, an error message is displayed
- You can also create your own custom validator that should implement javax.faces.validator.Validator interface.
- You have to implement the validate() method: validate(FacesContext arg0, UIComponent arg1, Object arg2) throws ValidatorException
- In the error condition, you should throw ValidatorException from the validate method
- Then you need to register the custom validator in the faces-config.xml file using a id as follows:
currency.validator net.justetc.jsf.CurrencyValidator
- From your JSP, you can refer to the validator as follows:
-
From: http://sitestree.com/?p=4997
Categories:Java Short Notes
Tags:
Post Data:2012-05-25 08:43:55
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 1: JSF Specifications #Java Short Notes
- JSF Specifications
- JSF is not standalone technology, you have to use it in conjunction with JSPs, Servlets, EJBs
- How to use JSF with Servlets and EJBs: In Servlet or EJB, explicitly create instances of UI components and use the UI classes directly
- JSF with JSPs: Use the JSF custom tag library with JSP
- To use JSF, you need to understand JSF lifecycle: take a look at JSF Lifecycle: Restore view, Apply request values, Process validations, Update model values, Invoke application, Render response
- How to install JSF: Current version of Sun's Application Server contains JSF and JSTL
- For Tomcat 5.5:
- Download JSF from http://java.sun.com/j2ee/javaserverfaces/download.html and JSTL from http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html.
- Put these Six JSF JARs into your project WEB-INF/lib folder or tomcat lib folder: commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jar, jsf-api.jar, and jsf-impl.jar
- Download JSF Jars
- Put these two JSTL JARs in the same way: jstl.jar and standard.jar
- JSF provides different custom actions as will be provided below:
- You can use these elements/controls/actions to collect user data, to display output, to validate user inputs, control the flow of the application dynamically/statically also, convert data from one type to another.
- HTML Custom Actions
Input: To create input elements
h:inputHidden, h:inputSecret,h:inputText, h:inputTextareaOutput:create output elementsh:message, h:messages,h:outputFormat, h:outputLabel,h:outputLink, h:outputText
Selection: Create selection elements like combo boxesh:selectBooleanCheckbox,h:selectManyCheckbox,h:selectManyListbox,h:selectManyMenu,h:selectOneListbox,h:selectOneMenu,h:selectOneRadio
Commands: Create form submission buttons or links
h:commandButton,h:commandLink
Miscellaneous
h:dataTable, h:form,h:graphicImage, h:panelGrid,h:panelGroup, h:column - JSF Core custom actions:
Converters:Standard
f:convertDateTime,f:convertNumber, f:converter
Listeners:Listener for a component
f:actionListener,f:valueChangeListener
Miscellaneous
f:attribute, f:loadBundle,f:param, f:verbatim
Selection
f:selectItem, f:selectItems
Validators:Standard
f:validateDoubleRange,f:validateLength ,f:validateLongRange ,f:validator
View: Create JSF view or sub-view
f:facet, f:subview, f:view - An example of JSF with JSP with Managed Bean Support
- You need a configuration file like faces-config.xml , or you can use any other file but you have to supply the file name in the web.xml file.
- To use a managed bean, you need to define a managed bean in the JSF configuration file with a name, class, and scope
- Also you need to define navigation rules in the configuration file. A navigation-rule defines the start page, a condition, and which page to navigate to when the condition occurs
- Create the managed bean class
- In your JSP, you should refer to the JSF tag libs and JSTL tag libs by
- Then in the JSP page you will be able to use the JSF tags and the managed beans directly
- A sample example with code
- Video Demonstration of the example JSF application create
- Details about other JSF features like: using managed beans, controlling page navigation, accessing JSF context data in beans, converting data, validating user inputs, using message bundles to support internationalization will be disucssed in another article.
From: http://sitestree.com/?p=4991
Categories:Java Short Notes
Tags:
Post Data:2012-10-30 13:33:53
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF: Lesson – 2: JSF Managed Beans #Java Short Notes
Codes for this article
Video Demonstration for this article
- Target: Intermediate level programmers and web-developers. Any programmer/web-developer can take a look.
- Pre-requisite: HTML, JSP, Servlet, Tomcat, J2EE, MVC, and JSF Introduction. Check the corresponding sections of this web-site, to have an idea on the required technology knowledge
- Pre-requisite: Download this sample JSF application
- Beans used by JSF enabled applications are called managed beans as they are created and managed by JSF
- JSF is based on the MVC architecture where beans provide the models
- To be used with JSF, a bean must have a no argument constructor. The bean can expose its properties with get or set methods for reading or writing from outside
- Beans can be used in two ways in JSF applications: The information required to create managed beans are provided in the configuration file (faces-config.xml), JSF uses value binding expressions or method binding expressions, to refer to the properties of the managed beans.
- Configuring Managed Beans
- Beans are configured in the faces-config.xml file. The file is usually provided under WEB-INF folder. Though from the web.xml file (using the javax.faces.CONFIG_FILES context parameter), you can refer to any other file where the configuration is provided.
- META-INF/faces-config.xml file can also be used
- Multiple configuration files can also be used. The file names should be mentioned in the web.xml file.
- Initialize Bean Properties
- Tags such as, value, null-value, list-entries, map-entries can be used to initialize bean properties in the configuration file. value can be used to set String type parameter, null-value is used to set an Object type property to null, list-entries is used to initialize a List type property, map-entries is used to initialize a Map type property. Check this file for examples - the target audience I assume have the background to understand it just by checking
- Accessing Bean properties
- Bind managed bean methods to expressions in JSP pages
- or : set flight property as the control is a JSF input control
- or : Retrieve value from the origin property.
- Access list property values: #{bus.times["1"]}
- Access Map property values: flight.airportNames.key, flight.airportNames[key]
- Similarly, you can also bind managed bean methods to expressions in JSP pages.
From: http://sitestree.com/?p=4993
Categories:Java Short Notes
Tags:
Post Data:2010-10-14 11:11:25
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
navigation control in jsf j2ee applications #Root
From: http://sitestree.com/?p=2754
Categories:Root
Tags:
Post Data:2015-10-25 05:23:26
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
using jsf with jsp tomcat 6 #Root
From: http://sitestree.com/?p=2756
Categories:Root
Tags:
Post Data:2015-10-25 05:24:40
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
jsf managed bean #Root
From: http://sitestree.com/?p=2752
Categories:Root
Tags:
Post Data:2015-10-25 05:21:54
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
JSF এ ইউজার ইনপুট ভেলিডেটিং করা
JSF এ ইউজার ইনপুট ভেলিডেটিং করাঃ
M A Razzak
• টার্গেট: ইন্টারমেডিয়েট লেভেল ওয়েব ডেভেলপার।
• এই নিবন্ধটি জন্য নমুনা এপ্লিকেশন পেতে ক্লিক করুনঃ http://salearningschool.com/codes/jsf/validation.rar
• এই নিবন্ধটি জন্য ভিডিও টিউটোরিয়াল পেতে ক্লিক করুনঃ http://www.justetc.net/knowledge/multimedia_training/displayArticle.php?table=TrainingVideos&articleID=10
• ওয়েব এপ্লিকেশন ডেভেলপমেন্টে ইউজার ইনপুট ভেলিডেটিং করা অনেক কস্টসাধ্য। কিন্তু JSF স্বাভাবিকের তুলনায় ভেলিডেশন অনেক সহজ করেছে।
• JSF বিল্ড-ইন ভেলিডেটর:
ভেলিডেট ডাবল রেঞ্জ : প্রদত্ত ভেলু একটি ডাবল ভেলু কিনা তা চেক করে। এছাড়াও আপনি একটি সর্বনিম্ন এবং সর্বোচ্চ ভেলু সেট করতে পারেন।
ভেলিডেট লং রেঞ্জ : ইনপুট লং কিনা তা ভেলিডেট করে। এটিরও একটি সর্বনিম্ন এবং সর্বোচ্চ প্যারামিটারের অপশন থাকে।
ভেলিডেট লেন্থ: এটি স্ট্রিং এর লেন্থ ভেলিডেট করে।
সর্বনিম্ন এবং সর্বোচ্চ মান ছাড়া এই ভ্যালিডেটর আসলে কিছই করতে পারেনা।
• নিম্নলিখিত ভাবে আপনি আপনি একটি মান নিরধারন করতে পারেন। কোন ভেলু প্রদান করা না হলে, একটি এরর ম্যাসেজ প্রদর্শন করে।
<h:inputText id="origin" value="#{bus.origin}" size="35" required="true"/>
• আপনার আপনার নিজস্ব ভেলিডেটর তৈরি করতে পারেন যা javax.faces.validator.Validator interface বাস্তবায়ন করে।
• আপনাকে অবশ্যই ভেলিডেট পদ্ধতি বাস্তবায়ন করতে হবে। ভেলিডেটর এক্সেপশনের মাধ্যমে (FacesContext arg0, UIComponent arg1, Object arg2) ভেলিডেট করতে হবে।
• এরর কন্ডিশনে আপনাকে ভেলিডেটর এক্সেপশনের হতে ভেলিডেট পদ্ধতি ছাড়তে হবে।
• এরপর আপনাকে নিচের আইডি ব্যবহার করে faces-config.xm ফাইলে কাস্টম ভেলিডেটর রেজিস্টার করতে হবে।
<validator>
<validator-id>currency.validator</validator-id>
<validator-class>net.justetc.jsf.CurrencyValidator</validator-class>
</validator>
• আপনার JSP থেকে আপনি নিচের মত ভেলিডেটর রেফার করেতে পারেন:
<h:inputText id="salary" value="#{employee.salary}">
<f:validator validatorId="currency.validator"/>
</h:inputText>
Written from:
http://salearningschool.com/displayArticle.php?table=Articles&articleID=875
Midsoft Solutions Inc is hiring for Sr. Software Developer – Java. 19+ more java jobs in Toronto, ON.
Scotiabank is hiring for Data Engineer- Hybrid. 6 more big data jobs in Toronto, ON.
|
Capgemini is hiring for Data Engineer. 19+ more big data jobs in Toronto, ON.
|
Arthur Grand Technologies Inc is hiring for Big Data Developer. 19+ more big data jobs in Toronto, ON.
|
Playlist: Anything Java
Playlist: Anything Java: https://www.youtube.com/playlist...
#SaLearningSchoolShopForSoulSitesTree, #SaLearningSchool, #ShopForSoul, #SitesTree
Starting Java training
basic file operations in java
basic java language concepts
bengali javascript debugging
data conversion in jsf applications
debugging javascript code
Docker and Vagrant Optional Java and/or PHP Platform
ejb application with bea weblogic eclipse
experiment eclipse ant
how to install maven
Installing Java platform with NetBeans
internationalization in jsf
Introduction to soa and apache axis
Java (basic) Interview Questions and Answers
java OCJP level 2
Java spring application demo
Java spring application demo
Java Spring Concepts
Java Spring Concepts
jsf managed bean
Moodle: LMS: Add a Paypal Subscription Button. Minimal HTML, CSS, JavaScript
navigation control in jsf j2ee applications
navigation control in jsf j2ee applications
object oriented concepts in java
spring boot CRUD in memory maven
spring boot CRUD in memory maven
step by step hibernate lesson 1
step by step spring inventory management
struts lesson 5 action object process request
struts lesson 6 handling request parameters with form beans
struts lesson 7 advanced struts actions
struts lesson 8 how to use properties file for internationalization and flexible message display
struts2 struts1 eclipse ant
struts2 struts1 eclipse ant
struts2 struts1 eclipse ant 2
struts2 struts1 eclipse ant 2
Trial Video: How to Create Servlets (In Bengali)
Trial Video: Life Cycle of Servlet (In Bengali)
Trial: Configure Index File, Load Servlet by Container
Trial: Generic Servlet
Trial: How Servlet Works, How Containers Handle Servlets, Service Method (Bengali)
Trial: HttpServlet: Java Based Web Application Development
Trial: Intro to Topics in Servlet-based Web Application Development. সারভ্লেট এর টপিক গুলো - জাভা
Trial: Read and Write Binary/Image Data using Servlet (in Bengali)
Trial: Servlet Attributes (In Bengali)
Trial: Servlet Interface
Trial: Servlet with Annotations (In Bengali)
Trial: Servlet: Request Dispatcher: Login Example
Trial: ServletConfig, ServletContext (in Bengali)
using jsf with jsp tomcat 6
using jsf with jsp tomcat 6
war file: deploy servlet/web application ()
Arthur Grand Technologies Inc is hiring for Java Developer. 19+ more java jobs in Toronto, ON.
|
#StackOverflow. The Overflow #122: Your salary shouldn’t be dictated by how good a negotiator you are
|
|
Data Science Jobs
SimplyHired |
ITExpertUS is hiring for Java Developer. 19+ more java jobs in Toronto, ON.
|
Data and Machine Learning Jobs
|
Ref: SimplyHired
Java Developer Opportunities
|
Reference: Simply Hired
Skills for Current Java Focused Jobs #Blog #Java
Strong object-oriented analysis, design, and programming experience
|
Core Java Continue reading Skills for Current Java Focused Jobs #Blog #Java |
Basic Java But Essential Knowledge for exams like SCJA, or to the project managers new to Java technologies #Computer Game Design #Java Short Notes
- By definition an enumerated type is a finite set of symbolic literals
- In Java an enumerated type is represented as first-class object.
- Enumerated type literals are allowed in case statements.
- The literals of an enumerated type may be of any valid Java identifier
- An interface may NOT contain any concrete method implementations
- An interface is NOT a class of any style.
- An interface defines a set of abstract methods that may have many implementations.
- An interface is NOT a member of a class.
- Both class associations and class compositions relationship may be of any multiplicity.
- compositions may also have navigation methods, but these methods must NOT pass references to the owned objects. This is usually achieved by passing back a copy of the object rather than the owned object itself. Composition implies that the owning object controls the life cycle of the owned object.
- Dependency:one object uses another object during computations.
- the portability of a Java application is NOT dependent
- upon whether information hiding was used. the class cannot protect bad assignments. For example, setting a negative value for an account balance.
- classes that do NOT support information hiding are NOT treated specially in Java
- Disadvantages of information hiding: Access to object
- attributes incur a runtime penalty.However, the Sun hotspot JVM usually can eliminate the added overhead by "inlining" the methods where they are called.
- It is time consuming to use methods to access object attributes rather than direct access.
- Information hiding does NOT restrict the reusability of a superclass.
- Interfaces are only contracts (declarations of public methods) and a program needs classes for actual behavior.
- NOT every class will have behavior that requires an explicit contract (interface).
- It is the reference variables to objects that need to be as generic as possible. This is the essence of the "program to an interface" principle.
- An interface cannot be instantiated using the new operator
- The minus symbol in a uml class diagram signifies private visibility
- the + symbol in a uml class diagram signifies public visibility
- encapsulation: all of its attributes be private and it provides appropriate public accessor and mutator methods.
- UML: attribute representation: - attr : int
- UML
- ? is NOT a valid multiplicity indicator.
- 0..* indicates zero or more multiplicity.
- 0..1 indicates zero or one multiplicity, which is how you can represent an optional association.
- ?..1 is NOT a valid multiplicity indicator.
- ? is NOT a valid multiplicity indicator.
- * is an abbreviation for 0..*.
- M is NOT a valid multiplicity indicator.
- ? is NOT a valid multiplicity indicator.
- 0..* is exactly how to indicate zero or more.
- M is NOT a valid multiplicity indicator.
- Enums and arrays make use of object references
- A source file can have zero package statements or one package statement.
- A source file automatically imports all classes of its package.
- java -version com.example.MyProgram: The Java interpreter prints the version information and exits.
- The Collections APIs contain interfaces for lists and sets.
- The Collections APIs are in the java.util package.
- the classes for TCP and UDP communication are contained in the java.net package.
- cell phone side of an application requires the micro edition and the server side with EJB requires the enterprise edition
- the J2SE platform has rich GUI capabilities, as well as IP communication capabilities allowing multiple, Internet-wide applications to exchange data.
- TCP/IP sockets are the basis of RMI.
- RMI may create new threads for each request.
- JMS is used to communicate with messaging services asynchronously.
- HTML does NOT provide interactive capabilities.
- HTML does NOT provide a rich set of UI components.
- HTML does provide navigation capabilities, such as hyperlinks.
- HTML does provide rich text formatting capabilities, such as tables and cascading style sheets.
- J2me include APIs for playing audio media.
- J2ME provides limited user interface components.
- J2ME applications usually execute on small devices with small screen resolution, which cannot support rich UI components.
- an Applet executes within a security sandbox that, by default, prohibits access to the user's filesystem.
- an Applet might fail to execute correctly (or at all) if the web browser does NOT have the appropriate JRE installed.
- an Applet does NOT have access to the web browser's cookie information.
- the default security sandbox does permit communication with the originating enterprise server.
- Applets execute in a security sandbox that does NOT permit access to files on the client system.
- Applets can be used to create animated games. However, Applets do NOT have access to gaming-specific APIs like J2ME applications do.
- Applets cannot connect to arbitrary Internet servers.
- Applets may connect to the server that delivered the Applet to access media files on that server.
- Applets can access other Applets on the same web page.
- Applets can access other Applets on the page through the AppletContext object supplied by the web browser.
- Swing (Richest GUI components in j2SE) has a broader GUI component set than AWT.
- MIDP is a J2ME (not J2SE) profile.
- JSF is a J2EE web-based UI component framework with only a limited component set.
- AWT has a more limited GUI component set than Swing
- SWT is NOT a standard J2SE technology.
- JSP is used to create dynamic HTML content. It does NOT handle business logic.
- JMS is the technology that handles asynchronous requests and performs the business logic of these requests.
- JDBC is a database communication technology and does NOT handle business logic.
- JNDI is a naming and directory service interface. It does NOT handle business logic.
- JNDI and JDBC support completely independent purposes in an application. JNDI is an interface to directory servers and JDBC is an interface to database servers.
- servlets and SQL support completely independent purposes in an application. Servlets respond to HTTP requests and SQL is used to communicate with relational databases.
- JavaMail uses SMTP (simple mail transfer protocol), which is used to send email from an application to users.
- JavaScript and EJB support completely independent purposes in an application. JavaScript provides interactivity to web pages and Enterprise JavaBeans provide business logic.
- JSP technology simplifies the creation of dynamic web pages.
- JSP technology is a server-side technology.
- JSP technology is NOT intended to be used to create business components.
- JSP technology is ideal for web designers who are NOT familiar with Java programming.
- JSP technology is NOT an integration technology.
- JSP is NOT an EJB technology
- servlets are NOT an EJB technology
- MDBs do NOT record client conversational state
- stateful session beans are used to record client conversational state
- stateless session beans do NOT record client conversational state
- entity beans are used to represent persistent data.
- message-driven beans handle asynchronous events.
- Session beans only handle synchronous events.
- session beans represent business processes and
- stateless session beans are client-independent. That is, they do NOT store conversational state.
- session beans do NOT exist in the web container
- stateless session beans are used to represent client-independent business processes.
- J2EE provides a rich and flexible programming model, but it is NOT simple
- J2EE infrastructure provides rich concurrency support in both the web and EJB tiers, which supports highly scalable application development.
- clustering is NOT directly supported by the J2EE specification. However, most vendor implementations of J2EE do support clustering.
- J2EE provides declarative transaction management.
- declarative transaction management is a required feature of the EJB container
- declarative user interface construction - is NOT part of the J2EE specification.
From: http://sitestree.com/?p=4909
Categories:Computer Game Design, Java Short Notes
Tags:
Post Data:2007-09-02 02:28:37
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Java/J2EE:Important Resources: Struts, Spring, Hibernate, JPA #Java Short Notes
Java/J2EE:Important Resources: Struts, Spring, Hibernate, JPA ...... .... ..... .... ... ... ... ... ... ... .. ..
Struts
Spring, Hibernate, JPA
JSF
- JSF 1.2 Java API
- JSF 1.2 Tag Library API
- JSF 1.1 Java API
- JSF 1.1 Tag Library API
- Apache MyFaces Documentation
- JSF Training Videos
Servlets & JSP
- Servlet 2.4 API. Supported by Tomcat 5.x and 6.x.
- JSP 2.0 API. Supported by Tomcat 5.x and 6.x.
- Servlet 2.5 API. Supported by Tomcat 6.x.
- JSP 2.1 API. Supported by Tomcat 6.x
Ajax, GWT, JavaScript
- GWT Docs Page
- GWT Java API
- JavaScript Reference: Core Objects
- JavaScript Reference: HTML DOM
- jQuery API
From: http://sitestree.com/?p=5116
Categories:Java Short Notes
Tags:
Post Data:2009-10-06 10:41:14
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Topics to Learn in Java Spring framework #Java Short Notes
Why Spring Framework?
- What's wrong with Java EE (EJB)
- Light-weight vs. heavy-weight containers
- Motivation for Spring
- Spring Background
Spring Framework Overview
- Spring features
- Spring light-weight container architecture
- Spring application context
- Inversion of Control (IoC) design pattern
- Dependency Injection (DI)
- Advantages of IoC/DI
- Design for testability
- Low coupling
- Code re-use
- Consistent architecture and configuration
- Easy-to-follow design
- Good OOP
Spring Installation and Configuration
- Spring libraries and dependancies
- XML configuration files
- Annotations
Spring IDE
- Overview
- Features
- Installation
- Editors, Wizards, Graphs, Views, Validators
Spring Persistence/DAO Support
- Overview
- JDBC
- DataSources via JNDI
- Templates
- Exception Translators
- Queries and updates
- Hibernate ORM
- Resource management and SessionFactory
- Templates
- Exception Translators
- Transactions (intro to AOP)
- API
Spring JMS
- Overview
- Templates
- Connection, Destination, Transaction management
- Sending and Receiving Messages (sync/async)
- Listeners
- Message-driven POJOs
Spring Testing
- Unit Testing
- Integration Testing
- Mocks, Stubs, Fixtures
- jUnit Integration
- Spring TestContext Framework
Spring MVC and WebFlow
- Overview
- The DispatcherServlet
- Configuration
- Controllers: simple, form, multi-action
- Views and view resolution: JSP/JSTL
- Forms with Spring tag libraries
- Data-binding, Property Editors, and Validation
- I18N
- Exception handling
- Convention over configuration with annotation-driven controllers
- Overview of Spring WebFlow
- Integration with other frameworks - e.g. Sturts, JSF, Tapestry, WebWork (as requested)
Spring AOP
- Overview
- Concepts
- Proxies
- @AspectJ vs Spring AOP
- API
- Built-in aspects
- Defining and using aspects
Spring Security (Acegi) Framework
- Overview
- Installation
- Architecture
- Configuration
- Web Security
- AOP-based security
- Integration
Final Thoughts
- Overview of Spring JMX
- Overview of Spring Remoting
- New features in Spring 2.5
- Annotation vs. XML configuration (wiring)
- Direction of Spring Framework
- Best practices and architectural/design patterns
From: http://sitestree.com/?p=5119
Categories:Java Short Notes
Tags:
Post Data:2012-05-19 07:47:35
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Java Skills for Job #Java Short Notes
- AWT
- Swing
- JSF
- Applet
- Midlet
- JDBC
- JSP
- Servlet
- Java Beans
- EJB
- J2ME
- RMI
- JNDI
- Network Programming
- XML processing
- Web Services and SOAP
- JavaFX
- Java Connector
- Java Mail
- Java AVK (Application Verification Kit)
- Java ACC
- Java Message Service API
- Java Persistence API
- Java Transaction API
- Java Transaction Service
- Hibernate
- Struts
- Spring
- Eclipse
- Netbeans IDE
- IntelliJ
- IBM Websphere RAD Workspace
- BEA Weblogic Workspace
- Tomcat
- JBOSS
- Websphere
- BEA Weblogic
- Sun Java Server
- Ant
- Maven
From: http://sitestree.com/?p=5031
Categories:Java Short Notes
Tags:
Post Data:2009-03-21 02:13:26
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Key J2EE Components : Basic Concepts with Examples #Java Short Notes
- Java EE 5 (J2EE 5) uses XML deployment descriptors for the configuration of the web-applications and web-components.
- What Java EE provides? It provides the internal framework/structure/system level capability/system-level infrastructure to support large enterprise level applications with features like distributed database, distributed computing , security, and transaction management.
- J2EE also provides specifications for Containers, Connectors, Interfaces, Communications among different components for enterprise applications
- J2EE is J2SE based, it supports all of J2SE
- J2EE in addition to Swing and AWT introduces JSF for user interface creations
- Sun provides the J2EE specifications and a reference implementation. Anyone can re-implement the complete specification. Hence, if you develop applications based on the core J2EE, it should be compatible across different vendors who later re-implemented J2EE.
- However, J2EE does not cover 100% of the requirements of all types of enterprise applications, hence vendors usually add values/extra features to their implementations.
- J2EE provides multi-tier application development
- Elements of J2EE
- Clients: Fat Clients: A console application, and JFC, Swing, AWT based GUI applications. Thin clients: Browser based client applications
- Servers: Connect client components to the business logic.
- Server side components: Web-Components: JSPs, Servlets. Business components: EJBs.
- J2EE containers provide the support/framework/infrastructure for these server side components. Web Container contains JSPs/Servlets. EJB Container contains EJBs
- Some concepts in J2EE
- Containers, JSF, JDBC, XML Support, Web-Services, Transaction Management, Security
- Servlet: Mostly for Processing/calculations: From The clients, you can refer to a Servlet for example in HTML Form Actions. The Servlet runs in the server, does required processing and returns HTML web-page to the clients.
- JSP: Mostly for user interfaces, can also include processing using Java codes
- JSF: JSF is used to create rich user interfaces in conjunction with JSPs and Servlets.
- JSF provides API based server side user interface creation
- JDBC provides APIs to access relational databases. Enterprise applications very often will store information in databases. JDBC helps to access these information.
- EJBs evolved on RMI's limitations to support enterprise applications. EJB components contain business logic.
- EJBs are of three types: entity beans, session beans, message beans
- J2EE 5 XML Support Technologies
- JAXP: DOM based processing. SAX: Stream based processing
- JAXB: Mapping between XML and Java classes
- JAXR: XML Registries
- JAXM for messaging
- JAX-RPC: XML based RPC
- JAXR, JAXM, and JAX-RPC: provide support for SOAP and web-services
- Web-services: Here functions/operations are provided as web-based services. Others can call and make use of these services. Great for B2B communications and integrations.
- Web-services: Related concepts: WSDL: Describes the services provided - Web Service Description Language. Service Registries such as ebXML, UDDI. JAXR API can access these registries. SOAP: The protocol for communications (web-services).
- Transaction Management: Java EE including EJBs provides transaction management support.
- J2EE also provides security supports such as role-based authorization, both declarative and programmatic securities.
From: http://sitestree.com/?p=4990
Categories:Java Short Notes
Tags:
Post Data:2011-02-12 03:58:54
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Servlet, JSP Specifications #Java Short Notes
From: http://sitestree.com/?p=4930
Categories:Java Short Notes
Tags:
Post Data:2009-10-10 10:47:36
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Java Spring Topics: What spring framework brings to the table #Java Short Notes
Java Spring Topics
Knowing the buzzwords does not make anyone a good developer. However, it helps. Being expert in a technology like Spring in one day is not possible, but initially getting familiar with all the aspects is helpful as you will know which Spring feature is required to solve the current problem/situation. Then you can just explore and use that feature. It can always help the software engineers/software architects/project managers/product managers - as it will help to select technologies to use.
- Traditional way of resolving dependencies - binding interfaces to implementations using a Factory Pattern: Spring does it all using XML.
- How to write a simple Spring web application: Struts MVC as the front-end, Spring as the middle-tier, Hibernate for the back-end.
- BeanFactory: the heart of Spring. Topics to learn: BeanFactory Life Cycle, bean definitions, bean properties, dependencies, autowiring, making singleton beans versus prototypes, inversion of control
- Spring MVC framework: DispatcherServlet, various controllers, handler mappings, view resolvers, validation and internationalization, Spring's JSP tags
- Advanced MVC: validation and page decoration, Tiles and SiteMesh to decorate a web application, handling validation and using it in the web business layers, handling exceptions in the control layers, upload files, and send emails
- View Options: JSP, Velocity, FreeMarker, XSLT, PDF and Excel
- JasperReports: open source Java reporting tool, excellent tool for rendering printable pages. Supports: PDF, HTML, XLS, CSV, XML
- Persistence Strategies: Hibernate, JDBC or iBATIS (if database or pre-written sqls are already there)
- Testing Spring Applications: test-driven spring development. Tools: Easy-Mock, jMock, DBUnit. Controller testing: Cactus for in-container testing, Spring Mocks for Out of container testing. jWebUnit and Canoo's WebTest for testing web interface
- AOP: Aspect Oriented Programming
- Transactions: How spring simplifies declarative and programmatic transactions
- How to integrate other web-framework into Spring. Web-frameworks: JSF, Struts, Tapestry, WebWork
- Security: Authentication and authorization using traditional container managed J2EE security features and Acegi Security Framework for Spring. Acegi: protect and prevent method invocations on Spring managed beans, configure Access Control Lists (ACLs)
- Advanced Form Processing: Using forms and handling common issues (handling non-String types like Integer, Date, and Boolean, drop down lists, check boxes, editing nested objects). Multi-page forms: AbstractWizardFormController, Spring Web Flow
From: http://sitestree.com/?p=4921
Categories:Java Short Notes
Tags:
Post Data:2010-05-08 00:57:04
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
Spring Applications: Examples #Java Short Notes
- equinox-jsf-ch11-completed.tar.gz
- equinox-jsf-ch11-completed.zip
- equinox-jsf-ch11.tar.gz
- equinox-jsf-ch11.zip
- equinox-tapestry-ch11-completed.tar.gz
- equinox-tapestry-ch11-completed.zip
- equinox-tapestry-ch11.tar.gz
- equinox-tapestry-ch11.zip
- equinox-webwork-ch11-completed.tar.gz
- equinox-webwork-ch11-completed.zip
- equinox-webwork-ch11.tar.gz
- equinox-webwork-ch11.zip
- myusers-after-ch6.tar.gz
- myusers-after-ch6.zip
- myusers-ch10-completed.tar.gz
- myusers-ch10-completed.zip
- myusers-ch10.tar.gz
- myusers-ch10.zip
- myusers-ch2-completed.tar.gz
- myusers-ch2-completed.zip
- myusers-ch2.tar.gz
- myusers-ch2.zip
- myusers-ch4-completed.tar.gz
- myusers-ch4-completed.zip
- myusers-ch4.tar.gz
- myusers-ch4.zip
- myusers-ch5-completed.tar.gz
- myusers-ch5-completed.zip
- myusers-ch5.tar.gz
- myusers-ch5.zip
- myusers-ch6-completed.tar.gz
- myusers-ch6-completed.zip
- myusers-ch6.5-completed.tar.gz
- myusers-ch6.5-completed.zip
- myusers-ch6.5.tar.gz
- myusers-ch6.5.zip
- myusers-ch6.tar.gz
- myusers-ch6.zip
- myusers-ch7-completed.tar.gz
- myusers-ch7-completed.zip
- myusers-ch7.tar.gz
- myusers-ch7.zip
- myusers-ch8-completed.tar.gz
- myusers-ch8-completed.zip
- myusers-ch8.tar.gz
- myusers-ch8.zip
- myusers-ch9-completed.tar.gz
- myusers-ch9-completed.zip
- myusers-ch9.tar.gz
- myusers-ch9.zip
From: http://sitestree.com/?p=4913
Categories:Java Short Notes
Tags:
Post Data:2006-11-11 03:02:48
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
MVC : Struts : Java : Industry Web Application #Java Short Notes
Industries use frameworks for application development quite often. For example: Java concepts like JSP, Servlet, Swing, Bean, JDBC can be used directly to create web-applications but when such applications become big, it becomes difficult to maintain and develop them further. Hence, frameworks like struts are used to develop large web-based Java applications. This makes maintenance and further development easier. If you need to write a very simple web application with a few pages, then you might consider using JSP/Servlet directly otherwise Struts like frameworks are better options.Struts-1 uses the concept Model View Architecture (MVC) and provides the controller. In MVC model, Model represents business logic, View represents user interfaces, and Controller represents/controls control flow of the application. Struts' control layer is based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Apache Commons packages, like BeanUtils and Chain of Responsibility. For the Model, struts-1 framework can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, the framework works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.The framework's Controller acts as a bridge between the application's Model and the web View. When a request is received, the Controller invokes an Action class. The Action class consults with the Model to examine or update the application's state. The framework provides an ActionForm class to help transfer data between Model and View.Struts-1 Configuration-----------------------web.xml is one of the configuration files. It is an XML-formatted file that works as a deployment descriptor. struts-config.xml is another resource file to initialize the applications resources. These resources include ActionForms to collect input from users, ActionMappings to direct input to server-side Actions, and ActionForwards to select output pages.Sample struts-config.xml file. Other resources like Validators can be initialized here.
From: http://sitestree.com/?p=4787
Categories:Java Short Notes
Tags:
Post Data:2010-03-13 02:59:40
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada