`
canonical
  • 浏览: 359389 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Why Use Meta

阅读更多
   元数据(meta)是描述数据的数据。它所描述的有一部分是数据本身的特性,如字段的长度,精度等,另外一部分描述的则是我们使用这些数据的可行方式和目的等。使用meta可以在程序中更加清楚的表达出我们的意图。例如现在需要在界面上显示一个列表,我们的意图未必是要在界面上显示指定的字段A, 字段B,字段C对应的列,而是"显示那些应该显示在列表中的字段"。这一看似同义反复的表述,如果采用元数据表达,则成为 <ui:PageTable fields="${dsMeta.listableFields}" />。通过使用元数据,我们可以做到系统中众多的功能可以共用实现,即通过同一个页面应用不同的meta则得到不同的最终展现,而后台一个通用的DaoWebAction通过使用meta可以完成对所有实体的操作。这也可以看作是一种复杂的策略模式的应用。
分享到:
评论

相关推荐

    Why Python is Slow: Looking Under the Hood

    Why Python is Slow: Looking Under the Hood # Why Python is Slow Python is slower than Fortran and C for a variety of reasons # Python meta-hacking: Don't...# Just for fun: a few "never use these" hacks

    WordPress 3 Plugin Development Essentials.pdf

    Why Subversion? 192 Understanding the terminology and concepts 192 Checking out a local working copy 193 SVN folder structure 194 Checkout, revisited 196 Setting up an SVN repository 197 ...

    Intermediate Perl.pdf

    [*] Don't ask why it isn't called that. We must have had 300 emails on the subject. Okay, ask, since we know you're going to anyway. You never really stop learning Perl, so Learning More Perl doesn'...

    Pro Python 2nd edition 英文pdf

    This book is for intermediate to advanced Python programmers who are looking to understand how and why Python works the way it does and how they can take their code to the next level. Table of ...

    WordPress 2.8 Theme Design.pdf

    Why add custom class styles to template tags? 164 Using the template selector feature 164 Creating a custom page template 164 Template hierarchy 165 Template tags 167 Author template tag updates ...

    Learn.Search.Engine.Optimization.With.Smart.Internet.Marketing.Strategies 2018

    SEO 2018 is now updated covering the latest changes to Google's algorithm, and walks you through major updates and how to use them to your advantage. This book also reveals industry secrets about ...

    HTML5.Quick.Markup.Reference

    covering the new media tags and file formats that are best for use with HTML5, as well as key factors regarding the data footprint optimization work process, in-lining .CSS and .JS files, and why ...

    RESTful Web Services.rar

    1xx: Meta 373 2xx: Success 374 3xx: Redirection 377 4xx: Client-Side Error 380 5xx: Server-Side Error 387 C. The HTTP Header Top Infinity..... . 389 Standard Headers 390 Nonstandard Headers 404...

    WordPress 3 Search Engine Optimization.pdf

    Making use of nofollow links 161 PageRank: summary and conclusion 163 Authority links: what they are and why you want them 164 Table of Contents [ v ] Link anchor text 165 Site-wide links and ...

    WordPress 2.9 E-Commerce.pdf

    Why WordPress 8 WordPress is free (as in money) 8 WordPress is free (as in speech) 8 WordPress is widely used 9 WordPress is flexible and extensible 9 About the WP e-Commerce plugin 9 Site and ...

    TICQClient Version

    not it parses CLI_META and SRV_META packets[-] Fix in SRV_METAINTEREST, interests were badly parsed[-] Some fixes with LNTS strings26-June-2002, Version 0.1[!] First public release

    Proteomics in Drug Research

    4.6 Metabolic Labeling Approaches 69 15 N Labeling 70 4.6.1 4.6.2 Stable Isotope Labeling by Amino Acids in Cell Culture (SILAC) 71 4.7 Chemical Labeling Approaches 73 4.7.1 Chemical Isotope Labeling ...

    ZendFramework中文文档

    9.1.2. Why Use Zend_Date? 9.2. 操作理论 9.2.1. 内部(Internals) 9.3. Basic Methods 9.3.1. The current date 9.3.2. Zend_Date by Example 9.3.2.1. Ouput a Date 9.3.2.2. Setting a Date 9.3.2.3. ...

    a project model for the FreeBSD Project.7z

    Ports is the collection of meta-data that is needed to make software packages build correctly on FreeBSD. An example of a port is the port for the web-browser Mozilla. It contains information about ...

    Digging into WordPress.pdf

    1.1.2 Why WordPress is Amazing ............................................................9 1.1.3. How to Setup and Configure WordPress .........................................10 1.1.4 How to ...

    Python Power - The Comprehensive Guide (2008).pdf

    Why Use Python? ...........................................................................................................11 Object-Oriented .............................................................

    spring-framework-reference4.1.4

    Not Using Commons Logging ................................................................... 12 Using SLF4J ..............................................................................................

    spring-framework-reference-4.1.2

    Not Using Commons Logging ................................................................... 12 Using SLF4J ..............................................................................................

    Thinking in Java 4th Edition

    What’s Inside Preface 1 Java SE5 and SE6 .................. 2 Java SE6 ............................................The 4th edition...........................Changes ...........................................

    python3.6.5参考手册 chm

    Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...

Global site tag (gtag.js) - Google Analytics