JBoss Rich Faces SVN: r11923 - in trunk/test-applications/realworld/Upload/qqqq: Japan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-19 09:55:07 -0500 (Fri, 19 Dec 2008)
New Revision: 11923
Added:
trunk/test-applications/realworld/Upload/qqqq/Japan/
trunk/test-applications/realworld/Upload/qqqq/Japan/Haruki_Murakami.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/Japanese_Street_Fashion.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/Kendo_Championship_2006.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/birds_fly.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/live_in_piece.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/modern_japanesse_family.jpg
trunk/test-applications/realworld/Upload/qqqq/Japan/zen-garden_landscape_design.jpg
Log:
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/Haruki_Murakami.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/Haruki_Murakami.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/Japanese_Street_Fashion.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/Japanese_Street_Fashion.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/Kendo_Championship_2006.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/Kendo_Championship_2006.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/birds_fly.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/birds_fly.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/live_in_piece.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/live_in_piece.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/modern_japanesse_family.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/modern_japanesse_family.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/qqqq/Japan/zen-garden_landscape_design.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/Japan/zen-garden_landscape_design.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 4 months
JBoss Rich Faces SVN: r11922 - in trunk/test-applications/realworld/Upload/amarkhel: Tetki and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-19 09:52:44 -0500 (Fri, 19 Dec 2008)
New Revision: 11922
Added:
trunk/test-applications/realworld/Upload/amarkhel/Tetki/
trunk/test-applications/realworld/Upload/amarkhel/Tetki/Audrey_Tautou.jpg
trunk/test-applications/realworld/Upload/amarkhel/Tetki/Juliette_Binoche.jpg
trunk/test-applications/realworld/Upload/amarkhel/Tetki/Penelope_Cruz.jpg
trunk/test-applications/realworld/Upload/amarkhel/Tetki/Rihanna.jpg
trunk/test-applications/realworld/Upload/amarkhel/Tetki/Uma_Turman.jpg
Log:
Added: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Audrey_Tautou.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Audrey_Tautou.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Juliette_Binoche.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Juliette_Binoche.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Penelope_Cruz.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Penelope_Cruz.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Rihanna.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Rihanna.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Uma_Turman.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Tetki/Uma_Turman.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 4 months
JBoss Rich Faces SVN: r11921 - in trunk/test-applications/realworld/Upload/amarkhel: Cars and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-19 09:49:20 -0500 (Fri, 19 Dec 2008)
New Revision: 11921
Added:
trunk/test-applications/realworld/Upload/amarkhel/Cars/
trunk/test-applications/realworld/Upload/amarkhel/Cars/Pagani_Zonda.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/aston_martin.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/ferrari_profile.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/holden-efijy-1809.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/hulme_supercar_side_parked.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/spadaconcept codatronca.jpg
trunk/test-applications/realworld/Upload/amarkhel/Cars/supercar.jpg
Log:
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/Pagani_Zonda.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/Pagani_Zonda.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/aston_martin.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/aston_martin.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/ferrari_profile.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/ferrari_profile.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/holden-efijy-1809.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/holden-efijy-1809.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/hulme_supercar_side_parked.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/hulme_supercar_side_parked.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/spadaconcept codatronca.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/spadaconcept codatronca.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Cars/supercar.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Cars/supercar.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 4 months
JBoss Rich Faces SVN: r11919 - trunk/test-applications/realworld/ejb/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-19 09:28:43 -0500 (Fri, 19 Dec 2008)
New Revision: 11919
Added:
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
Log:
RF-4494: Tutorial about developing this sample application
Added: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql (rev 0)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2008-12-19 14:28:43 UTC (rev 11919)
@@ -0,0 +1,100 @@
+INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (1, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'amarkhel', '12345', '1985-01-08');
+INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (2, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'root', '12345', '1985-01-08');
+INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (3, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'qqqq', '12345', '1985-01-08');
+INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (1, 0, 'Cars', 'Photo of my dog', true, 1);
+INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (2, 0, 'Tetki', 'Simple Album 2', true, 1);
+INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (3, 0, 'Football', 'Simple Album 3', true, 2);
+INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (4, 0, 'Japan', 'Simple Album', true, 3);
+INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (5, 0, 'Music', 'Simple Album 2', true, 3);
+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);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (4, 100, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (5, 100, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (6, 100, 41);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (7, 100, 20);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (8, 55, 11);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (9, 100, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (10, 100, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (11, 100, 25);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (12, 110, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (13, 100, 19);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (14, 101, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (15, 102, 17);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (16, 103, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (17, 104, 15);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (18, 100, 21);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (19, 110, 22);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (20, 160, 23);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (21, 100, 24);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (22, 100, 25);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (23, 101, 26);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (24, 102, 27);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (25, 103, 28);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (26, 104, 29);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (27, 100, 30);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (28, 110, 31);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (29, 104, 29);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (30, 100, 30);
+INSERT INTO Ranks(rank_id, total, hits) VALUES (31, 110, 31);
+
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (1, 0, 'Aston Martin', 'aston_martin.jpg', 'Where is the Batman?', true, '2008-12-18', 1, 1);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (2, 0, 'Ferrari', 'ferrari_profile.jpg', 'Beauty!', true, '2008-12-18', 1, 2);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (3, 0, 'Australian supercar', 'holden-efijy-1809.jpg', 'This one glitters in my garage ;)', true, '2008-12-18', 1, 3);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (4, 0, 'Hulme Supercar', 'hulme_supercar_side_parked.jpg', 'Saw it in Germany in summer 2007', true, '2008-12-18', 1, 4);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (5, 0, 'Pagani Zonda', 'Pagani_Zonda.jpg', 'The picture is provided by my friend photographer', true, '2008-12-18', 1, 5);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (6, 0, 'Codatronca (concept)', 'spadaconcept codatronca.jpg', 'Just concept', true, '2008-12-18', 1, 6);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (7, 0, 'Unknown supercar', 'supercar.jpg', 'Tell me it name if you know', true, '2008-12-18', 1, 7);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (8, 0, 'Audrey Tautou', 'Audrey_Tautou.jpg', 'Pretty girl!', true, '2008-12-18', 2, 8);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (9, 0, 'Juliette Binoche', 'Juliette_Binoche.jpg', 'Saw her in "Chocolate" at first', true, '2008-12-18', 2, 9);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (10, 0, 'Penelope Cruz', 'Penelope_Cruz.jpg', 'Without comments', true, '2008-12-18', 2, 10);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (11, 0, 'Rihanna', 'Rihanna.jpg', 'Was born in Barbados. True or false?', true, '2008-12-18', 2, 11);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (12, 0, 'Uma Turman', 'Uma_Turman.jpg', 'Share the delight with Tarantino )', true, '2008-12-18', 2, 12);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (13, 0, 'Basketball soccer', 'Basketball_soccer.jpg', 'They never saw camera', true, '2008-12-18', 3, 13);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (14, 0, 'bdysch!!!', 'bdysch!!!.jpg', 'Dermo sluchaetsia', true, '2008-12-18', 3, 14);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (15, 0, 'Training', 'euro2008_holland_wideweb__470x321,0.jpg', ' ) ', true, '2008-12-18', 3, 15);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (16, 0, 'Also football', 'flag_football.jpg', 'This is also football, but I do not understand it at all', true, '2008-12-18', 3, 16);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (17, 0, 'Soccer', 'soccer.jpg', 'Soccer differs from football', true, '2008-12-18', 3, 17);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (18, 0, 'from birds fly', 'birds_fly.jpg', 'One of the megalopolices', true, '2008-12-18', 4, 18);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (19, 0, 'Haruki Murakami', 'Haruki_Murakami.jpg', 'World famous aouthor', true, '2008-12-18', 4, 19);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (20, 0, 'Street fashion', 'Japanese_Street_Fashion.jpg', 'Venture to walk in such in our streets?', true, '2008-12-18', 4, 20);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (21, 0, 'Kendo Championship', 'Kendo_Championship_2006.jpg', 'Samurais steel alive!', true, '2008-12-18', 4, 21);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (22, 0, 'Live in peace', 'live_in_piece.jpg', 'The best place for meditation', true, '2008-12-18', 4, 22);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (23, 0, 'Modern family', 'modern_japanesse_family.jpg', 'Where is his mother?!', true, '2008-12-18', 4, 23);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (24, 0, 'Zen garden', 'zen-garden_landscape_design.jpg', 'Fen Shui i vsia fignia', true, '2008-12-18', 4, 24);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (25, 0, 'Sergei Babkin', 'Babkin.jpg', 'Also plays in theatre', true, '2008-12-18', 5, 25);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (26, 0, 'Bob Marley', 'Bob_Marley.jpg', 'Everyone should know him', true, '2008-12-18', 5, 26);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (27, 0, 'Infected Mushroom', 'Infected_Mushroom.jpg', 'Famous psyhedelic trance group from Israel', true, '2008-12-18', 5, 27);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (28, 0, 'Massive Attack', 'massiveAttack.jpg', 'They play theme to "House"', true, '2008-12-18', 5, 28);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (29, 0, 'Street musician', 'StreetMusician.jpg', 'unknown musician', true, '2008-12-18', 5, 29);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (30, 0, 'SOAD', 'system-of-a-down.jpg', 'Try not to loose your innervision!', true, '2008-12-18', 5, 30);
+INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (31, 0, 'Amon Tobin', 'tobin.jpg', 'Brasilian, works in London. Try his "Supermodified2000" album', true, '2008-12-18', 5, 31);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (1, 'Cool', 1);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (2, 'Cool2', 1);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (3, 'richfaces', 2);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (4, 'Cool', 3);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (5, 'theCool', 4);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (6, 'Cool', 5);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (7, 'rich', 6);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (8, 'Cool', 7);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (9, 'New year', 8);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (10, 'Cool', 9);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (11, 'Cool', 10);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (12, 'Minsk', 11);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (13, 'Cool', 12);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (14, 'Minsk', 13);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (15, 'Cool', 14);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (16, 'Cool', 15);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (17, 'Minsk', 16);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (18, 'Cool', 17);
+INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (19, 'friend', 18);
+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 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);
+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 shared_albums(album_id, user_id) VALUES(1, 1);
+INSERT INTO shared_albums(album_id, user_id) VALUES(2, 1);
+INSERT INTO user_friends(user1_id, user2_id) VALUES(1, 2);
+INSERT INTO friendship_requests(REQUEST_ID, USER_ID, FRIEND_ID) VALUES(1, 3, 1);
\ No newline at end of file
17 years, 4 months
JBoss Rich Faces SVN: r11918 - trunk/test-applications/realworld/ejb/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-19 09:27:58 -0500 (Fri, 19 Dec 2008)
New Revision: 11918
Removed:
trunk/test-applications/realworld/ejb/src/main/resources/import.sql
Log:
RF-4494: Tutorial about developing this sample application
Deleted: trunk/test-applications/realworld/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2008-12-19 14:21:20 UTC (rev 11917)
+++ trunk/test-applications/realworld/ejb/src/main/resources/import.sql 2008-12-19 14:27:58 UTC (rev 11918)
@@ -1,81 +0,0 @@
-INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (1, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'amarkhel', '12345', '1985-01-08');
-INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (2, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'root', '12345', '1985-01-08');
-INSERT INTO Users(user_id, obj_version, firstname, secondname, email, avatarpath, login, password, birthdate) VALUES (3, 0, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com', 'avatar.jpg', 'qqqq', '12345', '1985-01-08');
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (1, 0, 'My dog', 'Photo of my dog', true, 1);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (2, 0, 'Album 2', 'Simple Album 2', false, 1);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (3, 0, 'Album 3', 'Simple Album 3', false, 1);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (4, 0, 'Album 1', 'Simple Album', true, 2);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (5, 0, 'Album 2', 'Simple Album 2', false, 2);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (6, 0, 'Album 3', 'Simple Album 3', false, 2);
-INSERT INTO albums(album_id, obj_version, name, description, shared, album_user_id) VALUES (7, 0, 'Album 1', 'Simple Album', true, 3);
-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);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (4, 100, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (5, 100, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (6, 100, 41);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (7, 100, 20);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (8, 55, 11);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (9, 100, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (10, 100, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (11, 100, 25);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (12, 110, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (13, 100, 19);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (14, 101, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (15, 102, 17);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (16, 103, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (17, 104, 15);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (18, 100, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (19, 110, 13);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (20, 160, 21);
-INSERT INTO Ranks(rank_id, total, hits) VALUES (21, 100, 21);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (1, 0, 'Funny dog', 'cherri1.jpg', 'Funny dog', true, '1985-01-08', 1, 1);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (2, 0, 'Beauty', 'cherri2.jpg', 'Beauty', true, '1985-01-08', 1, 2);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (3, 0, 'Toy of my dog', 'cherri3.jpg', 'Toy of my dog', true, '1985-01-08', 1, 3);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (4, 0, 'Picture 2', 'pic4.jpg', 'Just picture', true, '1985-01-08', 2, 4);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (5, 0, 'Picture 3', 'pic5.jpg', 'Just picture', true, '1985-01-08', 2, 5);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (6, 0, 'Picture 4', 'pic6.jpg', 'Just picture', true, '1985-01-08', 2, 6);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (7, 0, 'Picture 5', 'pic7.jpg', 'Just picture', true, '1985-01-08', 2, 7);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (8, 0, 'Picture 1', 'pic8.jpg', 'Just picture', true, '1985-01-08', 3, 8);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (9, 0, 'Picture 2', 'pic9.jpg', 'Just picture', true, '1985-01-08', 3, 9);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (10, 0, 'Picture 1', 'pic1.jpg', 'Just picture', true, '1985-01-08', 4, 10);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (11, 0, 'Picture 2', 'pic2.jpg', 'Just picture', true, '1985-01-08', 4, 11);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (12, 0, 'Picture 33', 'pic3.jpg', 'Just picture', true, '1985-01-08', 4, 12);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (13, 0, 'Picture 2', 'pic4.jpg', 'Just picture', true, '1985-01-08', 5, 13);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (14, 0, 'Picture 3', 'pic5.jpg', 'Just picture', true, '1985-01-08', 5, 14);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (15, 0, 'Picture 4', 'pic6.jpg', 'Just picture', true, '1985-01-08', 5, 15);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (16, 0, 'Picture 5', 'pic7.jpg', 'Just picture', true, '1985-01-08', 5, 16);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (17, 0, 'Picture 1', 'pic8.jpg', 'Just picture', true, '1985-01-08', 6, 17);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (18, 0, 'Picture 2', 'pic9.jpg', 'Just picture', true, '1985-01-08', 6, 18);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (19, 0, 'Picture 1', 'pic1.jpg', 'Just picture', true, '1985-01-08', 7, 19);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (20, 0, 'Picture 2', 'pic2.jpg', 'Just picture', true, '1985-01-08', 7, 20);
-INSERT INTO images(image_id, obj_version, name, path, description, shared, created, img_album_id, rank_id) VALUES (21, 0, 'Picture 33', 'pic3.jpg', 'Just picture', true, '1985-01-08', 7, 21);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (1, 'Cool', 1);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (2, 'Cool2', 1);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (3, 'richfaces', 2);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (4, 'Cool', 3);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (5, 'theCool', 4);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (6, 'Cool', 5);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (7, 'rich', 6);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (8, 'Cool', 7);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (9, 'New year', 8);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (10, 'Cool', 9);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (11, 'Cool', 10);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (12, 'Minsk', 11);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (13, 'Cool', 12);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (14, 'Minsk', 13);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (15, 'Cool', 14);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (16, 'Cool', 15);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (17, 'Minsk', 16);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (18, 'Cool', 17);
-INSERT INTO metatags(metatag_id, tag, image_metatag_id) VALUES (19, 'friend', 18);
-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 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);
-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 shared_albums(album_id, user_id) VALUES(4, 1);
-INSERT INTO shared_albums(album_id, user_id) VALUES(7, 1);
-INSERT INTO user_friends(user1_id, user2_id) VALUES(1, 2);
-INSERT INTO friendship_requests(REQUEST_ID, USER_ID, FRIEND_ID) VALUES(1, 3, 1);
\ No newline at end of file
17 years, 4 months
JBoss Rich Faces SVN: r11917 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-12-19 09:21:20 -0500 (Fri, 19 Dec 2008)
New Revision: 11917
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-3997
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-12-19 14:11:54 UTC (rev 11916)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-12-19 14:21:20 UTC (rev 11917)
@@ -381,7 +381,7 @@
}
// y+,M+,d+
var ch = $1.charAt(0);
- if (ch=='y') {y=counter; counter++; return '(\\d{4})'};
+ if (ch=='y') {y=counter; counter++; return '(\\d{3,4})'};
if (ch=='M') {m=counter; counter++; return '('+monthNamesStr+')'};
if (ch=='d') {d=counter; counter++; return '(\\d{2})'};
}
17 years, 4 months
JBoss Rich Faces SVN: r11916 - in trunk/samples/richfaces-demo/src/main: webapp and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-12-19 09:11:54 -0500 (Fri, 19 Dec 2008)
New Revision: 11916
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/editor/advanced.properties
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/welcome.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/editor/advanced.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/editor/advanced.properties 2008-12-19 14:01:35 UTC (rev 11915)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/editor/advanced.properties 2008-12-19 14:11:54 UTC (rev 11916)
@@ -1,5 +1,5 @@
theme="advanced"
theme_advanced_toolbar_location="top"
-theme_advanced_toolbar_align="center"
+theme_advanced_toolbar_align="left"
plugins="preview,insertdatetime"
theme_advanced_buttons3="hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-19 14:01:35 UTC (rev 11915)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-19 14:11:54 UTC (rev 11916)
@@ -60,15 +60,15 @@
target="#{dataTableScrollerBean.currentItem}" />
<f:setPropertyActionListener value="#{row}"
target="#{dataTableScrollerBean.currentRow}" />
- <rich:toolTip value="Edit"></rich:toolTip>
</a4j:commandLink>
+ <rich:toolTip for="editlink" value="Edit"/>
<a4j:commandLink ajaxSingle="true" id="deletelink"
oncomplete="#{rich:component('deletePanel')}.show()">
<h:graphicImage value="/images/icons/delete.gif" style="border:0"/>
<f:setPropertyActionListener value="#{row}"
target="#{dataTableScrollerBean.currentRow}" />
- <rich:toolTip value="Delete"></rich:toolTip>
</a4j:commandLink>
+ <rich:toolTip for="deletelink" value="Delete"/>
</rich:column>
<f:facet name="footer">
<rich:datascroller renderIfSinglePage="false" maxPages="5"/>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2008-12-19 14:01:35 UTC (rev 11915)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml 2008-12-19 14:11:54 UTC (rev 11916)
@@ -9,14 +9,10 @@
width:50%;
vertical-align:top;
}
- .pbody{
- height:200px;
- overflow:auto;
- }
</style>
<h:form>
<h:panelGrid columns="2" width="100%" columnClasses="column,column">
- <h:panelGroup style="height:310px;" layout="block">
+ <h:panelGroup style="height:320px;" layout="block">
<rich:editor configuration="#{editorBean.currentConfiguration}" id="editor" width="400" height="300" viewMode = "#{editorBean.viewMode}" value="#{editorBean.value}">
<a4j:support event="onchange" reRender="result" ajaxSingle="true" requestDelay="1000" rendered="#{editorBean.liveUpdatesEnabled}"/>
</rich:editor>
@@ -29,30 +25,29 @@
<h:outputText value="Select Editor Theme"/>
<h:selectOneRadio value="#{editorBean.currentConfiguration}" layout="pageDirection">
<f:selectItems value="#{editorBean.configurations}"/>
- <a4j:support event="onchange" reRender="editor"/>
+ <a4j:support event="onclick" reRender="editor"/>
</h:selectOneRadio>
<h:outputText value="Toggle Modes"/>
<h:selectOneRadio value="#{editorBean.viewMode}" layout="pageDirection">
<f:selectItem itemLabel="WYSIWYG mode" itemValue="visual"/>
<f:selectItem itemLabel="Simple Text Area" itemValue="source"/>
- <a4j:support event="onchange" reRender="editor"/>
+ <a4j:support event="onclick" reRender="editor"/>
</h:selectOneRadio>
<h:outputText value="Toggle Preview: " />
<h:selectBooleanCheckbox value="#{editorBean.liveUpdatesEnabled}" >
- <a4j:support event="onchange" reRender="editor, result"/>
+ <a4j:support event="onclick" reRender="editor, result"/>
</h:selectBooleanCheckbox>
</h:panelGrid>
</rich:panel>
- </h:panelGrid>
-
<a4j:outputPanel layout="block" id="result">
- <rich:panel rendered="#{editorBean.liveUpdatesEnabled}" bodyClass="pbody">
+ <rich:panel rendered="#{editorBean.liveUpdatesEnabled}">
<f:facet name="header">
<h:outputText value="Preview"/>
</f:facet>
<h:outputText escape="false" value="#{editorBean.value}"/>
</rich:panel>
</a4j:outputPanel>
-
+ </h:panelGrid>
+
</h:form>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2008-12-19 14:01:35 UTC (rev 11915)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2008-12-19 14:11:54 UTC (rev 11916)
@@ -6,43 +6,16 @@
xmlns:rich="http://richfaces.org/rich">
<style>
-.tooltip {
- background-color: #{
- a4jSkin
- .
-
-
-
- generalBackgroundColor
-}
+ .tooltip {
+ background-color: #{a4jSkin.generalBackgroundColor};
+ border-width:1px;
+ padding:10px;
+ }
+ .tooltipData {
+ font-weight: bold;
+ }
+ </style>
-;
-border-width
-
-
-
-
-:1
-px
-
-
-;
-padding
-
-
-
-
-:10
-px
-
-
-;
-}
-.tooltipData {
- font-weight: bold;
-}
-</style>
-
<h:form>
<rich:dataTable value="#{toolTipData.vehicles}" width="400"
var="vehicle" rowKeyVar="row">
Modified: trunk/samples/richfaces-demo/src/main/webapp/welcome.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/welcome.xhtml 2008-12-19 14:01:35 UTC (rev 11915)
+++ trunk/samples/richfaces-demo/src/main/webapp/welcome.xhtml 2008-12-19 14:11:54 UTC (rev 11916)
@@ -7,7 +7,7 @@
<ui:define name="title">RichFaces - Open Source Rich JSF Components</ui:define>
<ui:define name="body">
<p>Welcome to the <a href="http://labs.jboss.com/jbossrichfaces"
- target="_blank" style="color:#000">Rich Faces 3.3</a> demo!</p>
+ target="_blank" style="color:#000">RichFaces 3.3</a> demo!</p>
<h4>About RichFaces</h4>
<p>RichFaces is a rich component library for JavaServer Faces
built on an advanced open source framework (Ajax4jsf). It allows easy integration of AJAX capabilities into enterprise-level business
17 years, 4 months
JBoss Rich Faces SVN: r11915 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-12-19 09:01:35 -0500 (Fri, 19 Dec 2008)
New Revision: 11915
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-3759
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-12-19 13:55:25 UTC (rev 11914)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-12-19 14:01:35 UTC (rev 11915)
@@ -1761,7 +1761,7 @@
this.changeCurrentDateOffset(-1,0);
},
- changeCurrentDate: function(year, month) {
+ changeCurrentDate: function(year, month, noUpdate) {
if (this.getCurrentMonth()!=month || this.getCurrentYear()!=year)
{
var date = new Date(year, month,1);
@@ -1772,10 +1772,12 @@
// value is updated in function onUpdate() and then
// the "currentdateselected" Event is fired.
this.currentDate = date;
- this.onUpdate();
+ if (noUpdate) this.render(); else this.onUpdate();
this.invokeEvent("currentdateselected", $(this.id), null, date);
+ return true;
}
}
+ return false;
},
changeCurrentDateOffset: function(yearOffset, monthOffset) {
@@ -1899,21 +1901,19 @@
// fire user event
var flag = true;
- var isDateChanged = false;
+ var isDateChange = false;
if ( (oldSelectedDate - newSelectedDate) && (oldSelectedDate!=null || newSelectedDate!=null) )
{
- isDateChanged = true;
- flag = this.invokeEvent("dateselect", eventData.element, eventData.event, date);
+ isDateChange = this.invokeEvent("dateselect", eventData.element, eventData.event, date);
}
- if (flag)
+ if (isDateChange)
{
- this.selectedDate = newSelectedDate;
- if (this.selectedDate!=null)
+ if (newSelectedDate!=null)
{
- var d = new Date(this.selectedDate);
- if (d.getMonth()==this.currentDate.getMonth() && d.getFullYear()==this.currentDate.getFullYear())
+ if (newSelectedDate.getMonth()==this.currentDate.getMonth() && newSelectedDate.getFullYear()==this.currentDate.getFullYear())
{
+ this.selectedDate = newSelectedDate;
if (!oldSelectedDate || (oldSelectedDate - this.selectedDate))
{
// find cell and change style class
@@ -1934,9 +1934,12 @@
else
{
// change currentDate and call this.onUpdate();
- d.setDate(1);
- this.currentDate = d;
- if (noUpdate) this.render(); else this.onUpdate();
+ if (this.changeCurrentDate(newSelectedDate.getFullYear(), newSelectedDate.getMonth(), noUpdate))
+ {
+ this.selectedDate = newSelectedDate;
+ } else {
+ isDateChange = false;
+ }
}
}
else
@@ -1964,7 +1967,7 @@
}
// call user event
- if (isDateChanged)
+ if (isDateChange)
{
this.invokeEvent("dateselected", eventData.element, eventData.event, this.selectedDate);
if (!this.showApplyButton)
@@ -1974,7 +1977,7 @@
}
}
- return flag;
+ return isDateChange;
},
resetSelectedDate: function()
17 years, 4 months
JBoss Rich Faces SVN: r11914 - in trunk/ui: tabPanel/src/main/config/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-12-19 08:55:25 -0500 (Fri, 19 Dec 2008)
New Revision: 11914
Modified:
trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
trunk/ui/tabPanel/src/main/config/component/tabPanel.xml
trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
trunk/ui/tree/src/main/config/component/tree.xml
Log:
RF-5428 - The "switchType" attribute descriptions has been corrected for the following components: simpleTogglePanel, tabPanel, tab, togglePanel, tree.
Modified: trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2008-12-19 13:42:01 UTC (rev 11913)
+++ trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2008-12-19 13:55:25 UTC (rev 11914)
@@ -81,7 +81,7 @@
<name>switchType</name>
<classname>java.lang.String</classname>
<description>
- <![CDATA[Facets switch algorithm: "client", "server"(default), "ajax"]]>
+ <![CDATA[Panels switch mode: "client", "server"(default), "ajax"]]>
</description>
</property>
<property required="false">
Modified: trunk/ui/tabPanel/src/main/config/component/tabPanel.xml
===================================================================
--- trunk/ui/tabPanel/src/main/config/component/tabPanel.xml 2008-12-19 13:42:01 UTC (rev 11913)
+++ trunk/ui/tabPanel/src/main/config/component/tabPanel.xml 2008-12-19 13:55:25 UTC (rev 11914)
@@ -65,7 +65,7 @@
<property>
<name>switchType</name>
<classname>java.lang.String</classname>
- <description><![CDATA[Tab switch algorithm: "client", "server"(default), "ajax"]]></description>
+ <description><![CDATA[Tabs switch mode: "client", "server"(default), "ajax"]]></description>
<defaultvalue>DEFAULT_METHOD</defaultvalue>
</property>
<property hidden="true" >
@@ -223,7 +223,7 @@
<property>
<name>switchType</name>
<classname>java.lang.String</classname>
- <description>Tab switch algorithm. Possible values are "client", "server", "ajax", "page".</description>
+ <description>Tabs switch mode. Possible values are "client", "server", "ajax", "page".</description>
</property>
<property hidden="true">
<name>active</name>
Modified: trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2008-12-19 13:42:01 UTC (rev 11913)
+++ trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2008-12-19 13:55:25 UTC (rev 11914)
@@ -40,7 +40,7 @@
<name>switchType</name>
<classname>java.lang.String</classname>
<description>
- <![CDATA[Facets switch algorithm: "client", "server"(default), "ajax".]]>
+ <![CDATA[Facets switch mode: "client", "server"(default), "ajax".]]>
</description>
<defaultvalue>DEFAULT_METHOD</defaultvalue>
</property>
Modified: trunk/ui/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/tree.xml 2008-12-19 13:42:01 UTC (rev 11913)
+++ trunk/ui/tree/src/main/config/component/tree.xml 2008-12-19 13:55:25 UTC (rev 11914)
@@ -115,7 +115,7 @@
<property>
<name>switchType</name>
<classname>java.lang.String</classname>
- <description>Tree switch algorithm: "client", "server", "ajax"</description>
+ <description>Tree Nodes switch mode: "client", "server", "ajax"</description>
<defaultvalue>"ajax"</defaultvalue>
</property>
<property>
17 years, 4 months