When asp.net hits JSF templates, styles, and themes

Source: Internet
Author: User
Tags implement
asp.net|js| Template Template

It is often advantageous to separate the common parts of a Web page across multiple different pages, so that content reuse and no tagging duplication are possible. Application headers and footers are the best examples of pages that are reused across your site. Templating encourages you to define a "template" page-you use it instead of changing content between pages and keeping everything else the same. JSF does not provide built-in templating support. A popular template used in Java EE Web application development is the struts tiles project. Tiles can also be used with JSF. Java Studio Creator, and other JSF tools, provide its own support for reusing page content. Here you can find a tutorial on how to use studio creator to reuse page content.

ASP.net 2.0 introduces its own template mechanism-you can use it to implement the generic interface section. This feature is called the Main page (master pages). The main page is a popular new feature in the framework, and we look forward to similar functionality in the next major release of JSF.

   Patterns and Themes

Professional Web developers have been using cascading model tables as a way to implement the appearance of the page, so that the appearance of a Web page can be modified without editing the page callout. A "subject" can be thought of as a set of related patterns. You can continue to use cascading style sheets in JSF and asp.net. However, ASP.net 2.0 introduced support for themes and skins. A "skin" is a well-defined style-for a particular type of control. Although the JSF specification does not specifically emphasize topics, several tools, including the Java Studio Creator, provide non-standard support for topics.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.