Author: alevkovsky
Date: 2009-03-31 08:06:53 -0400 (Tue, 31 Mar 2009)
New Revision: 13314
Added:
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefs.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
Log:
Realworld: correct authentication add user prefs edit template
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-03-31
09:34:42 UTC (rev 13313)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-03-31
12:06:53 UTC (rev 13314)
@@ -96,7 +96,11 @@
shelfManager.clearShelfs();
} catch (LoginException e) {
setLoginFailed(true);
+ credentials.clear();
+ identity.login();
identity.addRole(Constants.GUEST_ROLE);
+ facesMessages.clear();
+ facesMessages.add(INVALID_LOGIN_OR_PASSWORD);
FacesContext.getCurrentInstance().renderResponse();
}
return "main";
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefs.xhtml
===================================================================
(Binary files differ)
Added:
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js 2009-03-31
09:34:42 UTC (rev 13313)
+++ trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js 2009-03-31
12:06:53 UTC (rev 13314)
@@ -1,17 +1,3 @@
-
-function storeButtonDisabled(){
- var nodes = $$('.rich-message-label');
- var disabled = false;
- for(var i = 0; i < nodes.length; i++){
- var node = nodes[i];
- if(node.innerHTML != ""){
- disabled = true;
- break;
- }
- }
- return disabled;
- }
-
function selectAllFiles(f) {
for (var i = 0; i < filesCount; i++) {
var b = $('mainform:files:'+i+':file_selected');
Show replies by date