JBoss Rich Faces SVN: r12533 - in trunk/test-applications/realworld/web/src/main/webapp: includes/fileUpload and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-02-02 14:28:13 -0500 (Mon, 02 Feb 2009)
New Revision: 12533
Modified:
trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/multyMode.xhtml
trunk/test-applications/realworld/web/src/main/webapp/index.xhtml
Log:
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/multyMode.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/index.xhtml
===================================================================
(Binary files differ)
15 years, 11 months
JBoss Rich Faces SVN: r12532 - in trunk/test-applications/realworld: ejb/src/main/resources and 14 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-02-02 14:25:27 -0500 (Mon, 02 Feb 2009)
New Revision: 12532
Added:
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/NewsManager.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/RenderLogic2.java
trunk/test-applications/realworld/web/src/main/webapp/includes/image/scroller.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/imagePreview-backup.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/news/
trunk/test-applications/realworld/web/src/main/webapp/includes/news/recent.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/whatNew.xhtml
trunk/test-applications/realworld/web/src/main/webapp/index-backup.xhtml
trunk/test-applications/realworld/web/src/main/webapp/layout/menu-backup.xhtml
trunk/test-applications/realworld/web/src/main/webapp/layout/panelBar-backup.xhtml
trunk/test-applications/realworld/web/src/main/webapp/layout/template3.xhtml
Removed:
trunk/test-applications/realworld/web/src/main/webapp/main.xhtml
Modified:
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/IAlbumAction.java
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ISearchService.java
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/SearchService.java
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/fileupload/FileUploadBean.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/AlbumManager.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationEnum.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationHelper.java
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/ConversationState.java
trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/pages.xml
trunk/test-applications/realworld/web/src/main/webapp/includes/contextMenu/CMForAlbum.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/fileUploadPanel.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/fileUploader.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/image/comments.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/image/imagePreview.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/image/mainImage.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/image/slideshow.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/imagePreview.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/index/login.xhtml
trunk/test-applications/realworld/web/src/main/webapp/includes/misc/slideShowPooler.xhtml
trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml
trunk/test-applications/realworld/web/src/main/webapp/layout/panelBar.xhtml
Log:
Modified: trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -20,6 +20,8 @@
*/
package org.richfaces.realworld.service;
+import java.util.List;
+
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
@@ -79,5 +81,9 @@
}
em.flush();
}
+
+ public List<Album> getSharedAlbums() {
+ return em.createQuery("from Album a where a.shared=true").getResultList();
+ }
}
Modified: trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/IAlbumAction.java
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/IAlbumAction.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/IAlbumAction.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -20,6 +20,8 @@
*/
package org.richfaces.realworld.service;
+import java.util.List;
+
import javax.ejb.Local;
import org.richfaces.realworld.domain.Album;
@@ -38,4 +40,6 @@
public abstract void renameAllImagesFromAlbumAndChilds(Album dragValue,
String albumOld, String albumNew);
+ public abstract List<Album> getSharedAlbums();
+
}
\ No newline at end of file
Modified: trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ISearchService.java
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ISearchService.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ISearchService.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -38,4 +38,16 @@
public abstract List<String> getAllCameras();
public abstract List<String> getAllMetatags();
+
+ public abstract List<Image> getRecentImages();
+
+ public abstract List<Image> getLastFriendImages();
+
+ public abstract List<Image> getTopImages();
+
+ public abstract List<Image> getTopCommentedImages();
+
+ public abstract List<Image> getRecentCommentedImages();
+
+ public abstract List<Image> getLastCommentedYourImages();
}
\ No newline at end of file
Modified: trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/SearchService.java
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/SearchService.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/SearchService.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -240,4 +240,40 @@
}
return true;
}
+
+ public List<Image> getLastCommentedYourImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
+
+ public List<Image> getLastFriendImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
+
+ public List<Image> getRecentCommentedImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
+
+ public List<Image> getRecentImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
+
+ public List<Image> getTopCommentedImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
+
+ public List<Image> getTopImages() {
+ String fullQuery = Constants.SEARCH_RELEVANT_QUERY_BEGIN + Constants.SEARCH_POPULAR_QUERY_END;
+ Query prepared = em.createQuery(fullQuery).setMaxResults(5);
+ return prepared.getResultList();
+ }
}
Modified: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 19:25:27 UTC (rev 12532)
@@ -7,15 +7,8 @@
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (1, 'Cars', 'Photo of my dog', true, 1, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (2, 'Tetki', 'Simple Album 2', true, 1, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (3, 'Football', 'Simple Album 3', true, 1, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (4, 'Japan', 'Simple Album', true, 3, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (5, 'Music', 'Simple Album 2', false, 3, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (6, 'Child1', 'Simple Album 2', true, 1, 1);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (7, 'Child2', 'Simple Album 2', true, 1, 1);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (11, 'Water', 'Water Photos', true, 6, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (12, 'Bmw', 'BMW Cars Photos', true, 6, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (8, 'Album1', 'Favotite', true, 5, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (9, 'Planes', 'Planes', true, 5, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (10, 'Moon', 'Moon', true, 5, 8);
INSERT INTO Ranks(rank_id, total, hits) VALUES (1, 100, 21);
INSERT INTO Ranks(rank_id, total, hits) VALUES (2, 200, 21);
INSERT INTO Ranks(rank_id, total, hits) VALUES (3, 100, 31);
@@ -101,7 +94,7 @@
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (14, 'bdysch!!!', 'root/Football/bdysch!!!.jpg', 'Dermo sluchaetsia', '2008-12-18', 1, 14,'Canon S3', 500, 50.4, 333, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (15, 'Training', 'root/Football/euro2008_holland_wideweb__470x321,0.jpg', ' ) ', '2008-12-18', 1, 15,'Canon S3', 470, 37.3, 331, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (16, 'Also football', 'root/Football/flag_football.jpg', 'This is also football, but I do not understand it at all', '2008-12-18', 2, 16,'Canon S3', 500, 24.4, 333, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (17, 'Soccer', 'root/Football/soccer.jpg', 'Soccer differs from football', '2008-12-18', 2, 17,'Canon S3', 350, 45.3, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (17, 'Soccer', 'root/Football/Soccer.jpg', 'Soccer differs from football', '2008-12-18', 2, 17,'Canon S3', 350, 45.3, 500, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (18, 'from birds fly', 'qqqq/Japan/birds_fly.jpg', 'One of the megalopolices', '2008-12-18', 2, 18,'Canon S3', 500, 53.4, 375, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (19, 'Haruki Murakami', 'qqqq/Japan/Haruki_Murakami.jpg', 'World famous aouthor', '2008-12-18', 2, 19,'Canon S3', 500, 36, 376, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (20, 'Street fashion', 'qqqq/Japan/Japanese_Street_Fashion.jpg', 'Venture to walk in such in our streets?', '2008-12-18', 2, 20,'Canon S3', 367, 59.2, 500, '2008-12-01');
@@ -142,19 +135,19 @@
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (53, 'Water5', 'user/Water/P6191547.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 53,'Canon S3', 768, 100.0, 1024, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (54, 'Water6', 'user/Water/P7121703.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 54,'Canon S3', 768, 100.0, 1024, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (55, 'Water7', 'user/Water/P7231757.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 55,'Canon S3', 768, 100.0, 1024, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (56, 'Water8', 'user/Water/Spa53749.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 56,'Canon S3', 768, 100.0, 1024, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (56, 'Water8', 'user/Water/SPA53749.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 56,'Canon S3', 768, 100.0, 1024, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (57, 'Water9', 'user/Water/SPA537441.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 57,'Canon S3', 768, 100.0, 1024, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (58, 'Water10', 'user/Water/Spa53740.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 58,'Canon S3', 768, 100.0, 1024, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (59, 'Bmw1', 'user/Bmw/bmw-5-e39-535i-1.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 59,'Canon S3', 600, 89.0, 800, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (60, 'Bmw2', 'user/Bmw/bmw-5-e39-535i-2.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 60,'Canon S3', 600, 137.0, 800, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (61, 'Bmw3', 'user/Bmw/bmw-5-e39-535i-3.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 61,'Canon S3', 600, 116.0, 800, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (62, 'Bmw4', 'user/Bmw/bmw-5-e39-535i-4.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 62,'Canon S3', 624, 133.0, 832, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (63, 'Bmw5', 'user/Bmw/bmw-5-e39-535i-6.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 63,'Canon S3', 624, 97.0, 832, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (64, 'Bmw6', 'user/Bmw/bmw-5-e39-535i-7.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 64,'Canon S3', 624, 100.0, 832, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (65, 'Bmw7', 'user/Bmw/bmw-5-e39-535i-8.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 65,'Canon S3', 546, 96.0, 728, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (66, 'Bmw8', 'user/Bmw/bmw_525i_sedan_1.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 66,'Canon S3', 768, 284.0, 1024, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (67, 'Bmw9', 'user/Bmw/bmw_530i_3.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 67,'Canon S3', 1200, 157.0, 1600, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (68, 'Bmw10', 'user/Bmw/bmw_m5_sedan_2.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 68,'Canon S3', 768, 152.0, 1024, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (58, 'Water10', 'user/Water/SPA53740.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 58,'Canon S3', 768, 100.0, 1024, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (59, 'Bmw1', 'user/Bmw/bmw1.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 59,'Canon S3', 600, 89.0, 800, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (60, 'Bmw2', 'user/Bmw/bmw2.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 60,'Canon S3', 600, 137.0, 800, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (61, 'Bmw3', 'user/Bmw/bmw3.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 61,'Canon S3', 600, 116.0, 800, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (62, 'Bmw4', 'user/Bmw/bmw4.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 62,'Canon S3', 624, 133.0, 832, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (63, 'Bmw5', 'user/Bmw/bmw6.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 63,'Canon S3', 624, 97.0, 832, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (64, 'Bmw6', 'user/Bmw/bmw7.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 64,'Canon S3', 624, 100.0, 832, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (65, 'Bmw7', 'user/Bmw/bmw8.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 65,'Canon S3', 546, 96.0, 728, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (66, 'Bmw8', 'user/Bmw/bmw9.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 66,'Canon S3', 768, 284.0, 1024, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (67, 'Bmw9', 'user/Bmw/bmw10.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 67,'Canon S3', 1200, 157.0, 1600, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (68, 'Bmw10', 'user/Bmw/bmw112.jpg', 'BMW 5-series sedan', '2008-12-18', 12, 68,'Canon S3', 768, 152.0, 1024, '2008-12-01');
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (1, 'Beach', 1);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (22, 'Sun', 1);
@@ -209,10 +202,6 @@
INSERT INTO messages(message_id, date, message, author_id, owner_id, readed, theme, friendshipRequest) VALUES (1, '1985-01-08', 'Hello I am user', 2, 1, false, 'Hello, amarkhel', false);
INSERT INTO messages(message_id, date, message, author_id, owner_id, readed, theme, friendshipRequest) VALUES (2, '1985-01-08', 'Please, add meto your friends', 3, 1, false, 'Request for friendship', true);
INSERT INTO messages(message_id, date, message, author_id, owner_id, readed, theme, friendshipRequest) VALUES (3, '1985-01-09', 'Hello ', 1, 2, false, 'Hello, amarkhel', false);
-INSERT INTO shared_albums(album_id, user_id) VALUES(4, 1);
-INSERT INTO shared_albums(album_id, user_id) VALUES(5, 1);
-INSERT INTO shared_albums(album_id, user_id) VALUES(8, 5);
-INSERT INTO shared_albums(album_id, user_id) VALUES(9, 5);
INSERT INTO shared_images(image_id, user_id) VALUES(30, 1);
INSERT INTO shared_images(image_id, user_id) VALUES(31, 1);
INSERT INTO user_friends(user1_id, user2_id) VALUES(1, 2);
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/fileupload/FileUploadBean.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/fileupload/FileUploadBean.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/fileupload/FileUploadBean.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -31,8 +31,6 @@
import java.util.Date;
import java.util.List;
-import javax.faces.model.SelectItem;
-
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
@@ -90,12 +88,6 @@
private static final long serialVersionUID = 4969087557225414955L;
- private String selectedMode;
-
- private int fileQuantity = 1;
-
- private boolean immediateUpload = false;
-
private boolean fileUploadRendered;
public synchronized void listener(UploadEvent event) throws Exception {
@@ -186,46 +178,9 @@
public void showFileUpload(boolean result) {
this.setFileUploadRendered(result);
clearUploadData();
- setFileQuantity(Constants.MULTY_MODE_FILE_QUANTITY);
- setImmediateUpload(false);
- setSelectedMode("multy");
}
- public void changeMode() {
- if (getSelectedMode().equals(Constants.SINGLE)) {
- setFileQuantity(Constants.SINGLE_MODE_FILE_QUANTITY);
- setImmediateUpload(true);
- } else if (getSelectedMode().equals(Constants.MULTY)) {
- setFileQuantity(Constants.MULTY_MODE_FILE_QUANTITY);
- setImmediateUpload(false);
- }
- }
- public int getFileQuantity() {
- return fileQuantity;
- }
-
- public void setFileQuantity(int fileQuantity) {
- this.fileQuantity = fileQuantity;
- }
-
- public List<SelectItem> getItems() {
- List<SelectItem> list = new ArrayList<SelectItem>(2);
- list.add(new SelectItem(Constants.SINGLE, Constants.SINGLE));
- list.add(new SelectItem(Constants.MULTY, Constants.MULTY));
- return list;
- }
-
- public String getSelectedMode() {
- return selectedMode;
- }
-
- @Observer(Constants.CHANGE_MODE_FILE_UPLOAD_EVENT)
- public void setSelectedMode(String selectedMode) {
- this.selectedMode = selectedMode;
- changeMode();
- }
-
private Image constructImage(UploadItem item, FileItem file) {
Image image = new Image();
image.setUploaded(new Date());
@@ -299,12 +254,4 @@
image.setCameraModel("");
}
}
-
- public boolean isImmediateUpload() {
- return immediateUpload;
- }
-
- public void setImmediateUpload(boolean immediateUpload) {
- this.immediateUpload = immediateUpload;
- }
}
\ No newline at end of file
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/AlbumManager.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/AlbumManager.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/AlbumManager.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -20,6 +20,9 @@
*/
package org.richfaces.realworld.manager;
+import java.util.ArrayList;
+import java.util.List;
+
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
@@ -48,9 +51,12 @@
@In(required=false, create=false) @Out(required=false) TreeMyAlbumsItem treeMyAlbumsItem;
+ private Integer firstIndex = 1;
+
@In(create=true, required=true) @Out
private Album album;
+ private List<Album> sharedAlbums;
@In
private User user;
@@ -155,4 +161,80 @@
return treeMyAlbumsItem.getNode(album.getParent().getName());
}
}
+
+ public List<Album> getSharedAlbums(){
+ if(null == sharedAlbums){
+ sharedAlbums=albumAction.getSharedAlbums();
+ conversationState.setSelectedAlbum(sharedAlbums.get(0));
+ }
+ return sharedAlbums;
+ }
+
+ public void selectAlbum(Album a){
+ conversationState.setSelectedAlbum(a);
+ conversationState.setSelectedImage(null);
+ }
+
+ public void resetToAlbum(Album a){
+ conversationState.setSelectedAlbum(a);
+ conversationState.setSelectedImage(null);
+ }
+
+ public List<Integer> getAvailableIndeces() {
+ return createArrayIndeces(firstIndex);
+ }
+
+ private List<Integer> createArrayIndeces(Integer firstIndex2) {
+ List<Integer> indeces = new ArrayList<Integer>();
+ boolean ok = firstIndex2 +10 < conversationState.getSelectedAlbum().getImages().size();
+ int addon;
+ if(ok){
+ addon = 10;
+ }else{
+ addon = conversationState.getSelectedAlbum().getImages().size() - firstIndex2;
+ }
+ for(int i = firstIndex2; i <= firstIndex2 + addon; i++){
+ indeces.add(i);
+ }
+ return indeces;
+ }
+
+ public Integer getFirstIndex() {
+ return firstIndex;
+ }
+
+ public void setFirstIndex(Integer firstIndex) {
+ this.firstIndex = firstIndex;
+ }
+
+ public void prevIndeces(){
+ if(firstIndex>10){
+ firstIndex -=10;
+ }
+ else firstIndex = 1;
+ conversationState.setSelectedImage(conversationState.getSelectedAlbum().getImages().get(firstIndex));
+ }
+
+ public void nextIndeces(){
+ if(nextAvailable()){
+ firstIndex +=10;
+ }
+ conversationState.setSelectedImage(conversationState.getSelectedAlbum().getImages().get(firstIndex));
+ }
+
+ public boolean prevDisabled(){
+ return firstIndex > 10;
+ }
+
+ public boolean nextDisabled(){
+ return nextAvailable();
+ }
+
+ private boolean nextAvailable() {
+ return firstIndex +10 < conversationState.getSelectedAlbum().getImages().size();
+ }
+
+ public void selectImage(int index){
+ conversationState.setSelectedImage(conversationState.getSelectedAlbum().getImages().get(index -1));
+ }
}
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -34,6 +34,7 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.core.Conversation;
import org.jboss.seam.core.Events;
import org.jboss.seam.faces.FacesMessages;
import org.jboss.seam.log.Log;
@@ -71,6 +72,9 @@
@In FacesMessages facesMessages;
+ @In("#{conversation}") @Out
+ Conversation conversation;
+
@In(create = true)
IUserAction userAction;
@@ -80,12 +84,32 @@
@In(create=true) @Out
private ConversationState conversationState;
+ public String login(){
+ if(identity.hasRole("admin")){
+ return "";
+ }
+ String password = credentials.getPassword();
+ String username = credentials.getUsername();
+ identity.unAuthenticate();
+ credentials.setPassword(password);
+ credentials.setUsername(username);
+ try {
+ identity.authenticate();
+ } catch (LoginException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return "";
+ }
+
public boolean authenticate()
{
+
+ //System.out.print("FFFFFFFFFFFFuck");
if (wantLoginAnonymous()) {
identity.addRole(Constants.GUEST_ROLE);
userAction.loginAnonymous();
- Events.instance().raiseEvent(Constants.UPDATE_MAIN_AREA_EVENT,NavigationEnum.SEARCH);
+ //Events.instance().raiseEvent(Constants.UPDATE_MAIN_AREA_EVENT,NavigationEnum.SEARCH);
return true;
}
try {
@@ -118,7 +142,7 @@
identity.logout();
identity.unAuthenticate();
credentials.clear();
- credentials.invalidate();
+ //credentials.invalidate();
Session.instance().invalidate();
return "logout";
}
@@ -143,6 +167,24 @@
return Constants.MAIN_OUTCOME;
}
+ public String start(){
+ //System.out.println("OOOOOO");
+ if(!identity.isLoggedIn()){
+ //identity.logout();
+ //identity.unAuthenticate();
+ credentials.clear();
+ //credentials.invalidate();
+ conversation.begin();
+ try {
+ identity.authenticate();
+ } catch (LoginException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ return "";
+ }
+
private void setupCatalogForUser() {
if (!fileManager.isDirectoryPresent(credentials.getUsername())) {
fileManager.addDirectory(credentials.getUsername());
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -103,6 +103,10 @@
}
public void addAutoComment(Image image) {
+ if(null == user.getLogin()){
+ Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, new Exception("For vote on this picture you must login"));
+ return;
+ }
Comment comment = new Comment();
comment.setAuthor(user);
comment.setDate(new Date());
@@ -112,6 +116,10 @@
}
public void addComment(Image image, String message){
+ if(null == user.getLogin()){
+ Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, new Exception("For vote on this picture you must login"));
+ return;
+ }
Comment comment= new Comment();
comment.setAuthor(user);
comment.setImage(image);
Added: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/NewsManager.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/NewsManager.java (rev 0)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/NewsManager.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -0,0 +1,43 @@
+package org.richfaces.realworld.manager;
+
+import java.io.Serializable;
+import java.util.List;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.realworld.domain.Image;
+import org.richfaces.realworld.service.ISearchService;
+
+@Name("newsManager")
+(a)Scope(ScopeType.CONVERSATION)
+public class NewsManager implements Serializable {
+
+ private static final long serialVersionUID = 5071655218132021316L;
+ @In(create=true) private ISearchService searchService;
+
+ public List<Image> getRecentImages(){
+ return searchService.getRecentImages();
+ }
+
+ public List<Image> getLastFriendImages(){
+ return searchService.getLastFriendImages();
+ }
+
+ public List<Image> getTopImages(){
+ return searchService.getTopImages();
+ }
+
+ public List<Image> getTopCommentedImages(){
+ return searchService.getTopCommentedImages();
+ }
+
+ public List<Image> getRecentCommentedImages(){
+ return searchService.getRecentCommentedImages();
+ }
+
+ public List<Image> getLastCommentedYourImages(){
+ return searchService.getLastCommentedYourImages();
+ }
+}
Property changes on: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/NewsManager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationEnum.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationEnum.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationEnum.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -23,5 +23,5 @@
public enum NavigationEnum {
IMAGE_PREVIEW,
FILE_UPLOAD,
- USER_PREFS, SEARCH, READ_MESSAGES, GALLERY,
+ USER_PREFS, SEARCH, READ_MESSAGES, WHAT_NEW,
}
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationHelper.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationHelper.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/navigation/NavigationHelper.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -38,8 +38,8 @@
return NavigationEnum.USER_PREFS;
}
- public NavigationEnum getNavigationEnumGallery(){
- return NavigationEnum.GALLERY;
+ public NavigationEnum getNavigationEnumWhatNew(){
+ return NavigationEnum.WHAT_NEW;
}
public NavigationEnum getNavigationEnumSearch(){
Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/ConversationState.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/ConversationState.java 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/ConversationState.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -172,6 +172,7 @@
}
Events.instance().raiseEvent(Constants.UPDATE_MAIN_AREA_EVENT, NavigationEnum.IMAGE_PREVIEW);
setSelectedAlbum(album);
+ setSelectedImage(null);
setSelectedUser(album.getOwner());
}
@@ -212,14 +213,7 @@
this.setMainArea(NavigationEnum.FILE_UPLOAD);
}*/
- public void showFileUpload(Album item, boolean singleMode){
- String i;
- if(singleMode){
- i=Constants.SINGLE;
- }else{
- i=Constants.MULTY;
- }
- Events.instance().raiseEvent(Constants.CHANGE_MODE_FILE_UPLOAD_EVENT, i);
+ public void showFileUpload(Album item){
Events.instance().raiseEvent(Constants.FILE_UPLOAD_CLEAR_EVENT);
setSelectedAlbum(item);
this.setMainArea(NavigationEnum.FILE_UPLOAD);
@@ -285,6 +279,10 @@
setSelectedImage(null);
}
+ public boolean isSelectedImage(int index){
+ return getSelectedAlbum().getIndex(getSelectedImage()) == index -1;
+ }
+
public void incrementSlideShowIndex() {
int index = getSelectedAlbum().getIndex(getSelectedImage());
if(getSelectedAlbum().getImages().size() == index +1){
Added: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/RenderLogic2.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/RenderLogic2.java (rev 0)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/RenderLogic2.java 2009-02-02 19:25:27 UTC (rev 12532)
@@ -0,0 +1,138 @@
+package org.richfaces.realworld.util;
+
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+import java.io.Serializable;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.security.Identity;
+import org.richfaces.realworld.domain.Album;
+import org.richfaces.realworld.domain.Image;
+import org.richfaces.realworld.domain.User;
+import org.richfaces.realworld.navigation.NavigationEnum;
+import org.richfaces.realworld.service.Constants;
+
+@Name("renderLogic2")
+(a)Scope(ScopeType.CONVERSATION)
+public class RenderLogic2 implements Serializable{
+
+ @In User user;
+ @In Identity identity;
+ @In ConversationState conversationState;
+
+ private static final long serialVersionUID = 5656562187249324512L;
+
+ public boolean shouldRenderFriendFolders(){
+ return conversationState.getSelectedUser() == null;
+ }
+
+ public boolean shouldRenderFolders(){
+ return conversationState.getSelectedUser()!=null && conversationState.getSelectedImage() == null;
+ }
+
+ public boolean shouldRenderImage(){
+ return conversationState.getSelectedAlbum()!=null && conversationState.getSelectedImage() != null;
+ }
+
+ public boolean shouldRenderImageList(){
+ return conversationState.getSelectedAlbum()!=null && conversationState.getSelectedImage() == null;
+ }
+
+ public boolean isCurrentUserProfileSelected(){
+ return user.equals(conversationState.getSelectedUser());
+ }
+
+ public boolean isSecondUserProfileSelected(){
+ return conversationState.getSecondSelectedUser() != null;
+ }
+
+ public boolean isUserAlbumSelected(){
+ return conversationState.getSelectedAlbum() != null && conversationState.getSelectedAlbum().getOwner().equals(user);
+ }
+
+ public boolean isUserGuest(){
+ return !identity.hasRole(Constants.ADMIN_ROLE);
+ }
+
+ public boolean isOwner(User u){
+ return user.equals(u);
+ }
+
+ public boolean isProfileSelected(){
+ return conversationState.getMainArea() == NavigationEnum.USER_PREFS;
+ }
+
+ public boolean shouldRenderFileUpload(){
+ return conversationState.getSelectedAlbum()!=null && conversationState.getSelectedAlbum().getOwner().equals(user);
+ }
+
+ public boolean isUserSelected(){
+ return user.equals(conversationState.getSelectedUser());
+ }
+
+ public boolean isFriendSelected(){
+ return conversationState.getSelectedUser() == null || isUserFriend();
+ }
+
+ public boolean isNotFriendSelected(){
+ return !isUserSelected() && !isUserFriend();
+ }
+
+ public boolean isUserFriend(){
+ return user.getFriends() != null && user.getFriends().contains(conversationState.getSelectedUser());
+ }
+
+ public boolean isUserFriend(User u){
+ return user.getFriends() != null && user.getFriends().contains(u);
+ }
+
+ public boolean isAlbumSelected(){
+ return conversationState.getSelectedAlbum() != null;
+ }
+
+ public boolean isImageSelected(){
+ return conversationState.getSelectedImage() != null;
+ }
+
+ public boolean isAccessToAlbumGranted(Album album){
+ return album.getOwner().equals(user) || album.isShared() || isUserFriend(album.getOwner());
+ }
+
+ public boolean isUserAlbum(Album album){
+ if(album == null){
+ return false;
+ }
+ return album.getOwner().equals(user);
+ }
+
+ public boolean isFavoriteAlbum(Album album){
+ return user.getFavoriteAlbums().contains(album);
+ }
+
+ public boolean isFavoriteImage(Image image){
+ return user.getFavoriteImages().contains(image);
+ }
+
+}
Property changes on: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/util/RenderLogic2.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/pages.xml
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/pages.xml 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/pages.xml 2009-02-02 19:25:27 UTC (rev 12532)
@@ -1,43 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<pages xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"
+ xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd">
- no-conversation-view-id="/index.xhtml"
- login-view-id="/index.xhtml">
-
<page view-id="*">
<navigation>
- <rule if-outcome="home">
- <redirect view-id="/index.xhtml"/>
- </rule>
- <rule if-outcome="index">
- <redirect view-id="/index.xhtml"/>
- </rule>
<rule if-outcome="register">
<redirect view-id="/register.xhtml"/>
</rule>
- <rule if-outcome="main">
- <redirect view-id="/main.xhtml"/>
- </rule>
</navigation>
- </page>
-
- <page view-id="/index.xhtml" action="#{conversation.begin}">
-
- <navigation from-action="#{identity.login}">
- <rule if="#{identity.loggedIn and identity.hasRole('admin')}">
- <redirect view-id="/main.xhtml"/>
- </rule>
- </navigation>
-
- </page>
+ </page>
- <page view-id="/main.xhtml" login-required="true">
+ <page view-id="/index.xhtml">
+ <action if="#{!identity.isLoggedIn()}" execute="#{authenticator.start}"/>
<navigation from-action="#{authenticator.logout}">
<rule if-outcome="logout">
<end-conversation />
- <redirect view-id="/index.xhtml" />
+ <redirect view-id="/index.html"/>
</rule>
</navigation>
</page>
@@ -68,7 +47,7 @@
</exception>
<exception class="org.jboss.seam.security.NotLoggedInException">
- <redirect view-id="/home.xhtml">
+ <redirect view-id="/index.xhtml">
<message>Please log in first</message>
</redirect>
</exception>
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/contextMenu/CMForAlbum.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/fileUploadPanel.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/fileUploader.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/image/comments.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/image/imagePreview.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/image/mainImage.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/realworld/web/src/main/webapp/includes/image/scroller.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/includes/image/scroller.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/image/slideshow.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/realworld/web/src/main/webapp/includes/imagePreview-backup.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/includes/imagePreview-backup.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/imagePreview.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/index/login.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/includes/misc/slideShowPooler.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/realworld/web/src/main/webapp/includes/news/recent.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/includes/news/recent.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/realworld/web/src/main/webapp/includes/whatNew.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/includes/whatNew.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/realworld/web/src/main/webapp/index-backup.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/index-backup.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/realworld/web/src/main/webapp/layout/menu-backup.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/layout/menu-backup.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml 2009-02-02 18:40:23 UTC (rev 12531)
+++ trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml 2009-02-02 19:25:27 UTC (rev 12532)
@@ -11,12 +11,11 @@
<a4j:form id="menuform">
<rich:toolBar height="37" styleClass="main-menu-toolbar" id="menu" contentClass="main-menu-toolbar-content">
-
<rich:toolBarGroup >
- <h:graphicImage rendered="#{!renderLogic.isUserGuest()}"
+ <h:graphicImage rendered="false"
value="/img/shell/general_panelbar_bullet.gif" />
<h:graphicImage height="30"
- rendered="#{!renderLogic.isUserGuest() and messageManager.countUnreadedMessages > 0}"
+ rendered="false"
value="/img/icons/message.gif">
<rich:toolTip followMouse="true" direction="top-right"
showDelay="100" styleClass="tooltip">
@@ -24,33 +23,40 @@
#{messages['menu.message.tooltip']}</span>
</rich:toolTip>
</h:graphicImage>
- <a4j:commandLink rendered="#{!renderLogic.isUserGuest()}"
+ <a4j:commandLink rendered="false"
value="#{messages['menu.messages']}"
actionListener="#{conversationState.setMainArea(navigationHelper.navigationEnumReadMessages)}"
reRender="mainform:mainArea" />
- <h:graphicImage rendered="#{!renderLogic.isUserGuest()}"
+ <h:graphicImage rendered="false"
value="/img/shell/general_panelbar_bullet.gif" />
- <a4j:commandLink value="#{messages['menu.search']}"
+ <a4j:commandLink rendered="false" value="#{messages['menu.search']}"
actionListener="#{conversationState.setMainArea(navigationHelper.navigationEnumSearch)}"
reRender="mainform:mainArea" />
- <h:graphicImage rendered="#{!renderLogic.isUserGuest()}"
+ <h:graphicImage rendered="false"
value="/img/shell/general_panelbar_bullet.gif" />
- <a4j:commandLink rendered="#{!renderLogic.isUserGuest()}"
+ <a4j:commandLink rendered="false"
value="#{messages['menu.image']}"
actionListener="#{conversationState.setMainArea(navigationHelper.navigationEnumImagePreview)}"
reRender="mainform:mainArea" />
- <h:graphicImage rendered="#{!renderLogic.isUserGuest()}"
+ <h:graphicImage rendered="false"
value="/img/shell/general_panelbar_bullet.gif" />
- <a4j:commandLink rendered="#{!renderLogic.isUserGuest()}"
+ <a4j:commandLink rendered="false"
value="#{messages['menu.user']}"
actionListener="#{conversationState.showUserProfile(user)}"
reRender="mainform:mainArea" />
- <h:graphicImage rendered="#{!renderLogic.isUserGuest()}"
+ <h:graphicImage rendered="false"
value="/img/shell/general_panelbar_bullet.gif" />
- <a4j:commandLink rendered="#{!renderLogic.isUserGuest()}"
+ <h:outputText rendered="false" value=""></h:outputText>
+ <a4j:commandLink rendered="false"
value="#{messages['menu.file']}"
actionListener="#{conversationState.setMainArea(navigationHelper.navigationEnumFileUpload)}"
reRender="mainform:mainArea" />
+ <h:graphicImage rendered="false"
+ value="/img/shell/general_panelbar_bullet.gif" />
+ <a4j:commandLink rendered="false"
+ value="New on site"
+ actionListener="#{conversationState.setMainArea(navigationHelper.navigationEnumWhatNew)}"
+ reRender="mainform:mainArea" />
</rich:toolBarGroup>
</rich:toolBar>
</a4j:form>
Added: trunk/test-applications/realworld/web/src/main/webapp/layout/panelBar-backup.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/layout/panelBar-backup.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/realworld/web/src/main/webapp/layout/panelBar.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/realworld/web/src/main/webapp/layout/template3.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/web/src/main/webapp/layout/template3.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Deleted: trunk/test-applications/realworld/web/src/main/webapp/main.xhtml
===================================================================
(Binary files differ)
15 years, 11 months
JBoss Rich Faces SVN: r12531 - in trunk/sandbox/samples/maven-rd-plugin-sample: src/main/resources and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-02-02 13:40:23 -0500 (Mon, 02 Feb 2009)
New Revision: 12531
Added:
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/after.js
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/before.js
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.css
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.xcss
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.css
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.xcss
Removed:
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/webapp/scripts/
trunk/sandbox/samples/maven-rd-plugin-sample/src/main/webapp/styles/
Modified:
trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml
Log:
Modified: trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml 2009-02-02 18:36:15 UTC (rev 12530)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml 2009-02-02 18:40:23 UTC (rev 12531)
@@ -26,19 +26,21 @@
<version>3.3.1-SNAPSHOT</version>
<configuration>
<webSourceDirectory>${basedir}/src/main/webapp</webSourceDirectory>
- <outputScriptDirectory>
- ${basedir}/src/main/webapp/scripts
- </outputScriptDirectory>
<beforeScriptIncludes>
- <beforeScriptInclude>org/test/scripts/before.js</beforeScriptInclude>
+ <beforeScriptInclude>scripts/before.js</beforeScriptInclude>
</beforeScriptIncludes>
<afterScriptIncludes>
- <afterScriptInclude>org/test/scripts/after.js</afterScriptInclude>
- </afterScriptIncludes>
- <outputStyleDirectory>
- ${basedir}/src/main/webapp/styles
- </outputStyleDirectory>
- </configuration>
+ <afterScriptInclude>scripts/after.js</afterScriptInclude>
+ </afterScriptIncludes>
+ <beforeStyleIncludes>
+ <beforeStyleInclude>styles/before.xcss</beforeStyleInclude>
+ <afterStyleInclude>styles/before.css</afterStyleInclude>
+ </beforeStyleIncludes>
+ <afterStyleIncludes>
+ <afterStyleInclude>styles/after.xcss</afterStyleInclude>
+ <afterStyleInclude>styles/after.css</afterStyleInclude>
+ </afterStyleIncludes>
+ </configuration>
<executions>
<execution>
<phase>process-resources</phase>
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/after.js
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/after.js (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/after.js 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1 @@
+// script after
\ No newline at end of file
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/before.js
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/before.js (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/scripts/before.js 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1 @@
+//script before
\ No newline at end of file
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.css
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.css (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.css 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1,2 @@
+.after_css {
+}
\ No newline at end of file
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.xcss
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.xcss (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/after.xcss 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns:f='http:/jsf.exadel.com/template'
+ xmlns:u='http:/jsf.exadel.com/template/util'
+ xmlns="http://www.w3.org/1999/xhtml" >
+ <![CDATA[
+ .after_xss{
+ }
+
+ ]]>
+</f:template>
\ No newline at end of file
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.css
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.css (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.css 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1,2 @@
+.before_css{
+}
\ No newline at end of file
Added: trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.xcss
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.xcss (rev 0)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/src/main/resources/styles/before.xcss 2009-02-02 18:40:23 UTC (rev 12531)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns:f='http:/jsf.exadel.com/template'
+ xmlns:u='http:/jsf.exadel.com/template/util'
+ xmlns="http://www.w3.org/1999/xhtml" >
+ <![CDATA[
+ .before_xss{
+ }
+
+ ]]>
+</f:template>
\ No newline at end of file
15 years, 11 months
JBoss Rich Faces SVN: r12530 - in trunk: ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-02-02 13:36:15 -0500 (Mon, 02 Feb 2009)
New Revision: 12530
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
https://jira.jboss.org/jira/browse/RF-3589
https://jira.jboss.org/jira/browse/RF-1637
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2009-02-02 18:23:21 UTC (rev 12529)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2009-02-02 18:36:15 UTC (rev 12530)
@@ -181,6 +181,7 @@
isSafari: /Safari/.test(navigator.userAgent),
isOpera: !!window.opera,
isObjectEval: (Richfaces.eval!=undefined),
+ isFF2: (!window.opera && /Firefox\s*[\/]2[\.]/.test(navigator.userAgent)),
isFF3: (!window.opera && /Firefox\s*[\/]3[\.]/.test(navigator.userAgent))
};
Modified: trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
--- trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2009-02-02 18:23:21 UTC (rev 12529)
+++ trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2009-02-02 18:36:15 UTC (rev 12530)
@@ -186,15 +186,9 @@
if (!(item instanceof Richfaces.SelectItem)) {
item = sourceComponent.getSelectItemByNode(item);
}
- if (!LayoutManager.isIE() && (targetComponent.shuttleTbody.rows.length == 0)) {
- var newItem = null;
- if (item instanceof Richfaces.ListShuttle.Target.SelectItem) {
- newItem = new this.targetList.controlClass(item._label, item._id, item._node.cloneNode(true));
- } else {
- newItem = new this.sourceList.controlClass(item._label, item._id, item._node.cloneNode(true));
- }
+ if (Richfaces.browser.isFF2 && (targetComponent.shuttleTbody.rows.length == 0)) {
this.tableUpdate(targetComponent);
- this.addItem(targetComponent, newItem);
+ this.addItem(targetComponent, item);
this.removeItem(sourceComponent, item);
sourceComponent.shuttleTable.deleteRow(item._node.rowIndex);
15 years, 11 months
JBoss Rich Faces SVN: r12529 - in trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd: mojo and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-02-02 13:23:21 -0500 (Mon, 02 Feb 2009)
New Revision: 12529
Modified:
trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/handler/ComponentsHandler.java
trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java
Log:
fix user resources lookup
Modified: trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/handler/ComponentsHandler.java
===================================================================
--- trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/handler/ComponentsHandler.java 2009-02-02 16:47:55 UTC (rev 12528)
+++ trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/handler/ComponentsHandler.java 2009-02-02 18:23:21 UTC (rev 12529)
@@ -41,7 +41,8 @@
private Set <String> scripts = new LinkedHashSet<String>();
private Set <String> styles = new LinkedHashSet<String>();
-
+
+
@Override
public void endElement(String uri, String localName, String name) throws SAXException {
Modified: trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java
===================================================================
--- trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java 2009-02-02 16:47:55 UTC (rev 12528)
+++ trunk/sandbox/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java 2009-02-02 18:23:21 UTC (rev 12529)
@@ -45,6 +45,7 @@
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
import org.apache.maven.model.Dependency;
+import org.apache.maven.model.Resource;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
@@ -113,7 +114,7 @@
/**
* outputScriptDirectory
- * @parameter expression = "${basedir}/src/main/webapp"
+ * @parameter expression = "${basedir}/src/main/webapp/WEB-INF/classes"
*/
private File outputScriptDirectory ;
@@ -126,7 +127,7 @@
/**
* outputStyleDirectory
- * @parameter expression = "${basedir}/src/main/webapp"
+ * @parameter expression = "${basedir}/src/main/webapp/WEB-INF/classes"
*/
private File outputStyleDirectory;
@@ -318,20 +319,46 @@
}
- // add project classes, scripts etc ...
- List compileClasspathElements = project.getCompileClasspathElements();
- for (Object path: compileClasspathElements) {
- try {
- URL url = new File((String)path).toURI().toURL();
- childRealm.addConstituent(url);
- }catch (MalformedURLException e) {
- getLog().error("Artifact url " + path + " is invalid");
- }
-
- }
-
+ // add project classes, scripts, styles etc ...
+ List<Resource> compileClasspathElements = project.getCompileClasspathElements();
+ addResources(childRealm, compileClasspathElements);
+
+ List<Resource> scripts = project.getScriptSourceRoots();
+ addResources(realm, scripts);
+
+ List<Resource> resources = project.getResources();
+ addResources(realm, resources);
+
//make the child realm the ContextClassLoader
classLoader = childRealm.getClassLoader();
return classLoader;
}
+
+ private ClassRealm addResources(ClassRealm realm, List<Resource> resources) {
+ if(realm != null && resources != null) {
+ for(Object path: resources) {
+ URL url = null;
+
+ String formatted = null;
+
+ if (path instanceof String) {
+ formatted = (String)path;
+
+ } else if(path instanceof Resource) {
+ formatted = ((Resource)path).getDirectory();
+ }
+
+ if (formatted != null) {
+ File file = new File(formatted);
+ try {
+ url = file.toURI().toURL();
+ } catch (MalformedURLException e) {
+ getLog().error("Resource url " + file.getPath() + " is invalid");
+ }
+ realm.addConstituent(url);
+ }
+ }
+ }
+ return realm;
+ }
}
15 years, 11 months
JBoss Rich Faces SVN: r12528 - trunk/test-applications/realworld/ejb/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-02-02 11:47:55 -0500 (Mon, 02 Feb 2009)
New Revision: 12528
Modified:
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
Log:
Collect files into three big albums
Modified: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:47:31 UTC (rev 12527)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:47:55 UTC (rev 12528)
@@ -6,7 +6,7 @@
INSERT INTO Users(user_id, firstname, secondname, email, login, password, birthdate) VALUES (5, 'Barak', 'Abama', 'amarkavtsov(a)exadel.com', 'admin', '12345', '1985-01-08');
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (1, 'Cars', 'Photo of my dog', true, 1, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (2, 'Tetki', 'Simple Album 2', true, 1, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (3, 'Football', 'Simple Album 3', true, 2, null);
+INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (3, 'Football', 'Simple Album 3', true, 1, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (4, 'Japan', 'Simple Album', true, 3, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (5, 'Music', 'Simple Album 2', false, 3, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (6, 'Child1', 'Simple Album 2', true, 1, 1);
@@ -92,47 +92,47 @@
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (5, 'Pagani Zonda', 'amarkhel/Cars/Pagani_Zonda.jpg', 'The picture is provided by my friend photographer', '2008-12-18', 1, 5,'Canon S3', 500, 49.6, 338, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (6, 'Codatronca (concept)', 'amarkhel/Cars/spadaconcept codatronca.jpg', 'Just concept', '2008-12-18', 1, 6,'Canon S3', 560, 21.7, 360, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (7, 'Unknown supercar', 'amarkhel/Cars/supercar.jpg', 'Tell me it name if you know', '2008-12-18', 1, 7,'Canon S3', 480, 29.7, 360, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (8, 'Audrey Tautou', 'amarkhel/Tetki/Audrey_Tautou.jpg', 'Pretty girl!', '2008-12-18', 2, 8,'Canon S3', 396, 34.7, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (9, 'Juliette Binoche', 'amarkhel/Tetki/Juliette_Binoche.jpg', 'Saw her in "Chocolate" at first', '2008-12-18', 2, 9,'Canon S3', 400, 44.9, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (10, 'Penelope Cruz', 'amarkhel/Tetki/Penelope_Cruz.jpg', 'Without comments', '2008-12-18', 2, 10,'Canon S3', 500, 41.7, 375, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (11, 'Rihanna', 'amarkhel/Tetki/Rihanna.jpg', 'Was born in Barbados. True or false?', '2008-12-18', 2, 11,'Canon S3', 375, 52.5, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (12, 'Uma Turman', 'amarkhel/Tetki/Uma_Turman.jpg', 'Share the delight with Tarantino )', '2008-12-18', 2, 12,'Canon S3', 368, 40.2, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (13, 'Basketball soccer', 'root/Football/Basketball_soccer.jpg', 'They never saw camera', '2008-12-18', 3, 13,'Canon S3', 500, 33.1, 374, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (14, 'bdysch!!!', 'root/Football/bdysch!!!.jpg', 'Dermo sluchaetsia', '2008-12-18', 3, 14,'Canon S3', 500, 50.4, 333, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (15, 'Training', 'root/Football/euro2008_holland_wideweb__470x321,0.jpg', ' ) ', '2008-12-18', 3, 15,'Canon S3', 470, 37.3, 331, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (16, 'Also football', 'root/Football/flag_football.jpg', 'This is also football, but I do not understand it at all', '2008-12-18', 3, 16,'Canon S3', 500, 24.4, 333, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (17, 'Soccer', 'root/Football/soccer.jpg', 'Soccer differs from football', '2008-12-18', 3, 17,'Canon S3', 350, 45.3, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (18, 'from birds fly', 'qqqq/Japan/birds_fly.jpg', 'One of the megalopolices', '2008-12-18', 4, 18,'Canon S3', 500, 53.4, 375, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (19, 'Haruki Murakami', 'qqqq/Japan/Haruki_Murakami.jpg', 'World famous aouthor', '2008-12-18', 4, 19,'Canon S3', 500, 36, 376, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (20, 'Street fashion', 'qqqq/Japan/Japanese_Street_Fashion.jpg', 'Venture to walk in such in our streets?', '2008-12-18', 4, 20,'Canon S3', 367, 59.2, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (21, 'Kendo Championship', 'qqqq/Japan/Kendo_Championship_2006.jpg', 'Samurais steel alive!', '2008-12-18', 4, 21,'Canon S3', 500, 48.7, 332, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (22, 'Live in peace', 'qqqq/Japan/live_in_piece.jpg', 'The best place for meditation', '2008-12-18', 4, 22,'Canon S3', 500, 42.7, 398, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (23, 'Modern family', 'qqqq/Japan/modern_japanesse_family.jpg', 'Where is his mother?!', '2008-12-18', 4, 23,'Canon S3', 500, 43.1, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (24, 'Zen garden', 'qqqq/Japan/zen-garden_landscape_design.jpg', 'Fen Shui i vsia fignia', '2008-12-18', 4, 24,'Canon S3', 500, 46.1, 375, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (25, 'Sergei Babkin', 'qqqq/Music/Babkin.jpg', 'Also plays in theatre', '2008-12-18', 5, 25,'Canon S3', 525, 59.5, 350, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (26, 'Bob Marley', 'qqqq/Music/Bob_Marley.jpg', 'Everyone should know him', '2008-12-18', 5, 26,'Canon S3', 496, 41.7, 384, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (27, 'Infected Mushroom', 'qqqq/Music/Infected_Mushroom.jpg', 'Famous psyhedelic trance group from Israel', '2008-12-18', 5, 27,'Canon S3', 500, 35.4, 334, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (28, 'Massive Attack', 'qqqq/Music/massiveAttack.jpg', 'They play theme to "House"', '2008-12-18', 5, 28,'Canon S3', 500, 47.4, 377, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (29, 'Street musician', 'qqqq/Music/StreetMusician.jpg', 'unknown musician', '2008-12-18', 5, 29,'Canon S3', 336, 60.5, 500, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (30, 'SOAD', 'qqqq/Music/system-of-a-down.jpg', 'Try not to loose your innervision!', '2008-12-18', 5, 30,'Canon S3', 500, 39.5, 323, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (31, 'Amon Tobin', 'qqqq/Music/tobin.jpg', 'Brasilian, works in London. Try his "Supermodified2000" album', '2008-12-18', 5, 31,'Canon S3', 450, 37, 302, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (32, 'Cat', 'admin/Album1/images.jpg', 'Crazy Cats', '2008-12-18', 8, 32,'Canon S3', 452, 20.2, 393, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (33, 'Cat1', 'admin/Album1/images2.jpg', 'Crazy Cats', '2008-12-18', 8, 33,'Canon S3', 800, 92.2, 600, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (34, 'Cat2', 'admin/Album1/images3.jpg', 'Crazy Cats', '2008-12-18', 8, 34,'Canon S3', 622, 37.5, 466, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (35, 'Cat3', 'admin/Album1/images4.jpg', 'Crazy Cats', '2008-12-18', 8, 35,'Canon S3', 758, 35.8, 550, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (36, 'Cat4', 'admin/Album1/images5.jpg', 'Crazy Cats', '2008-12-18', 8, 36,'Canon S3', 555, 51.7, 596, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (37, 'Moon1', 'admin/Album1/Moon/images.jpg', 'Moon pictures', '2008-12-18', 10, 37,'Canon S3', 602, 44.0, 480, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (38, 'Moon2', 'admin/Album1/Moon/images1.jpg', 'Moon pictures', '2008-12-18', 10, 38,'Canon S3', 598, 23.0, 480, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (39, 'Moon3', 'admin/Album1/Moon/images2.jpg', 'Moon pictures', '2008-12-18', 10, 39,'Canon S3', 430, 49.0, 400, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (40, 'Moon4', 'admin/Album1/Moon/images3.jpg', 'Moon pictures', '2008-12-18', 10, 40,'Canon S3', 800, 36.0, 600, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (41, 'Moon5', 'admin/Album1/Moon/images4.jpg', 'Moon pictures', '2008-12-18', 10, 41,'Canon S3', 1309, 99.4, 1284, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (42, 'Moon6', 'admin/Album1/Moon/images5.jpg', 'Moon pictures', '2008-12-18', 10, 42,'Canon S3', 800, 93.5, 540, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (43, 'Plane', 'admin/Planes/images.jpg', 'Planes pictures', '2008-12-18', 9, 43,'Canon S3', 800, 28.6, 534, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (44, 'Plane1', 'admin/Planes/images1.jpg', 'Planes pictures', '2008-12-18', 9, 44,'Canon S3', 540, 31.9, 390, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (45, 'Plane2', 'admin/Planes/images2.jpg', 'Planes pictures', '2008-12-18', 9, 45,'Canon S3', 770, 66.0, 486, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (46, 'Plane3', 'admin/Planes/images3.jpg', 'Planes pictures', '2008-12-18', 9, 46,'Canon S3', 1024, 45.0, 768, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (47, 'Plane4', 'admin/Planes/images4.jpg', 'Planes pictures', '2008-12-18', 9, 47,'Canon S3', 1024, 78.7, 768, '2008-12-01');
-INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (48, 'Plane4', 'admin/Planes/images5.jpg', 'Planes pictures', '2008-12-18', 9, 48,'Canon S3', 1024, 50.8, 768, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (8, 'Audrey Tautou', 'amarkhel/Tetki/Audrey_Tautou.jpg', 'Pretty girl!', '2008-12-18', 1, 8,'Canon S3', 396, 34.7, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (9, 'Juliette Binoche', 'amarkhel/Tetki/Juliette_Binoche.jpg', 'Saw her in "Chocolate" at first', '2008-12-18', 1, 9,'Canon S3', 400, 44.9, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (10, 'Penelope Cruz', 'amarkhel/Tetki/Penelope_Cruz.jpg', 'Without comments', '2008-12-18', 1, 10,'Canon S3', 500, 41.7, 375, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (11, 'Rihanna', 'amarkhel/Tetki/Rihanna.jpg', 'Was born in Barbados. True or false?', '2008-12-18', 1, 11,'Canon S3', 375, 52.5, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (12, 'Uma Turman', 'amarkhel/Tetki/Uma_Turman.jpg', 'Share the delight with Tarantino )', '2008-12-18', 1, 12,'Canon S3', 368, 40.2, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (13, 'Basketball soccer', 'root/Football/Basketball_soccer.jpg', 'They never saw camera', '2008-12-18', 1, 13,'Canon S3', 500, 33.1, 374, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (14, 'bdysch!!!', 'root/Football/bdysch!!!.jpg', 'Dermo sluchaetsia', '2008-12-18', 1, 14,'Canon S3', 500, 50.4, 333, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (15, 'Training', 'root/Football/euro2008_holland_wideweb__470x321,0.jpg', ' ) ', '2008-12-18', 1, 15,'Canon S3', 470, 37.3, 331, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (16, 'Also football', 'root/Football/flag_football.jpg', 'This is also football, but I do not understand it at all', '2008-12-18', 2, 16,'Canon S3', 500, 24.4, 333, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (17, 'Soccer', 'root/Football/soccer.jpg', 'Soccer differs from football', '2008-12-18', 2, 17,'Canon S3', 350, 45.3, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (18, 'from birds fly', 'qqqq/Japan/birds_fly.jpg', 'One of the megalopolices', '2008-12-18', 2, 18,'Canon S3', 500, 53.4, 375, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (19, 'Haruki Murakami', 'qqqq/Japan/Haruki_Murakami.jpg', 'World famous aouthor', '2008-12-18', 2, 19,'Canon S3', 500, 36, 376, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (20, 'Street fashion', 'qqqq/Japan/Japanese_Street_Fashion.jpg', 'Venture to walk in such in our streets?', '2008-12-18', 2, 20,'Canon S3', 367, 59.2, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (21, 'Kendo Championship', 'qqqq/Japan/Kendo_Championship_2006.jpg', 'Samurais steel alive!', '2008-12-18', 2, 21,'Canon S3', 500, 48.7, 332, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (22, 'Live in peace', 'qqqq/Japan/live_in_piece.jpg', 'The best place for meditation', '2008-12-18', 2, 22,'Canon S3', 500, 42.7, 398, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (23, 'Modern family', 'qqqq/Japan/modern_japanesse_family.jpg', 'Where is his mother?!', '2008-12-18', 2, 23,'Canon S3', 500, 43.1, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (24, 'Zen garden', 'qqqq/Japan/zen-garden_landscape_design.jpg', 'Fen Shui i vsia fignia', '2008-12-18', 2, 24,'Canon S3', 500, 46.1, 375, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (25, 'Sergei Babkin', 'qqqq/Music/Babkin.jpg', 'Also plays in theatre', '2008-12-18', 2, 25,'Canon S3', 525, 59.5, 350, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (26, 'Bob Marley', 'qqqq/Music/Bob_Marley.jpg', 'Everyone should know him', '2008-12-18', 2, 26,'Canon S3', 496, 41.7, 384, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (27, 'Infected Mushroom', 'qqqq/Music/Infected_Mushroom.jpg', 'Famous psyhedelic trance group from Israel', '2008-12-18', 2, 27,'Canon S3', 500, 35.4, 334, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (28, 'Massive Attack', 'qqqq/Music/massiveAttack.jpg', 'They play theme to "House"', '2008-12-18', 2, 28,'Canon S3', 500, 47.4, 377, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (29, 'Street musician', 'qqqq/Music/StreetMusician.jpg', 'unknown musician', '2008-12-18', 2, 29,'Canon S3', 336, 60.5, 500, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (30, 'SOAD', 'qqqq/Music/system-of-a-down.jpg', 'Try not to loose your innervision!', '2008-12-18', 2, 30,'Canon S3', 500, 39.5, 323, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (31, 'Amon Tobin', 'qqqq/Music/tobin.jpg', 'Brasilian, works in London. Try his "Supermodified2000" album', '2008-12-18', 2, 31,'Canon S3', 450, 37, 302, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (32, 'Cat', 'admin/Album1/images.jpg', 'Crazy Cats', '2008-12-18', 2, 32,'Canon S3', 452, 20.2, 393, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (33, 'Cat1', 'admin/Album1/images2.jpg', 'Crazy Cats', '2008-12-18', 2, 33,'Canon S3', 800, 92.2, 600, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (34, 'Cat2', 'admin/Album1/images3.jpg', 'Crazy Cats', '2008-12-18', 2, 34,'Canon S3', 622, 37.5, 466, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (35, 'Cat3', 'admin/Album1/images4.jpg', 'Crazy Cats', '2008-12-18', 2, 35,'Canon S3', 758, 35.8, 550, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (36, 'Cat4', 'admin/Album1/images5.jpg', 'Crazy Cats', '2008-12-18', 3, 36,'Canon S3', 555, 51.7, 596, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (37, 'Moon1', 'admin/Album1/Moon/images.jpg', 'Moon pictures', '2008-12-18', 3, 37,'Canon S3', 602, 44.0, 480, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (38, 'Moon2', 'admin/Album1/Moon/images1.jpg', 'Moon pictures', '2008-12-18', 3, 38,'Canon S3', 598, 23.0, 480, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (39, 'Moon3', 'admin/Album1/Moon/images2.jpg', 'Moon pictures', '2008-12-18', 3, 39,'Canon S3', 430, 49.0, 400, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (40, 'Moon4', 'admin/Album1/Moon/images3.jpg', 'Moon pictures', '2008-12-18', 3, 40,'Canon S3', 800, 36.0, 600, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (41, 'Moon5', 'admin/Album1/Moon/images4.jpg', 'Moon pictures', '2008-12-18', 3, 41,'Canon S3', 1309, 99.4, 1284, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (42, 'Moon6', 'admin/Album1/Moon/images5.jpg', 'Moon pictures', '2008-12-18', 3, 42,'Canon S3', 800, 93.5, 540, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (43, 'Plane', 'admin/Planes/images.jpg', 'Planes pictures', '2008-12-18', 3, 43,'Canon S3', 800, 28.6, 534, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (44, 'Plane1', 'admin/Planes/images1.jpg', 'Planes pictures', '2008-12-18', 3, 44,'Canon S3', 540, 31.9, 390, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (45, 'Plane2', 'admin/Planes/images2.jpg', 'Planes pictures', '2008-12-18', 3, 45,'Canon S3', 770, 66.0, 486, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (46, 'Plane3', 'admin/Planes/images3.jpg', 'Planes pictures', '2008-12-18', 3, 46,'Canon S3', 1024, 45.0, 768, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (47, 'Plane4', 'admin/Planes/images4.jpg', 'Planes pictures', '2008-12-18', 3, 47,'Canon S3', 1024, 78.7, 768, '2008-12-01');
+INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (48, 'Plane4', 'admin/Planes/images5.jpg', 'Planes pictures', '2008-12-18', 3, 48,'Canon S3', 1024, 50.8, 768, '2008-12-01');
INSERT INTO images(image_id, name, path, description, created, img_album_id, rank_id, cameraModel, height, size, width, uploaded) VALUES (49, 'Water1', 'user/Water/P4020733.jpg', 'Belorussian lakes and rivers', '2008-12-18', 11, 49,'Canon S3', 768, 100.0, 1024, '2008-12-01');
15 years, 11 months
JBoss Rich Faces SVN: r12527 - trunk.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-02-02 11:47:31 -0500 (Mon, 02 Feb 2009)
New Revision: 12527
Modified:
trunk/pom.xml
Log:
add jdepend plugin version
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-02-02 16:42:02 UTC (rev 12526)
+++ trunk/pom.xml 2009-02-02 16:47:31 UTC (rev 12527)
@@ -402,6 +402,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
+ <version>2.0-beta-2</version>
</plugin>
</plugins>
</reporting>
15 years, 11 months
JBoss Rich Faces SVN: r12526 - trunk/test-applications/realworld/ejb/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2009-02-02 11:42:02 -0500 (Mon, 02 Feb 2009)
New Revision: 12526
Modified:
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
Log:
fix sql
Modified: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:40:45 UTC (rev 12525)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:42:02 UTC (rev 12526)
@@ -11,8 +11,8 @@
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (5, 'Music', 'Simple Album 2', false, 3, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (6, 'Child1', 'Simple Album 2', true, 1, 1);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (7, 'Child2', 'Simple Album 2', true, 1, 1);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (11, 'Water', 'Water Fotos', true, 6, null);
-INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (12, 'Bmw', 'BMW Cars Fotos', true, 6, null);
+INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (11, 'Water', 'Water Photos', true, 6, null);
+INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (12, 'Bmw', 'BMW Cars Photos', true, 6, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (8, 'Album1', 'Favotite', true, 5, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (9, 'Planes', 'Planes', true, 5, null);
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_album_id) VALUES (10, 'Moon', 'Moon', true, 5, 8);
15 years, 11 months
JBoss Rich Faces SVN: r12525 - trunk/test-applications/realworld/web/src/main/webapp/stylesheet.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2009-02-02 11:40:45 -0500 (Mon, 02 Feb 2009)
New Revision: 12525
Modified:
trunk/test-applications/realworld/web/src/main/webapp/stylesheet/realworld2.css
Log:
fix css
Modified: trunk/test-applications/realworld/web/src/main/webapp/stylesheet/realworld2.css
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/stylesheet/realworld2.css 2009-02-02 16:35:15 UTC (rev 12524)
+++ trunk/test-applications/realworld/web/src/main/webapp/stylesheet/realworld2.css 2009-02-02 16:40:45 UTC (rev 12525)
@@ -143,7 +143,7 @@
width: 400px;
}
-input[type='submit'], input[type='button'] {
+input[type='submit'], input[type='button'], button {
background: #414141;
color: white;
margin: 5px;
15 years, 11 months
JBoss Rich Faces SVN: r12524 - trunk/test-applications/realworld/ejb/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2009-02-02 11:35:15 -0500 (Mon, 02 Feb 2009)
New Revision: 12524
Modified:
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
Log:
fix sql
Modified: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:26:54 UTC (rev 12523)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2009-02-02 16:35:15 UTC (rev 12524)
@@ -183,11 +183,6 @@
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (20, 'Cool', 19);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (21, 'Cool2', 20);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (22, 'Cool', 49);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (23, 'Cool', 50);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (24, 'Cool', 51);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (25, 'Cool', 52);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (26, 'Cool', 53);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (27, 'Cool', 54);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (28, 'Cool', 55);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (29, 'Cool', 56);
@@ -203,6 +198,11 @@
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (39, 'Car', 66);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (40, 'Car', 67);
INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (41, 'Car', 68);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (42, 'Cool', 49);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (43, 'Cool', 50);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (44, 'Cool', 51);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (45, 'Cool', 52);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (46, 'Cool', 53);
INSERT INTO comments(comment_id, date, message, image_comment_id, from_user_id) VALUES (1, '1985-01-08', 'Hello I am user', 1, 2);
INSERT INTO comments(comment_id, date, message, image_comment_id, from_user_id) VALUES (2, '1985-01-08', 'Hello I am user2', 1, 3);
15 years, 11 months