The document discusses using the ui:repeat tag inside composite components in JSF 2.0. It provides an example of a component that takes a list of names as an attribute and renders them using ui:repeat. The component file defines the interface and implementation, and the main file declares the namespace and uses the component, passing the list of names.
The document discusses advanced features of the AjaxTags Library including autocomplete textboxes that populate associated values in other textboxes. It provides an example of an autocomplete textbox that populates a secondary textbox with a linked Spanish word when an English animal is selected. The server-side code returns an XML list with names and values to map selections to the secondary field. Training courses are also advertised on Ajax, Java EE and other technologies.
The Solar Framework for PHP 5 (2010 Confoo)Paul Jones
This presentation is a whirlwind tour of the Solar framework for PHP 5. After a short bit of background, the presentation will outline the major concepts in Solar: everything is a library, the unified constructor, unified configuration, inherited configuration and localization, unified factory and adapter systems, lazy-loading registry, and the dependency-injection system. Next is an overview of how the dynamic dispatch cycle works in Solar, and how it compares to other framework dispatch cycles. From there we will move on to the SQL system, including the MysqlReplicated adapter, and lead into the ORM system. The ORM overview will briefly cover models, collections, records, automated filters, automated form generation, and more. After discussing the authentication layer, CLI tooling, and command-line controllers, it will wrap up with a brief discussion of Solar project architecture, and a short note on Solar's performance in relation to other popular frameworks.
This document provides instructions for creating a Struts portlet within Liferay. It describes defining configuration files like portlet-ext.xml, struts-config.xml, and tiles-defs.xml to set up the portlet's actions and views. Key steps include using struts-config.xml to define the page flow, tiles-defs.xml to define the page layout, and creating a JSP view. The tutorial also explains deploying the portlet and checking that the files were correctly configured.
This document provides an overview of servlets and JavaServer Pages (JSP) technology. It discusses what servlets and JSP are, how they are used to dynamically generate web pages, and their advantages over traditional CGI. It also provides information on installing Tomcat and Eclipse, deploying and running web applications from Eclipse, and creating new web applications in Eclipse.
Maven is a build tool used to manage Java projects and automate build processes. It is based on the Project Object Model (POM) and uses repositories to retrieve dependencies. Maven projects have a standard directory structure and are composed of parent projects and child modules. The POM defines project details like dependencies, reports, and build configuration. Maven can generate artifacts like JARs, WARs, and EARs through its plugins and goals. It handles tasks like compiling, testing, packaging, and deploying in an automated way.
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010Arun Gupta
The presentation outlines new features in JSF 2.0 including Facelets for better templating and error handling, composite components for reusable UI components, integrated Ajax capabilities, partial state saving for smaller page sizes, view parameters for passing request parameters to managed beans, system events for lifecycle hook points, and resources for images, JavaScript and CSS. It also discusses annotations replacing XML configuration and project stages for development vs production.
Zend Framework 2 provides a modular structure and tools for building web applications in PHP. It includes modules for authentication, authorization, forms, routing, translation and more. The framework uses a Model-View-Controller architecture with configurable events. Modules can be configured and extended through PHP files and configuration is cached for improved performance. Views can return different response types like HTML or JSON. Forms, routing, access control and internationalization are supported out of the box.
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels and accordion panels using jQuery UI.
The document discusses advanced features of the AjaxTags Library including autocomplete textboxes that populate associated values in other textboxes. It provides an example of an autocomplete textbox that populates a secondary textbox with a linked Spanish word when an English animal is selected. The server-side code returns an XML list with names and values to map selections to the secondary field. Training courses are also advertised on Ajax, Java EE and other technologies.
The Solar Framework for PHP 5 (2010 Confoo)Paul Jones
This presentation is a whirlwind tour of the Solar framework for PHP 5. After a short bit of background, the presentation will outline the major concepts in Solar: everything is a library, the unified constructor, unified configuration, inherited configuration and localization, unified factory and adapter systems, lazy-loading registry, and the dependency-injection system. Next is an overview of how the dynamic dispatch cycle works in Solar, and how it compares to other framework dispatch cycles. From there we will move on to the SQL system, including the MysqlReplicated adapter, and lead into the ORM system. The ORM overview will briefly cover models, collections, records, automated filters, automated form generation, and more. After discussing the authentication layer, CLI tooling, and command-line controllers, it will wrap up with a brief discussion of Solar project architecture, and a short note on Solar's performance in relation to other popular frameworks.
This document provides instructions for creating a Struts portlet within Liferay. It describes defining configuration files like portlet-ext.xml, struts-config.xml, and tiles-defs.xml to set up the portlet's actions and views. Key steps include using struts-config.xml to define the page flow, tiles-defs.xml to define the page layout, and creating a JSP view. The tutorial also explains deploying the portlet and checking that the files were correctly configured.
This document provides an overview of servlets and JavaServer Pages (JSP) technology. It discusses what servlets and JSP are, how they are used to dynamically generate web pages, and their advantages over traditional CGI. It also provides information on installing Tomcat and Eclipse, deploying and running web applications from Eclipse, and creating new web applications in Eclipse.
Maven is a build tool used to manage Java projects and automate build processes. It is based on the Project Object Model (POM) and uses repositories to retrieve dependencies. Maven projects have a standard directory structure and are composed of parent projects and child modules. The POM defines project details like dependencies, reports, and build configuration. Maven can generate artifacts like JARs, WARs, and EARs through its plugins and goals. It handles tasks like compiling, testing, packaging, and deploying in an automated way.
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010Arun Gupta
The presentation outlines new features in JSF 2.0 including Facelets for better templating and error handling, composite components for reusable UI components, integrated Ajax capabilities, partial state saving for smaller page sizes, view parameters for passing request parameters to managed beans, system events for lifecycle hook points, and resources for images, JavaScript and CSS. It also discusses annotations replacing XML configuration and project stages for development vs production.
Zend Framework 2 provides a modular structure and tools for building web applications in PHP. It includes modules for authentication, authorization, forms, routing, translation and more. The framework uses a Model-View-Controller architecture with configurable events. Modules can be configured and extended through PHP files and configuration is cached for improved performance. Views can return different response types like HTML or JSON. Forms, routing, access control and internationalization are supported out of the box.
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels and accordion panels using jQuery UI.
Maven is a build tool that manages Java projects and automates tasks like compiling code, running tests, generating reports and managing dependencies. It uses a Project Object Model (POM) file to store build configuration and metadata. Maven projects can contain parent and child subprojects, each with their own POM. It builds projects in a defined order and generates artifacts like JARs and WARs that can be deployed. Maven plugins are used to perform tasks like compiling, testing, packaging and deploying the project.
Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0Arun Gupta
The document outlines new features in Java Server Faces (JSF) 2.0 including Facelets, composite components, integrated Ajax support, partial state saving, view parameters, system events, and resources. It provides examples of how these features can be used and notes they were inspired by other frameworks. The development and release of any features described remains at the sole discretion of Oracle.
This document describes how to create and manage Java projects using Maven. It discusses creating a new Maven project and the directory structure for the project and subprojects. The project object model (POM) defines project details like management information, dependencies, and reports. The POM specifies source locations, dependencies, and reports to generate like JUnit and Javadoc reports.
This document discusses using Maven to build and manage Java projects. It describes how to create a new Maven project with different components like EJBs, data, and web applications. It outlines the directory structure for the overall project and each sub-project. It also explains the project object model (POM) file which is used to describe the project, its dependencies, build configuration, and reports. The POM sections cover project management details, dependencies, build configuration including source and test directories, and defined reports.
The document provides an overview of the architecture and anatomy of Drupal 6.0. It discusses the core components including the user system, node system, modules, themes, and database. Key points are that Drupal is built on a modular architecture, uses hooks to allow modules to interact and modify functionality, and separates data/logic from presentation using a theme engine and template files. Modules control application logic and interact with the database while themes determine the user interface and output.
This document provides an overview of key concepts in Drupal 8 including common framework subsystems, routing, the form API, libraries, and multilingual configuration. It also encourages migrating Drupal 7 modules to Drupal 8 and leveraging object-oriented programming practices and dependency injection. Developers are directed to documentation and examples for implementing routing, forms, plugins, entities and more according to Drupal 8 standards.
Building and managing java projects with maven part-IIIprinceirfancivil
This document discusses using Maven to build and manage Java projects. It describes Maven's property processing, build process design for a sample service project with common, EJB and web application components, and how to configure subprojects for the data, EJB and web modules. It also covers tasks like XDoclet processing, web services generation, EJB jar packaging, and finally assembling the entire application as an EAR file using the Maven reactor plugin.
This document provides tips and best practices for staying sane as a Drupal developer. It discusses that 80% of building Drupal sites is configuration, while the remaining 20% requires customization. It emphasizes using Drupal APIs and hooks, playing well with contributed modules, and following coding standards and best practices like version control, automated testing and deployment, and documentation.
This document describes using DataWeave in Mule ESB to transform XML input into a Java object. It includes an XML input file, Mule flow configuration with a DataWeave transform, and a User Java class. The DataWeave transform defines a 'user' object type and maps the XML elements to fields on the User class, setting the payload to a User instance.
This document provides an overview of Maven, including:
- Maven is a build tool that manages Java projects and dependencies through XML POM files.
- Projects are built from local and remote repositories of dependencies specified in POMs.
- The document outlines the directory structure for Maven projects including components, source files, and generated artifacts.
- Maven plugins are used to generate documentation, compile code, test, package artifacts and more through goals defined in POM files.
Shiny, Let’s Be Bad Guys: Exploiting and Mitigating the Top 10 Web App Vulner...Michael Pirnat
This document provides an agenda for a session on exploiting and mitigating the top 1 web application vulnerabilities according to OWASP. The session will run from 9:00 AM to 12:20 PM with a 20 minute break at 10:50 AM and a lunch break from 12:20 PM to 1:20 PM. The session will discuss injection attacks, broken authentication and session management, cross-site scripting, insecure direct object references, security misconfiguration, sensitive data exposure, missing function level access control, cross-site request forgery, using known vulnerable components, and unvalidated redirects and forwards. Prevention strategies and Django-specific advice will also be provided for each vulnerability.
An overview of the Django rapid application development framework. Topics include the history of the framework, an architectural overview, how to get started, and a brief comparison to Ruby on Rails.
This document discusses the Model-View-Controller (MVC) architecture and how to implement it using servlets and JSP. It begins with an overview of MVC and the benefits of combining servlets and JSP. It then covers implementing MVC with RequestDispatcher to forward requests from servlets to JSP pages, and how to handle relative URLs and share data between the servlet and JSP using request, session, and application scopes. It provides examples of using beans to represent data and accessing bean properties in JSP.
YUI PHP Loader helps manage your JavaScript and CSS dependencies in any PHP-based project; it comes preloaded with YUI metadata for both YUI 2 and YUI 3.
This document provides an overview of using Java Server Pages (JSPs), resources, and internationalization in SAP Portals. It discusses how JSPs are compiled to Portal Components and integrated with HTMLB tags. It describes two methods for JSP integration: JSPDynpage, which uses a controller class and beans, and JSPNative, which compiles a single JSP directly to a component. The document also reviews using different types of resources like images, scripts, and XML files from components and recommends a file structure. Finally, it mentions internationalization at a high level.
JavaServer Faces 2.0 - JavaOne India 2011Arun Gupta
The document outlines the key features and enhancements of Java Server Faces 2.0, including improved ease of development through Facelets and composite components, integrated Ajax support, HTTP GET support, validation integration with Bean Validation, and runtime performance improvements through partial state saving and behaviors. It provides code samples to illustrate many of the new capabilities.
The document provides an overview of a JavaScript crash course, including topics that will be covered such as core language syntax, strings, regular expressions, functions, and objects. It also advertises customized Java EE training courses developed and taught by Marty Hall on various technologies including servlets, JSP, JSF, Struts, Ajax, GWT, Spring and more. The training is available both at public venues and customized on-site versions at organizations.
The document provides an overview of a JavaScript crash course, including topics that will be covered such as core language syntax, strings, regular expressions, functions, and objects. It also advertises customized Java EE training courses developed and taught by Marty Hall on various technologies including servlets, JSP, JSF, Struts, Ajax, GWT, Spring and more. The training is available both at public venues and customized on-site versions at organizations.
The document summarizes jQuery UI tabs that can be used to create static tabbed panels on a webpage. Key points include:
1) The tabs() function can be called on a div container to turn it into a tabbed panel with static content.
2) HTML includes a ul list of tabs links and divs for each tab's content.
3) Clicking tabs changes the visible content div using anchor hrefs that match the div IDs.
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels, accordion panels, and using the date picker widget.
Microsoft PowerPoint - <b>jQuery</b>-3-UI.pptxtutorialsruby
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels and accordion panels using jQuery UI.
JSF 2.0 provides many new features and improvements over JSF 1.x including built-in Ajax support, easier component development through annotations and resource handling, additional scopes like ViewScope, and a Page Description Language (PDL) based on Facelets. It aims to address issues with JSF 1.x like performance, exception handling, and reduce unnecessary configuration through conventions over configuration.
Maven is a build tool that manages Java projects and automates tasks like compiling code, running tests, generating reports and managing dependencies. It uses a Project Object Model (POM) file to store build configuration and metadata. Maven projects can contain parent and child subprojects, each with their own POM. It builds projects in a defined order and generates artifacts like JARs and WARs that can be deployed. Maven plugins are used to perform tasks like compiling, testing, packaging and deploying the project.
Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0Arun Gupta
The document outlines new features in Java Server Faces (JSF) 2.0 including Facelets, composite components, integrated Ajax support, partial state saving, view parameters, system events, and resources. It provides examples of how these features can be used and notes they were inspired by other frameworks. The development and release of any features described remains at the sole discretion of Oracle.
This document describes how to create and manage Java projects using Maven. It discusses creating a new Maven project and the directory structure for the project and subprojects. The project object model (POM) defines project details like management information, dependencies, and reports. The POM specifies source locations, dependencies, and reports to generate like JUnit and Javadoc reports.
This document discusses using Maven to build and manage Java projects. It describes how to create a new Maven project with different components like EJBs, data, and web applications. It outlines the directory structure for the overall project and each sub-project. It also explains the project object model (POM) file which is used to describe the project, its dependencies, build configuration, and reports. The POM sections cover project management details, dependencies, build configuration including source and test directories, and defined reports.
The document provides an overview of the architecture and anatomy of Drupal 6.0. It discusses the core components including the user system, node system, modules, themes, and database. Key points are that Drupal is built on a modular architecture, uses hooks to allow modules to interact and modify functionality, and separates data/logic from presentation using a theme engine and template files. Modules control application logic and interact with the database while themes determine the user interface and output.
This document provides an overview of key concepts in Drupal 8 including common framework subsystems, routing, the form API, libraries, and multilingual configuration. It also encourages migrating Drupal 7 modules to Drupal 8 and leveraging object-oriented programming practices and dependency injection. Developers are directed to documentation and examples for implementing routing, forms, plugins, entities and more according to Drupal 8 standards.
Building and managing java projects with maven part-IIIprinceirfancivil
This document discusses using Maven to build and manage Java projects. It describes Maven's property processing, build process design for a sample service project with common, EJB and web application components, and how to configure subprojects for the data, EJB and web modules. It also covers tasks like XDoclet processing, web services generation, EJB jar packaging, and finally assembling the entire application as an EAR file using the Maven reactor plugin.
This document provides tips and best practices for staying sane as a Drupal developer. It discusses that 80% of building Drupal sites is configuration, while the remaining 20% requires customization. It emphasizes using Drupal APIs and hooks, playing well with contributed modules, and following coding standards and best practices like version control, automated testing and deployment, and documentation.
This document describes using DataWeave in Mule ESB to transform XML input into a Java object. It includes an XML input file, Mule flow configuration with a DataWeave transform, and a User Java class. The DataWeave transform defines a 'user' object type and maps the XML elements to fields on the User class, setting the payload to a User instance.
This document provides an overview of Maven, including:
- Maven is a build tool that manages Java projects and dependencies through XML POM files.
- Projects are built from local and remote repositories of dependencies specified in POMs.
- The document outlines the directory structure for Maven projects including components, source files, and generated artifacts.
- Maven plugins are used to generate documentation, compile code, test, package artifacts and more through goals defined in POM files.
Shiny, Let’s Be Bad Guys: Exploiting and Mitigating the Top 10 Web App Vulner...Michael Pirnat
This document provides an agenda for a session on exploiting and mitigating the top 1 web application vulnerabilities according to OWASP. The session will run from 9:00 AM to 12:20 PM with a 20 minute break at 10:50 AM and a lunch break from 12:20 PM to 1:20 PM. The session will discuss injection attacks, broken authentication and session management, cross-site scripting, insecure direct object references, security misconfiguration, sensitive data exposure, missing function level access control, cross-site request forgery, using known vulnerable components, and unvalidated redirects and forwards. Prevention strategies and Django-specific advice will also be provided for each vulnerability.
An overview of the Django rapid application development framework. Topics include the history of the framework, an architectural overview, how to get started, and a brief comparison to Ruby on Rails.
This document discusses the Model-View-Controller (MVC) architecture and how to implement it using servlets and JSP. It begins with an overview of MVC and the benefits of combining servlets and JSP. It then covers implementing MVC with RequestDispatcher to forward requests from servlets to JSP pages, and how to handle relative URLs and share data between the servlet and JSP using request, session, and application scopes. It provides examples of using beans to represent data and accessing bean properties in JSP.
YUI PHP Loader helps manage your JavaScript and CSS dependencies in any PHP-based project; it comes preloaded with YUI metadata for both YUI 2 and YUI 3.
This document provides an overview of using Java Server Pages (JSPs), resources, and internationalization in SAP Portals. It discusses how JSPs are compiled to Portal Components and integrated with HTMLB tags. It describes two methods for JSP integration: JSPDynpage, which uses a controller class and beans, and JSPNative, which compiles a single JSP directly to a component. The document also reviews using different types of resources like images, scripts, and XML files from components and recommends a file structure. Finally, it mentions internationalization at a high level.
JavaServer Faces 2.0 - JavaOne India 2011Arun Gupta
The document outlines the key features and enhancements of Java Server Faces 2.0, including improved ease of development through Facelets and composite components, integrated Ajax support, HTTP GET support, validation integration with Bean Validation, and runtime performance improvements through partial state saving and behaviors. It provides code samples to illustrate many of the new capabilities.
The document provides an overview of a JavaScript crash course, including topics that will be covered such as core language syntax, strings, regular expressions, functions, and objects. It also advertises customized Java EE training courses developed and taught by Marty Hall on various technologies including servlets, JSP, JSF, Struts, Ajax, GWT, Spring and more. The training is available both at public venues and customized on-site versions at organizations.
The document provides an overview of a JavaScript crash course, including topics that will be covered such as core language syntax, strings, regular expressions, functions, and objects. It also advertises customized Java EE training courses developed and taught by Marty Hall on various technologies including servlets, JSP, JSF, Struts, Ajax, GWT, Spring and more. The training is available both at public venues and customized on-site versions at organizations.
The document summarizes jQuery UI tabs that can be used to create static tabbed panels on a webpage. Key points include:
1) The tabs() function can be called on a div container to turn it into a tabbed panel with static content.
2) HTML includes a ul list of tabs links and divs for each tab's content.
3) Clicking tabs changes the visible content div using anchor hrefs that match the div IDs.
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels, accordion panels, and using the date picker widget.
Microsoft PowerPoint - <b>jQuery</b>-3-UI.pptxtutorialsruby
The document provides an overview and examples of using the jQuery UI library to add rich interfaces to web applications. It discusses widgets like tabbed panels, accordion panels, and date pickers. It covers downloading and installing jQuery UI, and provides code examples for creating static and dynamic tabbed panels and accordion panels using jQuery UI.
JSF 2.0 provides many new features and improvements over JSF 1.x including built-in Ajax support, easier component development through annotations and resource handling, additional scopes like ViewScope, and a Page Description Language (PDL) based on Facelets. It aims to address issues with JSF 1.x like performance, exception handling, and reduce unnecessary configuration through conventions over configuration.
The document provides an overview of the Spring framework and instructions for setting up a simple Spring example project in Eclipse. It introduces the core concepts of Spring including dependency injection and inversion of control. It then demonstrates a simple example where two shape classes (Rectangle and Circle) implement a Shape interface and are configured as Spring beans in an XML file. A driver class loads the configuration file and retrieves the shape objects by name to loosely couple the code from the specific shape implementations.
Andy Bosch - JavaServer Faces in the cloudAndy Bosch
The document discusses using JavaServer Faces (JSF) 2.x web applications on Google App Engine (GAE). It begins with an introduction to GAE and provides steps for a "HelloWorld" application. It then covers key aspects of JSF 2.0 and considerations for using it with GAE, such as workarounds for known issues. The document demonstrates some JSF 2.0 features like composite components and Ajax. It also discusses component libraries that can be used with GAE and JSF, such as PrimeFaces. In conclusion, it provides resources for further information.
This document discusses web applications and their structure. It begins by defining what a web application is - a single directory or file that bundles together related files like servlets, JSP pages, HTML files, and configuration files. It then discusses the standard structure of web applications, including where different file types like Java code, web content, and configuration files are typically located. The document provides an example of a typical deployment structure.
This document discusses web applications and their structure. It begins by defining what a web application is - a single directory or file that bundles together servlets, JSP pages, HTML files, classes and other files. It then discusses the standard structure of web applications, including where different file types like JSP pages, classes and the deployment descriptor web.xml are located. The document provides an example of a typical deployment structure.
The document provides an overview of servlet basics, including:
- The main job of a servlet is to read data from the client request, generate a response, and send data back to the client.
- A simple "Hello World" servlet is presented that generates plain text. Another example generates HTML output.
- Helper classes can be used to avoid duplicating code across servlets.
- Servlets are given URLs either through the @WebServlet annotation or by mapping in the web.xml file.
- The servlet life cycle and debugging strategies are briefly discussed. Advanced topics like the service method are also covered.
This intensive workshop features the latest innovation in JavaServer Faces technology: JSF 2 composite components! With this exciting new feature, JSF 2 delivers on the promise of simplifying UI development and makes it easy to design, implement, package, and reuse custom UI components in Java web applications. In this session, participants will learn about the current evolution of JavaServer Faces technology and discover the state of the art of user interface development for Java web applications. Experienced Java trainer and JSF author Ian Hlavats provides an in-depth introduction to JSF 2 composite components and guides participants through an informative lecture and hands-on lab exercises geared towards developing a Java web application using JSF 2 composite components. After completing this workshop, participants will have demonstrated the knowledge and ability to customize a Java web application for JSF 2, design JSF 2 UI components, implement custom UI components using the Facelets View Declaration Language (VDL), add resources such as images and cascading stylesheets to a composite UI component, package composite components as part of a Java web application, and deploy a JSF 2 web application to a Java application server.
This document discusses Ajax and provides code examples for implementing basic Ajax functionality. It begins with an overview of Ajax and its motivation, then describes the basic Ajax process including defining a request object in JavaScript, initiating a request, and handling the response. It provides JavaScript and HTML code examples to send a GET request, handle the response, and display returned data.
The document summarizes the inaugural meeting of the Chippenham Tech Chat meetup group. It provides details on upcoming presentations, including a presentation on lightweight web frameworks by Jonathan Holloway. The presentation will provide a brief history of web applications, an overview of lightweight frameworks, and an introduction to the Flask Python web framework.
This document discusses automatically generating JSON from Java objects using the org.json Java utilities. It begins with an introduction and setup information for using the utilities. It then covers the general approach of setting headers, getting data from business logic, and turning Java objects into JSONObjects or JSONArrays. Examples are provided of turning a Java bean into a JSONObject and building a JSONArray from a list of beans. The benefits and limitations of automatically generating JSON are compared to manually building JSON on the server.
Maven is a build tool that manages Java projects and their dependencies. It uses a POM (Project Object Model) file to describe build configuration including dependencies, plugins, and reports. The document discusses using Maven to build a sample Java project with modules including data, EJB, and web application components. Maven allows each component to be built independently and deployed as JAR, EJB-JAR, and WAR artifacts. XDoclet and other plugins are used to generate code and handle deployment details.
Maven is a build tool used to manage Java projects and automate build processes. It is based on the Project Object Model (POM) which describes project dependencies, build properties, and reporting. Maven uses a local repository of dependencies to resolve dependencies and allow projects to inherit common configuration through the POM. It defines goals to automate common tasks like compiling, testing, packaging, and deploying project artifacts.
JSP stands for Java Server Pages and enables developers to embed Java code directly into HTML pages. JSP pages have a .jsp extension and allow for platform-independent development since Java code can run on any system. The JSP request is sent to the web server, which passes the .jsp file to the JSP servlet engine. If it is the first request, the JSP file is parsed into a servlet class file; otherwise, an instantiated servlet handles the request. The servlet output is then sent to the user's browser.
This document discusses Phing, an open source build tool for PHP projects that is based on Apache Ant. Phing uses XML build files to define targets and tasks for automating build processes like deployment, testing, documentation generation, and more. It provides features like file manipulation, code analysis, packaging, and integration with tools like Subversion, PHPUnit, and PhpDocumentor. The document provides examples of how to install, configure, and use Phing to implement automated build processes for PHP projects.
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
Chapter wise All Notes of First year Basic Civil Engineering.pptxDenish Jangid
Chapter wise All Notes of First year Basic Civil Engineering
Syllabus
Chapter-1
Introduction to objective, scope and outcome the subject
Chapter 2
Introduction: Scope and Specialization of Civil Engineering, Role of civil Engineer in Society, Impact of infrastructural development on economy of country.
Chapter 3
Surveying: Object Principles & Types of Surveying; Site Plans, Plans & Maps; Scales & Unit of different Measurements.
Linear Measurements: Instruments used. Linear Measurement by Tape, Ranging out Survey Lines and overcoming Obstructions; Measurements on sloping ground; Tape corrections, conventional symbols. Angular Measurements: Instruments used; Introduction to Compass Surveying, Bearings and Longitude & Latitude of a Line, Introduction to total station.
Levelling: Instrument used Object of levelling, Methods of levelling in brief, and Contour maps.
Chapter 4
Buildings: Selection of site for Buildings, Layout of Building Plan, Types of buildings, Plinth area, carpet area, floor space index, Introduction to building byelaws, concept of sun light & ventilation. Components of Buildings & their functions, Basic concept of R.C.C., Introduction to types of foundation
Chapter 5
Transportation: Introduction to Transportation Engineering; Traffic and Road Safety: Types and Characteristics of Various Modes of Transportation; Various Road Traffic Signs, Causes of Accidents and Road Safety Measures.
Chapter 6
Environmental Engineering: Environmental Pollution, Environmental Acts and Regulations, Functional Concepts of Ecology, Basics of Species, Biodiversity, Ecosystem, Hydrological Cycle; Chemical Cycles: Carbon, Nitrogen & Phosphorus; Energy Flow in Ecosystems.
Water Pollution: Water Quality standards, Introduction to Treatment & Disposal of Waste Water. Reuse and Saving of Water, Rain Water Harvesting. Solid Waste Management: Classification of Solid Waste, Collection, Transportation and Disposal of Solid. Recycling of Solid Waste: Energy Recovery, Sanitary Landfill, On-Site Sanitation. Air & Noise Pollution: Primary and Secondary air pollutants, Harmful effects of Air Pollution, Control of Air Pollution. . Noise Pollution Harmful Effects of noise pollution, control of noise pollution, Global warming & Climate Change, Ozone depletion, Greenhouse effect
Text Books:
1. Palancharmy, Basic Civil Engineering, McGraw Hill publishers.
2. Satheesh Gopi, Basic Civil Engineering, Pearson Publishers.
3. Ketki Rangwala Dalal, Essentials of Civil Engineering, Charotar Publishing House.
4. BCP, Surveying volume 1
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
How to Setup Warehouse & Location in Odoo 17 InventoryCeline George
In this slide, we'll explore how to set up warehouses and locations in Odoo 17 Inventory. This will help us manage our stock effectively, track inventory levels, and streamline warehouse operations.
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
it describes the bony anatomy including the femoral head , acetabulum, labrum . also discusses the capsule , ligaments . muscle that act on the hip joint and the range of motion are outlined. factors affecting hip joint stability and weight transmission through the joint are summarized.
3. Idea
• JSF 2.0 added “composite components”
– Reusable, named chunks of facelets code
– Can pass arguments
• Similar to JSP tag files
– But have use of JSF tags and JSF expression language
– Real components: can have listeners events facets etc.
listeners, events, facets, etc
• Abbreviated example
– resources/utils/myComponent.xhtml (snippet)
y p ( pp )
<composite:implementation>
This is a test
</composite:implementation>
– some-page.xhtml (snippet)
7
<utils:myComponent/>
Making and Using Custom
Components: Overview
• Define a component
– Put foo.xhtml in “resources/bar” folder
– Define available attributes inside composite:interface
– Build output inside composite:implementation
– Use composite: namespace in component file
• <html …
xmlns:composite="http://java.sun.com/jsf/composite">
• Use component namespace in facelets page
– <html …
xmlns:bar="http://java.sun.com/jsf/composite/bar">
• Use the component in facelets page
p p g
– <bar:foo ... />
8
5. Component File: Summary
• In subfolder of “resources” folder
– E.g., resources/someDir/someFile.xhtml
• We already used “resources” in section on relocatable
resources in tutorial on page templating
• Basic structure
– Looks like xhtml file
• head and body tags are simply to satisfy editor
• Declares composite: namespace in <html…> start tag
– <html … xmlns:composite="http://java.sun.com/jsf/composite">
– Contains composite:interface
• Defines attributes used (if any)
– Contains composite:implementation
• Creates final output
• Only content of composite:implementation becomes output
11
Component File: Outline
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite">
<head><title>(For validation only)</title></head>
( y)
<body>
<composite:interface>
<!-- Declare attributes here -->
</composite:interface>
<composite:implementation>
< it i l t ti >
<!-- Create output here -->
</composite:implementation>
</body></html>
12
6. Main File: Summary
• Regular facelets file (someFile.xhtml)
– No special folder name.
– Accessed with someFile.jsf (or someFile.faces, etc.) in
normal manner.
manner
• Basic structure
– Normal facelets structure
• h:head, h:body, and other normal JSF constructs
– Declares component namespace in <html…> start tag
xmlns:someDir="http://java.sun.com/jsf/composite/someDir"
l Di "htt //j /j f/ it / Di "
– Technically, there is no requirement that the namespace (the part
after xmlns:) match the folder name. But, it is traditional to do so.
– Use component
• <someDir:someFile/> (if no attributes)
13 • <someDir:someFile att1="…" … /> (if it uses attributes)
Main File: Outline
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns http://www.w3.org/1999/xhtml
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:someDir="http://java.sun.com/jsf/composite/someDir">
<h:head>
…
</h:head>
<h:body>
…
<someDir:someFile/>
…
</h:body></html>
14
7. Example
• Make a bulleted list of request info
– Requesting host
– User agent
– Current Locale
– Session ID
• May want to reuse list, so make component
– resources/utils/info1.xhtml
• Generates list inside composite:implementation
– composite-components.xhtml
• Declares utils: namespace
• Uses <utils:info1/>
ut s o /
15
Component File
(resources/utils/info1.xhtml)
(resources/utils/info1 xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www.w3.org/1999/xhtml"
p // g/ /
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite">
<head><title>(For validation only)</title></head>
<body>
<composite:interface/> <!-- No attributes -->
<composite:implementation>
<ul>
<li>Requesting host: #{request.remoteHost}</li>
<li>Requesting client type:<br/>
#{header["User-Agent"]}</li>
<li>Locale: #{view.locale}</li>
<li>Session id: #{session.id}</li>
</ul>
/
</composite:implementation>
16 </body></html>
8. Main File
(composite-components.xhtml)
(composite-components xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
<h:head>
…
</h:head>
y
<h:body>
…
<fieldset>
<legend>Basic Composite Components</legend>
<utils:info1/>
</fieldset>
…
</h:body></html>
17
Results
18
10. More on cc.attrs
• “cc” is predefined variable
– Stands for “composite component”
– Refers to top-level component in component file, of type
UINamingContainer
• Main property is “attrs”
– This is a specially defined attribute that contains a Map of
p y p
the attributes used to call the component
• Main page: <someDir:someFile message="test"/>
• Component: <h2>Message: #{cc.attrs.message}</h2>
#{cc attrs message}</h2>
• Other useful attributes
– parent, children, clientId
p , ,
21
Component File: Outline
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite">
<head><title>(For validation only)</title></head>
<body>
<composite:interface>
<composite:attribute name="attributeName"/>
<composite:interface>
<composite:implementation>
Blah #{cc.attrs.attributeName} Blah
</composite:implementation>
p p
</body></html>
22
11. More on composite:attribute
• Basic usage
<composite:interface>
<composite:attribute name="attributeName"/>
</composite:interface>
• Basic attributes
– name
• Attribute name as used in component in main page
– required
• Is attribute required? (default: false)
– Warning! Mojarra 2.0.2 does not enforce this! Fixed in 2.0.3.
–d f l
default
• For non-required attributes, value to use if none supplied
• Advanced attributes
– type, method-signature, targets
• For attributes that expect methods or complex values
23
Mini Example
Reminder: required is not properly
• composite:interface enforced in Mojarra 2.0.2 and earlier.
<composite:attribute name="msg1" required="true"/>
<composite:attribute name="msg2" default="Hi"/>
• composite:implementation
it i l t ti
<h2>Message 1: "#{cc.attrs.msg1}"</h2>
<h2>Message 2: "#{cc.attrs.msg2}"</h2>
h2 Message #{cc.attrs.msg2} /h2
• Main page
<utils:showMessages msg1="Hello, world"/>
• Result
Message 1: "Hello, world"
Message 2: "Hi"
24
12. Example
• Make a bulleted list of request info as before
– Requesting host, user agent, current Locale, session ID
• Support styleClass attribute
– T specify CSS style of resultant <ul> li
To if l f l l list
• Component
– resources/utils/info2 xhtml
resources/utils/info2.xhtml
• Declares styleClass inside composite:interface
• Generates list inside composite:implementation
– composite-components.xhtml
• Declares utils: namespace
• Uses <utils:info2 styleClass="some-css-name"/>
ut s o sty eC ass so e css a e /
25
Component File
(resources/utils/info2.xhtml)
(resources/utils/info2 xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
p // g/ /
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite">
…
<composite:interface>
<composite:attribute name="styleClass"/>
</composite:interface>
<composite:implementation>
<ul class="#{cc.attrs.styleClass}">
<li>Requesting host: #{request.remoteHost}</li>
<li>Requesting client type:
<br/> #{header["User-Agent"]}</li>
<li>Locale: #{view.locale}</li>
<li>Session id: #{session id}</li>
#{session.id}</li>
</ul>
</composite:implementation>
26 </body></html>
13. Main File
(composite-components.xhtml)
(composite-components xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
<h:head>
…
</h:head>
y
<h:body>
…
<fieldset>
<legend>Composite Components with Attributes</legend>
<utils:info2 styleClass="blue"/>
</fieldset>
…
</h:body></html>
27
CSS File
.italic { font-style: italic; }
.blue { font weight: bold; color: blue; }
blue font-weight:
…
28
21. First Component File: Summary
• In subfolder of “resources” folder
– E.g., resources/someDir/someFile.xhtml
• Basic structure
– Looks like xhtml file as before
• But also declares namespace for second component
– Contains composite:interface
• Defines attributes used as before
<composite:attribute name="attributeName"/>
– Contains composite:implementation
• Creates final output. Refers to attributes with cc.attrs.
• Also refers to second component.
…#{cc.attrs.attributeName}…
<someNamespace:someComponent/>
43
Second Component File:
Summary
• In subfolder of “resources” folder
– E.g., resources/someDir/someFile.xhtml
• Basic structure
– Looks like xhtml file as before
– Contains composite:interface
• Does not repeat attributes defined by first component
– But could still define some new attributes
– Contains composite:implementation
• Creates final output.
• Refers to locally-defined attributes with cc.attrs.
• Refers to attributes of surrounding component with
cc.parent.attrs
…#{cc.parent.attrs.attributeName}…
44
22. Example
• Make a bulleted list describing programmer
– First name, last name, etc.
• Use nested component for languages
– T build another <ul> list
To b ild h l li
• Components
– resources/utils/programmerInfo xhtml
resources/utils/programmerInfo.xhtml
• Declares utils: namespace
• Declares programmer inside composite:interface
• Refers to #{cc.attrs.programmer.property}
• Calls <utils:langList/>
– resources/utils/langList.xhtml
g
• Does not declare any attributes
• Refers to #{cc.parent.attrs.programmer.property}
45
Component File 1
(resources/utils/programmerInfo.xhtml)
(resources/utils/programmerInfo xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
p // g/ /
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
…
<composite:interface>
<composite:attribute name="programmer" required="true"/>
<composite:attribute name="styleClass" default="italic"/>
name styleClass default italic />
</composite:interface>
<composite:implementation>
<ul class="#{cc.attrs.styleClass}">
<li>Level: #{cc.attrs.programmer.level}</li>
<li>First name: #{cc.attrs.programmer.firstName}</li>
<li>Last name: #{cc.attrs.programmer.lastName}</li>
<li><utils:langList/></li>
</ul>
</composite:implementation>
46 </body></html>
23. Component File 2
(resources/utils/langList.xhtml)
(resources/utils/langList xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www.w3.org/1999/xhtml"
t s ttp:// . 3.o g/ 999/ t
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:ui="http://java.sun.com/jsf/facelets">
…
<composite:interface/>
<composite:implementation>
#{cc.parent.attrs.programmer.firstName}'s languages:
<ul>
<ui:repeat var="language"
value="#{cc.parent.attrs.programmer.languages}">
<li>#{language}</li>
</ui:repeat>
</ul>
</ l>
</composite:implementation>
</body></html> Reminder: cc.parent fails in Mojarra 2.0.2 and earlier.
47
Main File
(composite-components.xhtml)
(composite-components xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
<h:head>
…
</h:head>
y
<h:body>
…
<fieldset>
<legend>Nested Composite Components</legend>
<utils:programmerInfo programmer="#{person1}"
styleClass="blue"/>
</fieldset>
…
</h:body></html>
48
25. Problems with Simple Relative
URLs
• Issue
– S
Suppose component used simple relative URLs
t d i l l ti URL
– Suppose main page was moved to sub directory
• Example
– Hypertext links
• <a href="welcome.jsf"> would now refer to
http://host/context-root/subdir/welcome.jsf
– I
Images
• <img src="./images/pic.jpg"> would now refer to
http://host/context-root/subdir/images/pic.jpg
– Style sheets
• <link …href="./css/styles.css"/> would now refer to
http://host/context-root/subdir/css/styles.css
– JavaScript files
p
• <script src="./scripts/my-script.js"…> would now refer to
http://host/context-root/subdir/scripts/my-script.js
51
Solutions
(Relocatable Resources)
• Hypertext links
– Use <a href="#{request.contextPath}/blah.jsf">
• Or <h:outputLink value="#{request.contextPath}/blah.jsf"/>
• Images
– Put in images folder under “resources” and use
<h:graphicImage name="blah.jpg" library="images"/>
g p g jpg y g
• Can also use <h:graphicImage url="/images/blah.jpg"/>
• Style sheets
– P i css f ld under “resources” and use
Put in folder d “ ” d
<h:outputStylesheet name="blah.css" library="css"/>
• JavaScript files
– Put in scripts folder under “resources” and use
52
<h:outputScript name="blah.js" library="scripts"/>
26. Component File
(resources/utils/info3.xhtml)
(resources/utils/info3 xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html … xmlns:composite="http://java.sun.com/jsf/composite"
p p j j p
xmlns:utils="http://java.sun.com/jsf/composite/utils">
…
<composite:interface>
<composite:attribute name="styleClass"/>
name= styleClass />
</composite:interface>
<composite:implementation>
<table align="right">
Actual file is resources/images/duke-guitar.png
resources/images/duke guitar.png
<tr><th>
<h:graphicImage name="duke-guitar.png" library="images"/>
</th></tr>
<tr><th>
<a href="#{request.contextPath}/composite-components.jsf">
Return to main page</a>
</th></tr>
</table>
<utils:info2 styleClass="#{cc.attrs.styleClass}"/>
</composite:implementation>
53
</body></html>
Main File 1
(relative-urls.xhtml)
(relative-urls xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
<h:head><title>Composite Components</title>
<h:outputStylesheet name="styles.css" library="css"/>
</h:head>
y
<h:body>
…
<fieldset>
<legend>Component that Uses Relative URLs</legend>
<utils:info3/>
</fieldset>
…
</h:body></html>
54
27. Main File 2
(someDirectory/relative-urls.xhtml)
(someDirectory/relative-urls xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …>
<html xmlns="http://www w3 org/1999/xhtml"
xmlns= http://www.w3.org/1999/xhtml
xmlns:h="http://java.sun.com/jsf/html"
xmlns:utils="http://java.sun.com/jsf/composite/utils">
<h:head><title>Composite Components</title>
<h:outputStylesheet name="styles.css" library="css"/>
</h:head>
y
<h:body>
…
<fieldset>
<legend>Component that Uses Relative URLs</legend>
<utils:info3/>
</fieldset>
… This is an exact copy of the file from the top-level directory.
</h:body></html>
55
Results
56