portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r772428 - in /portals/jetspeed-2/applications/j2-admin/trunk/src/main: java/org/apache/jetspeed/portlets/security/ java/org/apache/jetspeed/portlets/site/ resources/org/apache/jetspeed/portlets/security/resources/ resources/org/apache/jetsp...
Date Wed, 06 May 2009 21:11:47 GMT
Author: vkumar
Date: Wed May  6 21:11:47 2009
New Revision: 772428

URL: http://svn.apache.org/viewvc?rev=772428&view=rev
Log:
Adding Resouce-bundle in Javascript Confirmation message

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/security/JetspeedPrincipalManagementPortlet.java
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/JetspeedPrincipalManagement.properties
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/site/resources/SiteResources.properties

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/security/JetspeedPrincipalManagementPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/security/JetspeedPrincipalManagementPortlet.java?rev=772428&r1=772427&r2=772428&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/security/JetspeedPrincipalManagementPortlet.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/security/JetspeedPrincipalManagementPortlet.java
Wed May  6 21:11:47 2009
@@ -370,7 +370,7 @@
                     }
                 }
                 
-            }.add(new JavascriptEventConfirmation("onclick", "are you sure?")));        
   
+            }.add(new JavascriptEventConfirmation("onclick",new ResourceModel("action.delete.confirm"))));
           
             Form userRulesForm = new Form("userRulesForm")
             {
 
@@ -954,7 +954,7 @@
                     }
                 }
                 
-            }.add(new JavascriptEventConfirmation("onclick", "are you sure?")));
+            }.add(new JavascriptEventConfirmation("onclick", new ResourceModel("action.delete.confirm"))));
         }
 
         @Override

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java?rev=772428&r1=772427&r2=772428&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
Wed May  6 21:11:47 2009
@@ -541,7 +541,7 @@
                     LinkTree tree = (PortalTree) getPage().get("siteTree");
                     tree.updateTree(target);
                 }
-            }.add(new JavascriptEventConfirmation("onclick", "are you sure?")));
+            }.add(new JavascriptEventConfirmation("onclick", new ResourceModel("action.delete.confirm"))));
             infoForm.add(new AjaxButton("save",new ResourceModel("common.save"), infoForm)
             {
 
@@ -639,7 +639,7 @@
                             target.addComponent(ajaxPanel);
                         }
                     };
-                    deleteLink.add(new JavascriptEventConfirmation("onclick","are you sure?"));
                   
+                    deleteLink.add(new JavascriptEventConfirmation("onclick",new ResourceModel("action.delete.confirm")));
                   
                     deleteLink.add(new Label("deleteLabel",new ResourceModel("common.delete")));
                     listItem.add(deleteLink);
                 }
@@ -724,7 +724,7 @@
                     deleteLink.add(new Label("deleteLabel", new ResourceModel(
                             "common.delete")));
                     deleteLink.add(new JavascriptEventConfirmation("onclick",
-                            "are you sure?"));
+                            new ResourceModel("action.delete.confirm")));
                     listItem.add(deleteLink);
                 }
             };
@@ -1604,7 +1604,7 @@
                     target.addComponent(menuTree);
                     target.addComponent(tabPanel);
                 }
-            }.add(new JavascriptEventConfirmation("onclick","are you sure?")));
+            }.add(new JavascriptEventConfirmation("onclick",new ResourceModel("action.delete.confirm"))));
             add(menusTab);
         }
 
@@ -1751,7 +1751,7 @@
                         }                        
                     };
                     deleteLink.add(new Label("deleteLabel",new ResourceModel("common.delete")));
-                    deleteLink.add(new JavascriptEventConfirmation("onclick","are you sure?"));
 
+                    deleteLink.add(new JavascriptEventConfirmation("onclick",new ResourceModel("action.delete.confirm")));
 
                     listItem.add(deleteLink);
                 }
             });
@@ -1833,7 +1833,7 @@
                         }
                     };
                     deleteLink.add(new JavascriptEventConfirmation("onclick",
-                            "are you sure?"));
+                            new ResourceModel("action.delete.confirm")));
                     deleteLink.add(new Label("deleteLabel",new ResourceModel("common.delete")));
                     listItem.add(deleteLink);
                 }
@@ -1919,7 +1919,7 @@
                             target.addComponent(ajaxPanel);
                         }
                     };
-                    deleteLink.add(new JavascriptEventConfirmation("onclick","are you sure?"));
+                    deleteLink.add(new JavascriptEventConfirmation("onclick",new ResourceModel("action.delete.confirm")));
                     deleteLink.add(new Label("deleteLabel",new ResourceModel("common.delete")));
                     listItem.add(deleteLink);                    
                 }
@@ -2004,7 +2004,7 @@
                             target.addComponent(ajaxPanel);
                         }
                     }.add(new JavascriptEventConfirmation("onclick",
-                            "are you sure?")));
+                            new ResourceModel("action.delete.confirm"))));
                 }
             });
             add(new AjaxLink("new")

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/JetspeedPrincipalManagement.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/JetspeedPrincipalManagement.properties?rev=772428&r1=772427&r2=772428&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/JetspeedPrincipalManagement.properties
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/JetspeedPrincipalManagement.properties
Wed May  6 21:11:47 2009
@@ -66,4 +66,6 @@
 chgpwd.error.invalidNewPassword=Invalid new password
 chgpwd.error.passwordAlreadyUsed=Password already used
 
-sso_user=SSO User
\ No newline at end of file
+sso_user=SSO User
+
+action.delete.confirm = Are sure you want to delete the selected Principal?
\ No newline at end of file

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/site/resources/SiteResources.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/site/resources/SiteResources.properties?rev=772428&r1=772427&r2=772428&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/site/resources/SiteResources.properties
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/site/resources/SiteResources.properties
Wed May  6 21:11:47 2009
@@ -80,4 +80,6 @@
 menu.path=Path
 menu.depth=Depth
 menu.option=Options
-menu.text=Text
\ No newline at end of file
+menu.text=Text
+
+action.delete.confirm = Are sure you want to delete the selected item(s)?
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message