惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - Yok

js动态代理 Hammett joined Microsoft 鼻炎无端端好了 罚抄100遍 Castle Team宣布Castle将与ASP.NET MVC整合 邪恶的webform MonoRail FAQ 招.net and/or javascript程序员(广州) javascript版贪食蛇 实现MonoRail页面缓存 Castle 1.0 rc2发布 招聘.net程序员(广州) javascript reference card 招聘.net程序员(广州) Ready To Rock 做了一回二五仔 - BEA广州User Group活动见闻 MonoRail - 生命周期及controller/action/view详解 MonoRail - 前期准备 MonoRail - 简介
MonoRail资源汇总
Yok · 2007-09-11 · via 博客园 - Yok

不知不觉已经用了两年多MonoRail了。当时是叶子(现在已经出国留学,研究工控技术和游戏外挂去了)介绍我用的,用上了就彻底抛弃webform并且鄙视之,其他用MonoRail的同事或朋友也有类似的感想。除非你对OOP / XHTML / Javacsript 深恶痛绝或者没有能力去学习这些基础知识,只要你熟悉了MonoRail,都会想跟webform划清界线的。

大概是两年前的这个时候,我花了一个下午的时间些有关MonoRail的Helper和ViewComponent的随笔,但是下班时竟然忘了保存 。。。受了这次打击后,我就再也没继续写了。现在Castle的文档已经很齐全了,所以我的随笔不写也罢。这里我列出一些重要的链接供大家参考:

  • 官方网站

http://www.castleproject.org

  • Getting Started。教你怎样新建一个MonoRail项目。其中的Active Record部分不是必须的知识。MonoRail不依赖数据访问层,但是你应该用实体类来传递数据,用DataSet / DataReader会比较麻烦

http://www.castleproject.org/monorail/gettingstarted/index.html

  • Castle安装包带有MonoRail的项目模板,提供了新建项目的向导。vs2005不支持Web Application类型的项目,必须要先装两个补丁,否则会出错

http://download.microsoft.com/download/6/3/c/63c69e5d-74c9-48ea-b905-30ac3831f288/VS80sp1-KB926601-X86-ENU.exe  
http://download.microsoft.com/download/9/0/6/906064ce-0bd1-4328-af40-49dca1aef87c/WebApplicationProjectSetup.msi

  • 详细的文档,我列出比较重要的部分

http://www.castleproject.org/monorail/documentation/v1rc2/index.html

  • Reference Manual
    • How MonoRail works   
      基本原理
    • Configuration Reference   
      配置详解
  • User's Guide
    • Controller basics
      controller的基本概念
    • Filters
      Filter是可以在指定在action前后执行的组件
    • Working with Views
      view的概念
    • Flash
      Flash是session包装成的特殊容器,他的生命周期默认是两次请求。它在向导页面,出错重试页面里很实用
    • Rescues
      Rescues是MonoRail用于显示错误信息的机制
    • Layouts
      Layout类似MasterPage,可以定义公用的页面框架
    • SmartDispatcherController / More about SmartDispatcherController
      Controller从SmartDispatcherController继承,就可以实现action参数的自动绑定
    • Reusing UI portions (ViewComponents)
      ViewComponents是实现逻辑和界面复用的一种机制
  • View Engines
  • Helpers
    • Creating a custom helper
      helper是可以在模板里调用,用于生成视图代码片段的类。MonoRail提供了多种内置helper用于生成ajax调用代码,页面特效代码,form元素验证代码等。但我认为这些helper都不值得用,熟悉xhtml和javascript才是正路
  • Integrations
    • Windsor Container Integration
      Windsor是Castle的Ioc容器,MonoRail集成了Windsor后,controller,filter和ViewComponent都可以受容器管理
  • 相关项目
    • Windsor
      除了Ioc部分,还有一系列facility,实现NHibernate集成,ActiveRecord集成,log集成,事务的自动管理等。除了官方文档外,TerryLee的专题也是一个很好的学习资源
    • ActiveRecord
      Castle在NHibernate的基础上实现的ActiveRecord模式,使用起来比较简单,如果项目只需要简单的增删查改可以考虑使用
    • NHibernate
      懒得说了
    • Prototype.js
      没有webform控件不会死人的,熟悉了js和html后,利用prototype来进行web界面开发可是相当的容易

不了解MonoRail的朋友请看我的MonoRail专栏