[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs ...
Christian Bauer
christian at hibernate.org
Thu Apr 19 05:32:07 EDT 2007
User: cbauer
Date: 07/04/19 05:32:07
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs
WikiPreferences.java DocumentEditorPreferences.java
Added: examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs
CommentsPreferences.java
Log:
Fixed comments and blog directory
Revision Changes Path
1.5 +1 -1 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/WikiPreferences.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: WikiPreferences.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/WikiPreferences.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- WikiPreferences.java 8 Apr 2007 15:10:32 -0000 1.4
+++ WikiPreferences.java 19 Apr 2007 09:32:07 -0000 1.5
@@ -36,7 +36,7 @@
@Preference(description = "06. Append this suffix to permanent identifier", visibility = PreferenceVisibility.SYSTEM)
@Length(min = 2, max = 20)
- // TODO: After Hibernate upgrade add this: @org.hibernate.validator.Regex("\\.[a-zA-z]+")
+ @org.hibernate.validator.Pattern(regex="\\.[a-zA-z]+")
private String permlinkSuffix;
public String getBaseUrl() {
1.2 +0 -1 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/DocumentEditorPreferences.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DocumentEditorPreferences.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/DocumentEditorPreferences.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- DocumentEditorPreferences.java 2 Apr 2007 18:25:05 -0000 1.1
+++ DocumentEditorPreferences.java 19 Apr 2007 09:32:07 -0000 1.2
@@ -6,7 +6,6 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.ScopeType;
-import org.hibernate.validator.Length;
import org.hibernate.validator.Range;
import java.io.Serializable;
1.1 date: 2007/04/19 09:32:07; author: cbauer; state: Exp;jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/CommentsPreferences.java
Index: CommentsPreferences.java
===================================================================
package org.jboss.seam.wiki.core.action.prefs;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Observer;
import org.jboss.seam.ScopeType;
import org.jboss.seam.wiki.preferences.Preference;
import org.jboss.seam.wiki.preferences.PreferenceVisibility;
import org.jboss.seam.wiki.preferences.PreferenceSupport;
import java.io.Serializable;
@Name("commentsPreferences")
@Scope(ScopeType.CONVERSATION)
@Preference(description = "A. Visitor Comments", visibility = PreferenceVisibility.USER)
public class CommentsPreferences extends PreferenceSupport implements Serializable {
public String getCurrentUserVariable() { return "currentUser"; }
public String getCurrentInstanceVariable() { return "currentDocument"; }
@Observer("PreferenceEditor.refresh.commentsPreferences")
public void refreshProperties() { super.refreshProperties(); }
@Preference(description = "01. List comments ascending by date (or descending)", visibility = PreferenceVisibility.USER)
private boolean listAscending;
}
More information about the jboss-cvs-commits
mailing list