Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor changes and new chapter about the demo app.

  • Loading branch information...
commit fdb6ee5894546f939df1fe3714ec279b48b1acbd 1 parent d8e3945
@tjweir authored
View
38 apdx-message-handling.lyx
@@ -133,7 +133,7 @@ You can style them using CSS, for example:
\end_layout
\begin_layout LyX-Code
-.error, .warning, .notice {
+.error {
\end_layout
\begin_layout LyX-Code
@@ -149,6 +149,42 @@ You can style them using CSS, for example:
\end_layout
\begin_layout LyX-Code
+.warning {
+\end_layout
+
+\begin_layout LyX-Code
+ color: yellow;
+\end_layout
+
+\begin_layout LyX-Code
+ font-size: bigger;
+\end_layout
+
+\begin_layout LyX-Code
+}
+\end_layout
+
+\begin_layout LyX-Code
+.notice {
+\end_layout
+
+\begin_layout LyX-Code
+ color: green;
+\end_layout
+
+\begin_layout LyX-Code
+ font-size: bigger;
+\end_layout
+
+\begin_layout LyX-Code
+}
+\end_layout
+
+\begin_layout Standard
+Handing exceptions and redirecting the user
+\end_layout
+
+\begin_layout LyX-Code
\end_layout
View
74 chap-demoapp.lyx
@@ -0,0 +1,74 @@
+#LyX 1.5.6 created this file. For more info see http://www.lyx.org/
+\lyxformat 276
+\begin_document
+\begin_header
+\textclass book
+\language english
+\inputencoding auto
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+\graphics default
+\paperfontsize default
+\spacing single
+\papersize default
+\use_geometry false
+\use_amsmath 1
+\use_esint 1
+\cite_engine basic
+\use_bibtopic false
+\paperorientation portrait
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\quotes_language english
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\author ""
+\author ""
+\end_header
+
+\begin_body
+
+\begin_layout Chapter
+Demo Application: PocketChange
+\end_layout
+
+\begin_layout Section
+Our Demo Application
+\end_layout
+
+\begin_layout Standard
+We decided to build an application throughout the book as evolutionary example.
+ The application we've picked is an Expense Tracker and we're calling it
+
+\shape italic
+PocketChange.
+\end_layout
+
+\begin_layout Standard
+SCREENSHOT
+\end_layout
+
+\begin_layout Standard
+PocketChange will track your expenses, keep a running total, allow you to
+ tag your expenditures, and visualize the data.
+ During the advanced sections we'll add features such as multiple people
+ per account and <super awesome feature>.
+\end_layout
+
+\begin_layout Standard
+
+\end_layout
+
+\end_body
+\end_document
View
4 chap-lift_architecture.lyx
@@ -90,6 +90,10 @@ direct processing of view
\end_layout
\begin_layout Itemize
+LiftViewFirst - http://wiki.liftweb.net/index.php/Lift_View_First
+\end_layout
+
+\begin_layout Itemize
Error handling
\end_layout
View
54 chap-maven.lyx
@@ -62,7 +62,7 @@ Maven
\begin_layout Standard
A great web framework deserves a great build system, so Lift uses Maven
\begin_inset Foot
-status collapsed
+status open
\begin_layout Standard
\begin_inset LatexCommand htmlurl
@@ -82,8 +82,7 @@ name "Maven"
\end_inset
- is a project management tool that is developed under the Apache Software
- Foundation
+ is a project management tool developed by the Apache Software Foundation
\begin_inset Foot
status collapsed
@@ -102,7 +101,15 @@ target "http://www.apache.org"
Maven's concept of a single config file, known as the Project Object Model
or pom file, that controls the project's build, dependencies, reporting
and documentation generation was a desirable feature for the Lift project.
- Below is a sample pom.xml file.
+ We won't go deeply into Maven's internals as it's not needed for building
+ an application with Lift.
+ During the building of the sample application we will highlight any changes
+ that we need to make to the pom file then.
+\end_layout
+
+\begin_layout Standard
+Below is a basic sample pom.xml for an application.
+ This application has a single dependancy on JUnit.
\end_layout
\begin_layout Standard
@@ -224,7 +231,20 @@ status open
\end_layout
\begin_layout Standard
-Lift requires at least version 2.0.7.
+As you can see there are no surprises, just a bit of XML to describe metadata
+ about the application.
+ One thing to point out regarding Maven and Lift, is that Lift needs version
+ 2.0.7 or greater as we use
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+Swtich to mvn 2.0.6 and get the error.
+\end_layout
+
+\end_inset
+
+.
\end_layout
@@ -292,7 +312,8 @@ target "http://localhost:8080/"
\begin_layout Standard
As your project matures you may start to require additional JARs due to
- new dependencies , you'll have to spend a bit of time in the
+ new dependencies, such as talking to new Databases, you'll have to spend
+ a bit of time in the
\family typewriter
pom.xml
\begin_inset LatexCommand index
@@ -303,18 +324,13 @@ name "pom.xml"
\family default
file.
- We'll get into that later in the book
-\begin_inset Note Note
-status open
-
-\begin_layout Standard
-WHEN?
+ As mentioned earlier, we'll highlight these changes as we build the demo
+ application.
+
\end_layout
-\end_inset
-
-.
- If you'd like more information about the details of Maven, please visit
+\begin_layout Standard
+If you'd like more information about the details of Maven, please visit
\family typewriter
@@ -332,7 +348,7 @@ Project Layout
\begin_layout Standard
The directory structure of a Lift application is straight-forward, but we'll
- highlight a few important ones here.
+ highlight a few important locations here.
\end_layout
\begin_layout Description
@@ -342,8 +358,8 @@ The directory structure of a Lift application is straight-forward, but we'll
\end_layout
\begin_layout Description
-<application_root>/src/main/webapp All of the static aspects, such as images,
- XHTML, JavaScript and style will be in this directory.
+<application_root>/src/main/webapp All of the static aspects of your application
+, such as images, XHTML, JavaScript and CSS will be in this directory.
\end_layout
\begin_layout Description
View
13 mailinglistknowledge.txt
@@ -33,9 +33,14 @@ S: The start of the Record Stuff
T: record,
------------------------------------------------------
-L:
-S:
-T:
+L: http://groups.google.com/group/liftweb/browse_thread/thread/6c1cd13c3f2f7178
+S: Big change to Loc
+T: Loc, Menu
+
+------------------------------------------------------
+L: http://groups.google.com/group/liftweb/browse_thread/thread/a682f87941be3345/dfe35f5456580408
+S: Handling Exceptions and redirecting the user
+T: Exception, Redirect
------------------------------------------------------
L:
@@ -57,3 +62,5 @@ T:
+
+
View
11 master.lyx
@@ -122,7 +122,7 @@ Tyler would like to thank his wife Laura, for encouraging him.
\end_layout
\begin_layout Standard
-We would both like to thank all of the Lift committors and especially David
+We would both like to thank all of the Lift Developers and especially David
Pollak, without him, we wouldn't have this opportunity.
\end_layout
@@ -199,6 +199,15 @@ preview false
\end_layout
\begin_layout Standard
+\begin_inset Include \include{chap-demoapp.lyx}
+preview false
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
\begin_inset Include \include{chap-lift_architecture.lyx}
preview false
Please sign in to comment.
Something went wrong with that request. Please try again.