Seam SVN: r7844 - trunk/examples/dvdstore/resources/WEB-INF.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-04-07 19:12:21 -0400 (Mon, 07 Apr 2008)
New Revision: 7844
Modified:
trunk/examples/dvdstore/resources/WEB-INF/pages.xml
Log:
JBSEAM-2850
Modified: trunk/examples/dvdstore/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/dvdstore/resources/WEB-INF/pages.xml 2008-04-07 22:14:59 UTC (rev 7843)
+++ trunk/examples/dvdstore/resources/WEB-INF/pages.xml 2008-04-07 23:12:21 UTC (rev 7844)
@@ -82,4 +82,10 @@
</redirect>
</exception>
+ <exception class="javax.faces.application.ViewExpiredException">
+ <redirect view-id="/home.xhtml">
+ <message>The page you tried to access is no longer available.</message>
+ </redirect>
+ </exception>
+
</pages>
16 years, 7 months
Seam SVN: r7843 - in trunk/examples/ui: view and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 18:14:59 -0400 (Mon, 07 Apr 2008)
New Revision: 7843
Added:
trunk/examples/ui/src/org/jboss/seam/example/ui/Animal.java
Modified:
trunk/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java
trunk/examples/ui/src/org/jboss/seam/example/ui/Person.java
trunk/examples/ui/view/selectItems.xhtml
Log:
JBSEAM-2856
Added: trunk/examples/ui/src/org/jboss/seam/example/ui/Animal.java
===================================================================
--- trunk/examples/ui/src/org/jboss/seam/example/ui/Animal.java (rev 0)
+++ trunk/examples/ui/src/org/jboss/seam/example/ui/Animal.java 2008-04-07 22:14:59 UTC (rev 7843)
@@ -0,0 +1,32 @@
+package org.jboss.seam.example.ui;
+
+public class Animal
+{
+
+ public static Animal DOG = new Animal("Needs lots of exercise", "Dog");
+ public static Animal CAT = new Animal("Looks after itself", "Cat");
+ public static Animal GOLDFISH = new Animal("Needs a fishtank!", "Goldfish");
+ public static Animal RABBIT = new Animal("Often has floppy ears", "Rabbit");
+ public static Animal SNAKE = new Animal("Better make sure it doesn't bite you", "Snake");
+ public static Animal PARROT = new Animal("Peices of Eight", "Parrot");
+
+ private String notes;
+ private String name;
+
+ public Animal(String notes, String name)
+ {
+ this.notes = notes;
+ this.name = name;
+ }
+
+ public String getNotes()
+ {
+ return notes;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+}
Modified: trunk/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java
===================================================================
--- trunk/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java 2008-04-07 22:14:40 UTC (rev 7842)
+++ trunk/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java 2008-04-07 22:14:59 UTC (rev 7843)
@@ -10,20 +10,20 @@
public class AnimalList
{
- private List<String> animals;
+ private List<Animal> animals;
@Unwrap
- public List<String> unwrap()
+ public List<Animal> unwrap()
{
if (animals == null)
{
- animals = new ArrayList<String>();
- animals.add("Dog");
- animals.add("Cat");
- animals.add("Goldfish");
- animals.add("Rabbit");
- animals.add("Snake");
- animals.add("Parrot");
+ animals = new ArrayList<Animal>();
+ animals.add(Animal.CAT);
+ animals.add(Animal.DOG);
+ animals.add(Animal.GOLDFISH);
+ animals.add(Animal.PARROT);
+ animals.add(Animal.RABBIT);
+ animals.add(Animal.SNAKE);
}
return animals;
}
Modified: trunk/examples/ui/src/org/jboss/seam/example/ui/Person.java
===================================================================
--- trunk/examples/ui/src/org/jboss/seam/example/ui/Person.java 2008-04-07 22:14:40 UTC (rev 7842)
+++ trunk/examples/ui/src/org/jboss/seam/example/ui/Person.java 2008-04-07 22:14:59 UTC (rev 7843)
@@ -90,6 +90,8 @@
private String pet;
+
+
@ManyToOne
private Film favouriteFilm;
Modified: trunk/examples/ui/view/selectItems.xhtml
===================================================================
--- trunk/examples/ui/view/selectItems.xhtml 2008-04-07 22:14:40 UTC (rev 7842)
+++ trunk/examples/ui/view/selectItems.xhtml 2008-04-07 22:14:59 UTC (rev 7843)
@@ -74,7 +74,7 @@
<ui:define name="label">Pet</ui:define>
<ui:define name="description">The animal list is a list of Strings</ui:define>
<h:selectOneMenu value="#{person.pet}">
- <s:selectItems value="#{animals}" var="animal" label="#{animal}" noSelectionLabel="Select your pet"/>
+ <s:selectItems value="#{animals}" var="animal" label="#{animal.name} (#{animal.notes})" itemValue="#{animal.name}" noSelectionLabel="Select your pet"/>
</h:selectOneMenu>
</s:decorate>
16 years, 7 months
Seam SVN: r7842 - branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 18:14:40 -0400 (Mon, 07 Apr 2008)
New Revision: 7842
Added:
branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java
Log:
JBSEAM-2856
Added: branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java
===================================================================
--- branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java (rev 0)
+++ branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java 2008-04-07 22:14:40 UTC (rev 7842)
@@ -0,0 +1,32 @@
+package org.jboss.seam.example.ui;
+
+public class Animal
+{
+
+ public static Animal DOG = new Animal("Needs lots of exercise", "Dog");
+ public static Animal CAT = new Animal("Looks after itself", "Cat");
+ public static Animal GOLDFISH = new Animal("Needs a fishtank!", "Goldfish");
+ public static Animal RABBIT = new Animal("Often has floppy ears", "Rabbit");
+ public static Animal SNAKE = new Animal("Better make sure it doesn't bite you", "Snake");
+ public static Animal PARROT = new Animal("Peices of Eight", "Parrot");
+
+ private String notes;
+ private String name;
+
+ public Animal(String notes, String name)
+ {
+ this.notes = notes;
+ this.name = name;
+ }
+
+ public String getNotes()
+ {
+ return notes;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+}
16 years, 7 months
Seam SVN: r7841 - in branches/Seam_2_0/examples/ui: view and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 18:12:14 -0400 (Mon, 07 Apr 2008)
New Revision: 7841
Modified:
branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java
branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Person.java
branches/Seam_2_0/examples/ui/view/selectItems.xhtml
Log:
JBSEAM-2856
Modified: branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java
===================================================================
--- branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java 2008-04-07 22:00:52 UTC (rev 7840)
+++ branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/AnimalList.java 2008-04-07 22:12:14 UTC (rev 7841)
@@ -10,20 +10,20 @@
public class AnimalList
{
- private List<String> animals;
+ private List<Animal> animals;
@Unwrap
- public List<String> unwrap()
+ public List<Animal> unwrap()
{
if (animals == null)
{
- animals = new ArrayList<String>();
- animals.add("Dog");
- animals.add("Cat");
- animals.add("Goldfish");
- animals.add("Rabbit");
- animals.add("Snake");
- animals.add("Parrot");
+ animals = new ArrayList<Animal>();
+ animals.add(Animal.CAT);
+ animals.add(Animal.DOG);
+ animals.add(Animal.GOLDFISH);
+ animals.add(Animal.PARROT);
+ animals.add(Animal.RABBIT);
+ animals.add(Animal.SNAKE);
}
return animals;
}
Modified: branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Person.java
===================================================================
--- branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Person.java 2008-04-07 22:00:52 UTC (rev 7840)
+++ branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Person.java 2008-04-07 22:12:14 UTC (rev 7841)
@@ -90,6 +90,8 @@
private String pet;
+
+
@ManyToOne
private Film favouriteFilm;
Modified: branches/Seam_2_0/examples/ui/view/selectItems.xhtml
===================================================================
--- branches/Seam_2_0/examples/ui/view/selectItems.xhtml 2008-04-07 22:00:52 UTC (rev 7840)
+++ branches/Seam_2_0/examples/ui/view/selectItems.xhtml 2008-04-07 22:12:14 UTC (rev 7841)
@@ -74,7 +74,7 @@
<ui:define name="label">Pet</ui:define>
<ui:define name="description">The animal list is a list of Strings</ui:define>
<h:selectOneMenu value="#{person.pet}">
- <s:selectItems value="#{animals}" var="animal" label="#{animal}" noSelectionLabel="Select your pet"/>
+ <s:selectItems value="#{animals}" var="animal" label="#{animal.name} (#{animal.notes})" itemValue="#{animal.notes}" noSelectionLabel="Select your pet"/>
</h:selectOneMenu>
</s:decorate>
16 years, 7 months
Seam SVN: r7840 - trunk/src/main/org/jboss/seam/security/management.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 18:00:52 -0400 (Mon, 07 Apr 2008)
New Revision: 7840
Modified:
trunk/src/main/org/jboss/seam/security/management/LdapIdentityStore.java
Log:
make seam compile
Modified: trunk/src/main/org/jboss/seam/security/management/LdapIdentityStore.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/management/LdapIdentityStore.java 2008-04-07 21:05:48 UTC (rev 7839)
+++ trunk/src/main/org/jboss/seam/security/management/LdapIdentityStore.java 2008-04-07 22:00:52 UTC (rev 7840)
@@ -1197,4 +1197,16 @@
// TODO Auto-generated method stub
return null;
}
+
+ public boolean addRoleToGroup(String role, String group)
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean removeRoleFromGroup(String role, String group)
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
}
16 years, 7 months
Seam SVN: r7839 - trunk/examples/blog/resources.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-04-07 17:05:48 -0400 (Mon, 07 Apr 2008)
New Revision: 7839
Modified:
trunk/examples/blog/resources/import.sql
Log:
JBSEAM-2840
Modified: trunk/examples/blog/resources/import.sql
===================================================================
--- trunk/examples/blog/resources/import.sql 2008-04-07 20:56:49 UTC (rev 7838)
+++ trunk/examples/blog/resources/import.sql 2008-04-07 21:05:48 UTC (rev 7839)
@@ -2,4 +2,4 @@
insert into hitcount (blog_name, pageviews) values ('JBoss Seam Blog', 1000)
insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'seamtext', 'Introducing Seam Text', null, 'Seam Text is a human-friendly language for formatting text in blogs, forums and wikis. It''s easy to enter text in *emphasis*, |monospace|, ~deleted~ or ^superscript^; you can easily enter links, lists, quotes and code blocks.'+char(10)+''+char(10)+'[This is a link.=>http://hibernate.org]'+char(10)+''+char(10)+'You can *not* enter HTML entities, even escaped: \& \< \> \" \ '+char(10)+''+char(10)+'And even emoticons: ;) :-) :-{ ;-)'+char(10)+''+char(10)+'Here is an ordered list:'+char(10)+''+char(10)+'#JBoss'+char(10)+'#Seam'+char(10)+'#Hibernate'+char(10)+''+char(10)+'And this is an unordered list:'+char(10)+''+char(10)+'=jBPM'+char(10)+'=Drools'+char(10)+'=Ajax4JSF'+char(10)+'=Facelets'+char(10)+''+char(10)+'"Here is a quote from someone else"'+char(10)+''+char(10)+'`<p>Here is some code</p>`'+char(10)+''+char(10)+'And!
some plain HTML (restricted subset):'+char(10)+''+char(10)+'<table style="border:1px solid blue;"><tr><td>Foo</td><td>Bar</td></tr></table>', '2007-01-18 4:00')
insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'book', 'Seam book excerpt on InfoQ', null, 'Michael and Thomas are writing [a book=>http://safari.oreilly.com/013241273X] about Seam for [O''Reilly=>http://www.oreillynet.com/], which is apparently the hottest selling item on Rough Cuts. InfoQ are running an [excerpt=>http://www.infoq.com/articles/jboss-seam] from the first chapter.'+char(10)+''+char(10)+'Meanwhile, Norman and I have been tearing our way through JIRA issues, and so 1.1.1 will be ready to go when I get back from vacation :-)', '2006-12-19 19:00')
-insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'roadmap11', 'Seam Roadmap', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user\-visible. Now that this hard stuff is !
out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:'+char(10)+''+char(10)+'++++Spring integration package'+char(10)+''+char(10)+'We''re seeing regular requests from people who have existing DAOs and business logic written using the Spring Framework and want a migration path to Seam that lets them re\-use this existing code unchanged. The planned Spring integration package will provide:'+char(10)+''+char(10)+'=injection of Spring beans into Seam components, using |@In|'+char(10)+'=access to the Spring beans in the EL'+char(10)+'=injection of Seam components into Spring beans using Spring XML'+char(10)+'=integration of the Spring DAO framework with Seam\-managed persistence contexts'+char(10)+''+char(10)+'So, you''ll be able to easily call existing code written in Spring from your Seam component, JSF views, or jBPM process definitions, and have that code be able to take advantage of Seam''s conversation\-s!
cope persistence contexts. For the first time, you can have Spring cod
e that isn''t vulnerable to |LazyInitializationException|!'+char(10)+'We''ll probably even go as far as:'+char(10)+''+char(10)+'=The ability to treat a Spring bean as a Seam |STATELESS JAVA\_BEAN| component, with a full stack of Seam interceptors'+char(10)+''+char(10)+'In which case a class can simultaneously be a Seam component and a Spring bean, the same way a class can simultaneously be a JSF managed beans, an EJB3 session bean, and a Seam component today.'+char(10)+''+char(10)+'++++Seam\/Security'+char(10)+''+char(10)+'The most\-requested feature in the Seam forums is security. Unfortunately, the security\-related specifications did not go through the same process of self\-examination and improvement in Java EE 5 that some other specifications (EJB) did, and so there is now a yawning hole, exactly where the platform should strongest. (Today the most inadequate specifications in Java are the portlet spec, the atrocious servlet spec, and any JSR relating to security.) Seam!
1.1.5 will introduce Seam\/Security, an extension to Seam that provides:'+char(10)+''+char(10)+'=a usable authentication layer'+char(10)+'=an ACL based permissioning model'+char(10)+'=an optional (customizable) user\/role model'+char(10)+'=a totally cool (at least we think so) authorization mechanism based upon EL and Drools'+char(10)+''+char(10)+'The permissioning model lets you do \"row level\" security by writing rules that refer to the actual object instance that we are checking permissions for.'+char(10)+''+char(10)+'A subsequent release will also provide a console for administration of permissions, users\/roles and rules. OK, I''m sure that sounds pretty vague now, but stay tuned.'+char(10)+''+char(10)+'++++Seam and iText'+char(10)+'Generating PDF is amazingly unsexy, but also incredibly useful. Seam 1.1.5 will provide a library of JSF controls for iText, letting you quickly create JSF templates that are capable of rendering PDF, Text and RTF. This will be as easy to!
use as:'+char(10)+''+char(10)+'`<it:document xmlns:f="http://java.sun
.com/jsf/core"'+char(10)+' xmlns:it="http://jboss.com/products/seam/pdf">'+char(10)+' <it:paragraph>Hello World!</it:paragraph>'+char(10)+'</f:view>`'+char(10)+''+char(10)+'++++Integration of seam\-gen with Hibernate Tools'+char(10)+''+char(10)+'Rails has made commandline tools popular for web development, and was the inspiration behind seam\-gen. But I''m one of those recalcitrant IDE kinda guys, and I expect tooling to be properly integrated with Eclipse. We''ll be updating the GUI for Hibernate Tools to take advantage of the new templates in Seam 1.1, which will let you do everything you can do today using seam\-gen, totally within Eclipse.'+char(10)+''+char(10)+'++++Seam\/WS'+char(10)+''+char(10)+'We''ve been promising for months that Seam is the killer component model for SOA. Unfortunately, we got so bogged down in Seam 1.1 that we''re well behind on our original plan to deliver this in 2006.'+char(10)+''+char(10)+'Seam 1.2 will integrate Seam with the Java E!
E 5 Web Services layer and provide support for service conversations in its context model (I''ve not yet decided whether this calls for a new |SERVICE\_CONVERSATION| context, or whether it is just a different interpretation of the existing |CONVERSATION| context for a WS invocation.) Eventually, Seam\/WS will also support service orchestration and conversation recovery via jBPM.'+char(10)+''+char(10)+'Actually, Seam\/WS will just be one piece of a larger initiative to bring Seam to ESB and SOA environments, but at present this idea is mostly speculative.'+char(10)+''+char(10)+'Look for a beta release of Seam 1.2 in Q1.', '2006-12-14 15:29')
+insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'roadmap11', 'Seam Roadmap', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is o!
ut of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:'+char(10)+''+char(10)+'++++Spring integration package'+char(10)+''+char(10)+'We''re seeing regular requests from people who have existing DAOs and business logic written using the Spring Framework and want a migration path to Seam that lets them re-use this existing code unchanged. The planned Spring integration package will provide:'+char(10)+''+char(10)+'=injection of Spring beans into Seam components, using |@In|'+char(10)+'=access to the Spring beans in the EL'+char(10)+'=injection of Seam components into Spring beans using Spring XML'+char(10)+'=integration of the Spring DAO framework with Seam-managed persistence contexts'+char(10)+''+char(10)+'So, you''ll be able to easily call existing code written in Spring from your Seam component, JSF views, or jBPM process definitions, and have that code be able to take advantage of Seam''s conversation-scope!
persistence contexts. For the first time, you can have Spring code th
at isn''t vulnerable to |LazyInitializationException|!'+char(10)+'We''ll probably even go as far as:'+char(10)+''+char(10)+'=The ability to treat a Spring bean as a Seam |STATELESS JAVA\_BEAN| component, with a full stack of Seam interceptors'+char(10)+''+char(10)+'In which case a class can simultaneously be a Seam component and a Spring bean, the same way a class can simultaneously be a JSF managed beans, an EJB3 session bean, and a Seam component today.'+char(10)+''+char(10)+'++++Seam/Security'+char(10)+''+char(10)+'The most-requested feature in the Seam forums is security. Unfortunately, the security-related specifications did not go through the same process of self-examination and improvement in Java EE 5 that some other specifications (EJB) did, and so there is now a yawning hole, exactly where the platform should strongest. (Today the most inadequate specifications in Java are the portlet spec, the atrocious servlet spec, and any JSR relating to security.) Seam 1.1.5 w!
ill introduce Seam/Security, an extension to Seam that provides:'+char(10)+''+char(10)+'=a usable authentication layer'+char(10)+'=an ACL based permissioning model'+char(10)+'=an optional (customizable) user/role model'+char(10)+'=a totally cool (at least we think so) authorization mechanism based upon EL and Drools'+char(10)+''+char(10)+'The permissioning model lets you do \"row level\" security by writing rules that refer to the actual object instance that we are checking permissions for.'+char(10)+''+char(10)+'A subsequent release will also provide a console for administration of permissions, users/roles and rules. OK, I''m sure that sounds pretty vague now, but stay tuned.'+char(10)+''+char(10)+'++++Seam and iText'+char(10)+'Generating PDF is amazingly unsexy, but also incredibly useful. Seam 1.1.5 will provide a library of JSF controls for iText, letting you quickly create JSF templates that are capable of rendering PDF, Text and RTF. This will be as easy to use as:'+c!
har(10)+''+char(10)+'`<it:document xmlns:f="http://java.sun.com/jsf/co
re"'+char(10)+' xmlns:it="http://jboss.com/products/seam/pdf">'+char(10)+' <it:paragraph>Hello World!</it:paragraph>'+char(10)+'</f:view>`'+char(10)+''+char(10)+'++++Integration of seam-gen with Hibernate Tools'+char(10)+''+char(10)+'Rails has made commandline tools popular for web development, and was the inspiration behind seam-gen. But I''m one of those recalcitrant IDE kinda guys, and I expect tooling to be properly integrated with Eclipse. We''ll be updating the GUI for Hibernate Tools to take advantage of the new templates in Seam 1.1, which will let you do everything you can do today using seam-gen, totally within Eclipse.'+char(10)+''+char(10)+'++++Seam/WS'+char(10)+''+char(10)+'We''ve been promising for months that Seam is the killer component model for SOA. Unfortunately, we got so bogged down in Seam 1.1 that we''re well behind on our original plan to deliver this in 2006.'+char(10)+''+char(10)+'Seam 1.2 will integrate Seam with the Java EE 5 Web Service!
s layer and provide support for service conversations in its context model (I''ve not yet decided whether this calls for a new |SERVICE\_CONVERSATION| context, or whether it is just a different interpretation of the existing |CONVERSATION| context for a WS invocation.) Eventually, Seam/WS will also support service orchestration and conversation recovery via jBPM.'+char(10)+''+char(10)+'Actually, Seam/WS will just be one piece of a larger initiative to bring Seam to ESB and SOA environments, but at present this idea is mostly speculative.'+char(10)+''+char(10)+'Look for a beta release of Seam 1.2 in Q1.', '2006-12-14 15:29')
16 years, 7 months
Seam SVN: r7838 - branches/Seam_2_0/examples/blog/resources.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-04-07 16:56:49 -0400 (Mon, 07 Apr 2008)
New Revision: 7838
Modified:
branches/Seam_2_0/examples/blog/resources/import.sql
Log:
JBSEAM-2840
Modified: branches/Seam_2_0/examples/blog/resources/import.sql
===================================================================
--- branches/Seam_2_0/examples/blog/resources/import.sql 2008-04-07 17:28:37 UTC (rev 7837)
+++ branches/Seam_2_0/examples/blog/resources/import.sql 2008-04-07 20:56:49 UTC (rev 7838)
@@ -2,4 +2,4 @@
insert into hitcount (blog_name, pageviews) values ('JBoss Seam Blog', 1000)
insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'seamtext', 'Introducing Seam Text', null, 'Seam Text is a human-friendly language for formatting text in blogs, forums and wikis. It''s easy to enter text in *emphasis*, |monospace|, ~deleted~ or ^superscript^; you can easily enter links, lists, quotes and code blocks.'+char(10)+''+char(10)+'[This is a link.=>http://hibernate.org]'+char(10)+''+char(10)+'You can *not* enter HTML entities, even escaped: \& \< \> \" \ '+char(10)+''+char(10)+'And even emoticons: ;) :-) :-{ ;-)'+char(10)+''+char(10)+'Here is an ordered list:'+char(10)+''+char(10)+'#JBoss'+char(10)+'#Seam'+char(10)+'#Hibernate'+char(10)+''+char(10)+'And this is an unordered list:'+char(10)+''+char(10)+'=jBPM'+char(10)+'=Drools'+char(10)+'=Ajax4JSF'+char(10)+'=Facelets'+char(10)+''+char(10)+'"Here is a quote from someone else"'+char(10)+''+char(10)+'`<p>Here is some code</p>`'+char(10)+''+char(10)+'And!
some plain HTML (restricted subset):'+char(10)+''+char(10)+'<table style="border:1px solid blue;"><tr><td>Foo</td><td>Bar</td></tr></table>', '2007-01-18 4:00')
insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'book', 'Seam book excerpt on InfoQ', null, 'Michael and Thomas are writing [a book=>http://safari.oreilly.com/013241273X] about Seam for [O''Reilly=>http://www.oreillynet.com/], which is apparently the hottest selling item on Rough Cuts. InfoQ are running an [excerpt=>http://www.infoq.com/articles/jboss-seam] from the first chapter.'+char(10)+''+char(10)+'Meanwhile, Norman and I have been tearing our way through JIRA issues, and so 1.1.1 will be ready to go when I get back from vacation :-)', '2006-12-19 19:00')
-insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'roadmap11', 'Seam Roadmap', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user\-visible. Now that this hard stuff is !
out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:'+char(10)+''+char(10)+'++++Spring integration package'+char(10)+''+char(10)+'We''re seeing regular requests from people who have existing DAOs and business logic written using the Spring Framework and want a migration path to Seam that lets them re\-use this existing code unchanged. The planned Spring integration package will provide:'+char(10)+''+char(10)+'=injection of Spring beans into Seam components, using |@In|'+char(10)+'=access to the Spring beans in the EL'+char(10)+'=injection of Seam components into Spring beans using Spring XML'+char(10)+'=integration of the Spring DAO framework with Seam\-managed persistence contexts'+char(10)+''+char(10)+'So, you''ll be able to easily call existing code written in Spring from your Seam component, JSF views, or jBPM process definitions, and have that code be able to take advantage of Seam''s conversation\-s!
cope persistence contexts. For the first time, you can have Spring cod
e that isn''t vulnerable to |LazyInitializationException|!'+char(10)+'We''ll probably even go as far as:'+char(10)+''+char(10)+'=The ability to treat a Spring bean as a Seam |STATELESS JAVA\_BEAN| component, with a full stack of Seam interceptors'+char(10)+''+char(10)+'In which case a class can simultaneously be a Seam component and a Spring bean, the same way a class can simultaneously be a JSF managed beans, an EJB3 session bean, and a Seam component today.'+char(10)+''+char(10)+'++++Seam\/Security'+char(10)+''+char(10)+'The most\-requested feature in the Seam forums is security. Unfortunately, the security\-related specifications did not go through the same process of self\-examination and improvement in Java EE 5 that some other specifications (EJB) did, and so there is now a yawning hole, exactly where the platform should strongest. (Today the most inadequate specifications in Java are the portlet spec, the atrocious servlet spec, and any JSR relating to security.) Seam!
1.1.5 will introduce Seam\/Security, an extension to Seam that provides:'+char(10)+''+char(10)+'=a usable authentication layer'+char(10)+'=an ACL based permissioning model'+char(10)+'=an optional (customizable) user\/role model'+char(10)+'=a totally cool (at least we think so) authorization mechanism based upon EL and Drools'+char(10)+''+char(10)+'The permissioning model lets you do \"row level\" security by writing rules that refer to the actual object instance that we are checking permissions for.'+char(10)+''+char(10)+'A subsequent release will also provide a console for administration of permissions, users\/roles and rules. OK, I''m sure that sounds pretty vague now, but stay tuned.'+char(10)+''+char(10)+'++++Seam and iText'+char(10)+'Generating PDF is amazingly unsexy, but also incredibly useful. Seam 1.1.5 will provide a library of JSF controls for iText, letting you quickly create JSF templates that are capable of rendering PDF, Text and RTF. This will be as easy to!
use as:'+char(10)+''+char(10)+'`<it:document xmlns:f="http://java.sun
.com/jsf/core"'+char(10)+' xmlns:it="http://jboss.com/products/seam/pdf">'+char(10)+' <it:paragraph>Hello World!</it:paragraph>'+char(10)+'</f:view>`'+char(10)+''+char(10)+'++++Integration of seam\-gen with Hibernate Tools'+char(10)+''+char(10)+'Rails has made commandline tools popular for web development, and was the inspiration behind seam\-gen. But I''m one of those recalcitrant IDE kinda guys, and I expect tooling to be properly integrated with Eclipse. We''ll be updating the GUI for Hibernate Tools to take advantage of the new templates in Seam 1.1, which will let you do everything you can do today using seam\-gen, totally within Eclipse.'+char(10)+''+char(10)+'++++Seam\/WS'+char(10)+''+char(10)+'We''ve been promising for months that Seam is the killer component model for SOA. Unfortunately, we got so bogged down in Seam 1.1 that we''re well behind on our original plan to deliver this in 2006.'+char(10)+''+char(10)+'Seam 1.2 will integrate Seam with the Java E!
E 5 Web Services layer and provide support for service conversations in its context model (I''ve not yet decided whether this calls for a new |SERVICE\_CONVERSATION| context, or whether it is just a different interpretation of the existing |CONVERSATION| context for a WS invocation.) Eventually, Seam\/WS will also support service orchestration and conversation recovery via jBPM.'+char(10)+''+char(10)+'Actually, Seam\/WS will just be one piece of a larger initiative to bring Seam to ESB and SOA environments, but at present this idea is mostly speculative.'+char(10)+''+char(10)+'Look for a beta release of Seam 1.2 in Q1.', '2006-12-14 15:29')
+insert into blogentry (blog_name, id, title, excerpt, body, date) values ('JBoss Seam Blog', 'roadmap11', 'Seam Roadmap', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is out of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:', 'The [1.1 release=>http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/12/13#seam11-goes-ga] involved a lot of hard work in the guts of Seam, refactoring and fixing bugs, and working with \"tricky\" code that handles concerns like clustering and concurrency. Sure, there are many new features, but a lot of the real work is less user-visible. Now that this hard stuff is o!
ut of the way, it lets us add some interesting new stuff pretty quickly. Here''s a quick roadmap for the next few months:'+char(10)+''+char(10)+'++++Spring integration package'+char(10)+''+char(10)+'We''re seeing regular requests from people who have existing DAOs and business logic written using the Spring Framework and want a migration path to Seam that lets them re-use this existing code unchanged. The planned Spring integration package will provide:'+char(10)+''+char(10)+'=injection of Spring beans into Seam components, using |@In|'+char(10)+'=access to the Spring beans in the EL'+char(10)+'=injection of Seam components into Spring beans using Spring XML'+char(10)+'=integration of the Spring DAO framework with Seam-managed persistence contexts'+char(10)+''+char(10)+'So, you''ll be able to easily call existing code written in Spring from your Seam component, JSF views, or jBPM process definitions, and have that code be able to take advantage of Seam''s conversation-scope!
persistence contexts. For the first time, you can have Spring code th
at isn''t vulnerable to |LazyInitializationException|!'+char(10)+'We''ll probably even go as far as:'+char(10)+''+char(10)+'=The ability to treat a Spring bean as a Seam |STATELESS JAVA\_BEAN| component, with a full stack of Seam interceptors'+char(10)+''+char(10)+'In which case a class can simultaneously be a Seam component and a Spring bean, the same way a class can simultaneously be a JSF managed beans, an EJB3 session bean, and a Seam component today.'+char(10)+''+char(10)+'++++Seam/Security'+char(10)+''+char(10)+'The most-requested feature in the Seam forums is security. Unfortunately, the security-related specifications did not go through the same process of self-examination and improvement in Java EE 5 that some other specifications (EJB) did, and so there is now a yawning hole, exactly where the platform should strongest. (Today the most inadequate specifications in Java are the portlet spec, the atrocious servlet spec, and any JSR relating to security.) Seam 1.1.5 w!
ill introduce Seam/Security, an extension to Seam that provides:'+char(10)+''+char(10)+'=a usable authentication layer'+char(10)+'=an ACL based permissioning model'+char(10)+'=an optional (customizable) user/role model'+char(10)+'=a totally cool (at least we think so) authorization mechanism based upon EL and Drools'+char(10)+''+char(10)+'The permissioning model lets you do \"row level\" security by writing rules that refer to the actual object instance that we are checking permissions for.'+char(10)+''+char(10)+'A subsequent release will also provide a console for administration of permissions, users/roles and rules. OK, I''m sure that sounds pretty vague now, but stay tuned.'+char(10)+''+char(10)+'++++Seam and iText'+char(10)+'Generating PDF is amazingly unsexy, but also incredibly useful. Seam 1.1.5 will provide a library of JSF controls for iText, letting you quickly create JSF templates that are capable of rendering PDF, Text and RTF. This will be as easy to use as:'+c!
har(10)+''+char(10)+'`<it:document xmlns:f="http://java.sun.com/jsf/co
re"'+char(10)+' xmlns:it="http://jboss.com/products/seam/pdf">'+char(10)+' <it:paragraph>Hello World!</it:paragraph>'+char(10)+'</f:view>`'+char(10)+''+char(10)+'++++Integration of seam-gen with Hibernate Tools'+char(10)+''+char(10)+'Rails has made commandline tools popular for web development, and was the inspiration behind seam-gen. But I''m one of those recalcitrant IDE kinda guys, and I expect tooling to be properly integrated with Eclipse. We''ll be updating the GUI for Hibernate Tools to take advantage of the new templates in Seam 1.1, which will let you do everything you can do today using seam-gen, totally within Eclipse.'+char(10)+''+char(10)+'++++Seam/WS'+char(10)+''+char(10)+'We''ve been promising for months that Seam is the killer component model for SOA. Unfortunately, we got so bogged down in Seam 1.1 that we''re well behind on our original plan to deliver this in 2006.'+char(10)+''+char(10)+'Seam 1.2 will integrate Seam with the Java EE 5 Web Service!
s layer and provide support for service conversations in its context model (I''ve not yet decided whether this calls for a new |SERVICE\_CONVERSATION| context, or whether it is just a different interpretation of the existing |CONVERSATION| context for a WS invocation.) Eventually, Seam/WS will also support service orchestration and conversation recovery via jBPM.'+char(10)+''+char(10)+'Actually, Seam/WS will just be one piece of a larger initiative to bring Seam to ESB and SOA environments, but at present this idea is mostly speculative.'+char(10)+''+char(10)+'Look for a beta release of Seam 1.2 in Q1.', '2006-12-14 15:29')
16 years, 7 months
Seam SVN: r7837 - branches/Seam_2_0/build.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 13:28:37 -0400 (Mon, 07 Apr 2008)
New Revision: 7837
Modified:
branches/Seam_2_0/build/common.build.xml
Log:
correct modules for dependencyReport
Modified: branches/Seam_2_0/build/common.build.xml
===================================================================
--- branches/Seam_2_0/build/common.build.xml 2008-04-07 17:25:45 UTC (rev 7836)
+++ branches/Seam_2_0/build/common.build.xml 2008-04-07 17:28:37 UTC (rev 7837)
@@ -282,7 +282,7 @@
<sequential>
<maven target="-f @{pom} dependency:tree" basedir="${seam.dir}">
<arg line="-DoutputFile=@{output}" />
- <arg line="" />
+ <arg line="-q" />
</maven>
</sequential>
</macrodef>
@@ -323,9 +323,7 @@
<outputDependencyReport module="mail" />
<outputDependencyReport module="pdf" />
<outputDependencyReport module="ioc" />
- <outputDependencyReport module="wicket" />
<outputDependencyReport module="jbas5" />
- <outputDependencyReport module="jul" />
<echo>Dependency Report written to ${seam.dir}/dependency-report.txt</echo>
</target>
16 years, 7 months
Seam SVN: r7836 - in branches/Seam_2_0: doc/Seam_Reference_Guide/en and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 13:25:45 -0400 (Mon, 07 Apr 2008)
New Revision: 7836
Added:
branches/Seam_2_0/build/maven/
Modified:
branches/Seam_2_0/build/common.build.xml
branches/Seam_2_0/build/parent.pom.xml
branches/Seam_2_0/build/root.pom.xml
branches/Seam_2_0/build/utilities.build.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
Log:
Upgrade to maven 2.0.8 and add dependencyReport target
Modified: branches/Seam_2_0/build/common.build.xml
===================================================================
--- branches/Seam_2_0/build/common.build.xml 2008-04-07 17:22:00 UTC (rev 7835)
+++ branches/Seam_2_0/build/common.build.xml 2008-04-07 17:25:45 UTC (rev 7836)
@@ -275,6 +275,60 @@
</sequential>
</macrodef>
+ <macrodef name="dependencyReport">
+ <attribute name="module" />
+ <attribute name="pom" default="${tmp.dir}/poms/(a){module}.pom" />
+ <attribute name="output" default="${tmp.dir}/poms/(a){module}-dependency-report.txt" />
+ <sequential>
+ <maven target="-f @{pom} dependency:tree" basedir="${seam.dir}">
+ <arg line="-DoutputFile=@{output}" />
+ <arg line="" />
+ </maven>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="outputDependencyReport">
+ <attribute name="module" />
+ <attribute name="output" default="${seam.dir}/dependency-report.txt"/>
+ <sequential>
+ <dependencyReport module="@{module}" />
+ <concat append="true" destfile="@{output}">
+ <header>
+
+
+-----------------------------------------
+Dependency Tree for @{module}
+*****************************************
+-----------------------------------------
+
+</header>
+ <fileset file="${tmp.dir}/poms/(a){module}-dependency-report.txt"/>
+ </concat>
+ </sequential>
+ </macrodef>
+
+ <target name="dependencyReport" depends="initpoms" description="Build dependency report for all modules">
+ <delete file="${seam.dir}/dependency-report.txt" />
+ <concat append="true" destfile="${seam.dir}/dependency-report.txt">
+-----------------------------------------
+Dependencies for Seam ${complete.version}
+*****************************************
+-----------------------------------------
+
+ </concat>
+ <outputDependencyReport module="core" />
+ <outputDependencyReport module="debug" />
+ <outputDependencyReport module="ui" />
+ <outputDependencyReport module="remoting" />
+ <outputDependencyReport module="mail" />
+ <outputDependencyReport module="pdf" />
+ <outputDependencyReport module="ioc" />
+ <outputDependencyReport module="wicket" />
+ <outputDependencyReport module="jbas5" />
+ <outputDependencyReport module="jul" />
+ <echo>Dependency Report written to ${seam.dir}/dependency-report.txt</echo>
+ </target>
+
<target name="initdav">
<artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2"/>
</target>
Copied: branches/Seam_2_0/build/maven (from rev 7835, trunk/build/maven)
Modified: branches/Seam_2_0/build/parent.pom.xml
===================================================================
--- branches/Seam_2_0/build/parent.pom.xml 2008-04-07 17:22:00 UTC (rev 7835)
+++ branches/Seam_2_0/build/parent.pom.xml 2008-04-07 17:25:45 UTC (rev 7836)
@@ -14,27 +14,18 @@
<artifactId>root</artifactId>
<version>@seam.version@</version>
</parent>
- <!-- <pluginRepositories>
- <pluginRepository>
- <snapshots />
- <id>m2-snapshot</id>
- <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
- </pluginRepository>
- </pluginRepositories>-->
- <!-- Uncomment to enable newer version of dependency plugin which has the
- dependency:tree command useful for analyzing the dependency tree of a module
- You'll also need the m2-snapshot repository enabled -->
+
<build>
- <!-- <pluginManagement>
+ <pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
- <version>2.0-alpha-5-SNAPSHOT</version>
+ <version>2.0</version>
</plugin>
</plugins>
- </pluginManagement>-->
+ </pluginManagement>
</build>
<!--
Modified: branches/Seam_2_0/build/root.pom.xml
===================================================================
--- branches/Seam_2_0/build/root.pom.xml 2008-04-07 17:22:00 UTC (rev 7835)
+++ branches/Seam_2_0/build/root.pom.xml 2008-04-07 17:25:45 UTC (rev 7836)
@@ -882,12 +882,6 @@
<version>2.2.1</version>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.0</version>
- </plugin>
-
</plugins>
</pluginManagement>
</build>
Modified: branches/Seam_2_0/build/utilities.build.xml
===================================================================
--- branches/Seam_2_0/build/utilities.build.xml 2008-04-07 17:22:00 UTC (rev 7835)
+++ branches/Seam_2_0/build/utilities.build.xml 2008-04-07 17:25:45 UTC (rev 7836)
@@ -141,7 +141,7 @@
<sequential>
<java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}">
<classpath>
- <fileset dir="${maven.dir}/core/boot">
+ <fileset dir="${maven.dir}/boot">
<include name="*.jar" />
</fileset>
<fileset dir="${maven.dir}/bin">
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-04-07 17:22:00 UTC (rev 7835)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-04-07 17:25:45 UTC (rev 7836)
@@ -145,7 +145,7 @@
<title></title>
<programlistingco>
<areaspec>
- <area id="registration-entity-annotation" coords="1"/>
+
<area id="registration-name-annotation" coords="2"/>
<area id="registration-scope-annotation" coords="3"/>
<area id="registration-table-annotation" coords="4"/>
@@ -154,7 +154,7 @@
<area id="registration-notnull" coords="22"/>
<area id="registration-id-annotation" coords="44"/>
</areaspec>
- <programlisting><![CDATA[@Entity
+ <programlisting role="JAVA"><![CDATA[@Entity <co id="registration-entity-annotation"/>
@Name("user")
@Scope(SESSION)
@Table(name="users")
16 years, 7 months
Seam SVN: r7835 - branches/Seam_2_0/build.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-04-07 13:22:00 -0400 (Mon, 07 Apr 2008)
New Revision: 7835
Removed:
branches/Seam_2_0/build/maven/
Log:
Prep for maven upgrade
16 years, 7 months