simpleorm.simplewebapp.core

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
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.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.