- Revision
- 520
- Author
- mward
- Date
- 2007-12-20 07:41:11 -0600 (Thu, 20 Dec 2007)
Log Message
renamed use of 'Persons' in examples, now using 'People'
Modified Paths
- trunk/examples/freemarker-example/src/main/java/org/codehaus/waffle/example/freemarker/action/PersonController.java
- trunk/examples/freemarker-example/src/main/resources/META-INF/ParameterNames.list
- trunk/examples/freemarker-example/src/main/webapp/people/person.htm
- trunk/examples/jruby-example/src/main/ruby/person.rb
- trunk/examples/jruby-example/src/main/webapp/person.rhtml
- trunk/examples/paranamer-example/src/main/java/org/codehaus/waffle/example/paranamer/action/PersonController.java
- trunk/examples/paranamer-example/src/main/resources/META-INF/ParameterNames.list
- trunk/examples/paranamer-example/src/main/webapp/people/person.jspx
- trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/SimpleRegistrar.java
- trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/action/PersonController.java
- trunk/examples/simple-example/src/main/webapp/person.jspx
Diff
Modified: trunk/examples/freemarker-example/src/main/java/org/codehaus/waffle/example/freemarker/action/PersonController.java (519 => 520)
--- trunk/examples/freemarker-example/src/main/java/org/codehaus/waffle/example/freemarker/action/PersonController.java 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/freemarker-example/src/main/java/org/codehaus/waffle/example/freemarker/action/PersonController.java 2007-12-20 13:41:11 UTC (rev 520) @@ -13,7 +13,7 @@ this.personDAO = personDAO; } - public Collection<Person> getPersons() { + public Collection<Person> getPeople() { return personDAO.findAll(); }
Modified: trunk/examples/freemarker-example/src/main/resources/META-INF/ParameterNames.list (519 => 520)
--- trunk/examples/freemarker-example/src/main/resources/META-INF/ParameterNames.list 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/freemarker-example/src/main/resources/META-INF/ParameterNames.list 2007-12-20 13:41:11 UTC (rev 520) @@ -3,7 +3,7 @@ org.codehaus.waffle.example.freemarker.MyRegistrar application org.codehaus.waffle.example.freemarker.MyRegistrar session org.codehaus.waffle.example.freemarker.action.PersonController PersonController personDAO org.codehaus.waffle.example.freemarker.dao.PersonDAO -org.codehaus.waffle.example.freemarker.action.PersonController getPersons +org.codehaus.waffle.example.freemarker.action.PersonController getPeople org.codehaus.waffle.example.freemarker.action.PersonController getPerson org.codehaus.waffle.example.freemarker.action.PersonController cancel org.codehaus.waffle.example.freemarker.action.PersonController create
Modified: trunk/examples/freemarker-example/src/main/webapp/people/person.htm (519 => 520)
--- trunk/examples/freemarker-example/src/main/webapp/people/person.htm 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/freemarker-example/src/main/webapp/people/person.htm 2007-12-20 13:41:11 UTC (rev 520) @@ -27,7 +27,7 @@ <th>Email</th> <th>Date of Birth</th> </tr> - <#list persons as person> + <#list people as person> <tr class="odd"> <td> <a href=""
Modified: trunk/examples/jruby-example/src/main/ruby/person.rb (519 => 520)
--- trunk/examples/jruby-example/src/main/ruby/person.rb 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/jruby-example/src/main/ruby/person.rb 2007-12-20 13:41:11 UTC (rev 520) @@ -5,7 +5,7 @@ def index @person_dao = locate(org.codehaus.waffle.example.jruby.dao.PersonDAO) - @persons = @person_dao.findAll + @people = @person_dao.findAll render 'person.rhtml' end
Modified: trunk/examples/jruby-example/src/main/webapp/person.rhtml (519 => 520)
--- trunk/examples/jruby-example/src/main/webapp/person.rhtml 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/jruby-example/src/main/webapp/person.rhtml 2007-12-20 13:41:11 UTC (rev 520) @@ -4,7 +4,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> - <title>Persons rhtml listing</title> + <title>People rhtml listing</title> <style type="text/css" title="currentStyle" media="screen"> @import "stylesheets/style.css"; </style> @@ -24,7 +24,7 @@ <th>Email</th> <th>Date of Birth</th> </tr> - <% @persons.each_with_index do |person, index| %> + <% @people.each_with_index do |person, index| %> <tr class="<%= index % 2 == 0 ? 'even' : 'odd' %>"> <td> <%= %{<a href="" %>
Modified: trunk/examples/paranamer-example/src/main/java/org/codehaus/waffle/example/paranamer/action/PersonController.java (519 => 520)
--- trunk/examples/paranamer-example/src/main/java/org/codehaus/waffle/example/paranamer/action/PersonController.java 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/paranamer-example/src/main/java/org/codehaus/waffle/example/paranamer/action/PersonController.java 2007-12-20 13:41:11 UTC (rev 520) @@ -13,7 +13,7 @@ this.personDAO = personDAO; } - public Collection<Person> getPersons() { + public Collection<Person> getPeople() { return personDAO.findAll(); }
Modified: trunk/examples/paranamer-example/src/main/resources/META-INF/ParameterNames.list (519 => 520)
--- trunk/examples/paranamer-example/src/main/resources/META-INF/ParameterNames.list 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/paranamer-example/src/main/resources/META-INF/ParameterNames.list 2007-12-20 13:41:11 UTC (rev 520) @@ -21,7 +21,7 @@ org.codehaus.waffle.example.paranamer.action.CalculatorController subtract long,long firstNumber,secondNumber org.codehaus.waffle.example.paranamer.action.HelloWorldController getGreeting org.codehaus.waffle.example.paranamer.action.PersonController PersonController org.codehaus.waffle.example.paranamer.dao.PersonDAO personDAO -org.codehaus.waffle.example.paranamer.action.PersonController getPersons +org.codehaus.waffle.example.paranamer.action.PersonController getPeople org.codehaus.waffle.example.paranamer.action.PersonController getPerson org.codehaus.waffle.example.paranamer.action.PersonController cancel org.codehaus.waffle.example.paranamer.action.PersonController create
Modified: trunk/examples/paranamer-example/src/main/webapp/people/person.jspx (519 => 520)
--- trunk/examples/paranamer-example/src/main/webapp/people/person.jspx 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/paranamer-example/src/main/webapp/people/person.jspx 2007-12-20 13:41:11 UTC (rev 520) @@ -35,7 +35,7 @@ <th>Email</th> <th>Date of Birth</th> </tr> - <c:forEach var="person" items="${controller.persons}" varStatus="status"> + <c:forEach var="person" items="${controller.people}" varStatus="status"> <tr class="${status.index % 2 eq 0 ? 'even' : 'odd'}"> <td> <a href=""
Modified: trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/SimpleRegistrar.java (519 => 520)
--- trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/SimpleRegistrar.java 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/SimpleRegistrar.java 2007-12-20 13:41:11 UTC (rev 520) @@ -31,11 +31,11 @@ //register("automobileValidator", AutomobileControllerValidator.class); register("person", PersonController.class); } - + @Override public void request() { - register("fileItemFactory", DiskFileItemFactory.class); - register("uploader", RequestFileUploader.class); - register("upload", UploadController.class); - } + register("fileItemFactory", DiskFileItemFactory.class) + .register("uploader", RequestFileUploader.class) + .register("upload", UploadController.class); + } }
Modified: trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/action/PersonController.java (519 => 520)
--- trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/action/PersonController.java 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/simple-example/src/main/java/org/codehaus/waffle/example/simple/action/PersonController.java 2007-12-20 13:41:11 UTC (rev 520) @@ -13,7 +13,7 @@ this.personDAO = personDAO; } - public Collection<Person> getPersons() { + public Collection<Person> getPeople() { return personDAO.findAll(); }
Modified: trunk/examples/simple-example/src/main/webapp/person.jspx (519 => 520)
--- trunk/examples/simple-example/src/main/webapp/person.jspx 2007-12-20 00:07:13 UTC (rev 519) +++ trunk/examples/simple-example/src/main/webapp/person.jspx 2007-12-20 13:41:11 UTC (rev 520) @@ -35,7 +35,7 @@ <th>Email</th> <th>Date of Birth</th> </tr> - <c:forEach var="person" items="${persons}" varStatus="status"> + <c:forEach var="person" items="${people}" varStatus="status"> <tr class="${status.index % 2 eq 0 ? 'even' : 'odd'}"> <td> <a href=""
To unsubscribe from this list please visit:
