simpleorm.simplewebapp.core

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Database ORM » SimpleORM » simpleorm.simplewebapp.core 
simpleorm.simplewebapp.core
A micro-framework for simple jsp beans using reified fields.

JSTL Gotchas Checklist

Look at the following if weird errors appear in JSTL templates/usages:-
  • No >taglib> declaration. Tags such as &lgt;c:foreach...> are then silently ignored, but their contents are still output in the gnerated HTML.
  • Missing Bean property get method, eg. getColor(). If your lucky you'll get a message, else HTML generation is just mysteriously aborted. (It needs the method, not just the field.)
Java Source File NameTypeComment
WBeanUtils.javaClass Very simple get/set properties etc.
WButton.javaClass A button that submits the form.
WButtonBar.javaClass Created by IntelliJ IDEA.
WException.javaClass Used to wrap checked exceptions.
WField.javaClass The data field properties. Each instance represents one crud or list field in a form. Subtypes implement different data types and validation, eg.
WFieldGroup.javaClass A set of fields on a form, eg.
WFieldGroupList.javaClass
WFieldNode.javaClass Common supertype of FieldGroup and Field.
WForEachRowTag.javaClass
WGlobalState.javaClass Place to put global state, specialized by application dependent state.
WI18n.javaClass Simple wrapper for resource bundles etc.
WLog.javaClass Very lightweight logger.
WMenuAbstractGlobal.javaClass Created per Servlet to represent either an item or a (sub)menu

Menus can be created independently from WPages, used for despatching.

Menus are currently three levels -- url mapped as /context/servlet/parentMenu/MenuItem.swb.

WARNING.

WMenuItemGlobal.javaClass An leaf items on a menu, used to both display menus and dispatch calls to jsps.

WARNING These are generally Global (ie final values), see WGlobalState. Do not modify them on a per page basis, but do refer to them using WPageStructure.getPageItem etc.

WMenuParentGlobal.javaClass Represents all the WMenuItems in a menu, see WMenuAbstractGlobal.
WPage.javaClass The JSP Bean that contains the state for the current page, ie.
WPageEvents.javaClass Parent to WPagelet, mainly containing Event stubs. Overrides should always call super.

The events are generally grouped by pagelet, so that all of a pagelets processing happens at once.

But each pagelet's OnInitalize method is called first. Then each pagelets feilds are loaded but not validated. This is done before the non-interleaved events so that pagelets could interact with each other if really needed.

Then the for each pagelets their onPreValidate/Field Valdiation, *Submitted and Error events are called. These are not interleaved with other pagelets.

These non-interleaved methods can throw WValidationErrors will be caught and displayed to the user. This will prevent any further proccessing non-interleaved methods of this pagelet, but the page will continue. So a Crud error will not prevent a tree or list pagelet from working.

Then the onListRow methods are called as seen in the JSP. Finally each pagelet's onFinalize is called, after the JSP exits.

Normally a database connection is shared between pagelets, with error events doing rollbacks. Open the connection on the Page initializer, not the pagelet one. This approach keeps things simple.

(Why is this more complex than Rails (say)? Mainly because we support the implementation of independently written pagelets.)

(See WPageStructure.main() for precice details as to how these are called.)

(Having the *Submitted events is a little more compex than just having one doBody event and testing if wasSubmitted within it.

WPagelet.javaClass A page is composed of multiple pagelets that represent things like a Tree or a Crud section.
WPageletList.javaClass Pagelet used for displaying lists with sort and search.
WPageletTag.javaClass
WPageSecurity.javaClass Peer to WPage (one to one) providing Authorizaiton and Authentication methods.
WPageStructure.javaClass One-to-one delegate of WPage contains all of a page's doevents, top level fields, groups, menus etc..

Fields belong to fieldGroups, which belong to a WPage/WebBean.

WServlet.javaClass Parent of all servelets.
WTree.javaClass Used with tree.tag to display trees.
WValidationException.javaClass An error messageCode which will be reported to the user.
w_ww_.___j_ava_2__s_.__c_o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.