This is an automated email from the ASF dual-hosted git repository.

dixitdeepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new eb0e569796 Updated the example screen location used in ScreenFactory 
validation error messages to reference an existing framework screen instead of 
a non-existent application screen. This ensures the example is valid and avoids 
references to application-specific resources.(OFBIZ-13305)
eb0e569796 is described below

commit eb0e569796636d10f6ce1509ed3381cb30114625
Author: Deepak Dixit <[email protected]>
AuthorDate: Wed Jul 1 12:49:29 2026 +0530

    Updated the example screen location used in ScreenFactory validation error 
messages to reference an existing framework screen instead of a non-existent 
application screen. This ensures the example is valid and avoids references to 
application-specific resources.(OFBIZ-13305)
---
 .../main/java/org/apache/ofbiz/widget/model/ScreenFactory.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ScreenFactory.java
 
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ScreenFactory.java
index 31bfc7f188..21369cd0c2 100644
--- 
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ScreenFactory.java
+++ 
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ScreenFactory.java
@@ -69,11 +69,11 @@ public class ScreenFactory {
         int numSignIndex = combinedName.lastIndexOf("#");
         if (numSignIndex == -1) {
             throw new IllegalArgumentException("Error in screen location/name: 
no \"#\" found to separate the location from the name;"
-                    + "correct example: 
component://product/screen/product/ProductScreens.xml#EditProduct");
+                    + "correct example: 
component://common/widget/CommonScreens.xml#states");
         }
         if (numSignIndex + 1 >= combinedName.length()) {
             throw new IllegalArgumentException("Error in screen location/name: 
the \"#\" was at the end with no screen name after it;"
-                    + "correct example: 
component://product/screen/product/ProductScreens.xml#EditProduct");
+                    + "correct example: 
component://common/widget/CommonScreens.xml#states");
         }
         String resourceName = combinedName.substring(0, numSignIndex);
         return resourceName;
@@ -84,11 +84,11 @@ public class ScreenFactory {
         int numSignIndex = combinedName.lastIndexOf("#");
         if (numSignIndex == -1) {
             throw new IllegalArgumentException("Error in screen location/name: 
no \"#\" found to separate the location from the name;"
-                    + "correct example: 
component://product/screen/product/ProductScreens.xml#EditProduct");
+                    + "correct example: 
component://common/widget/CommonScreens.xml#states");
         }
         if (numSignIndex + 1 >= combinedName.length()) {
             throw new IllegalArgumentException("Error in screen location/name: 
the \"#\" was at the end with no screen name after it;"
-                    + "correct example: 
component://product/screen/product/ProductScreens.xml#EditProduct");
+                    + "correct example: 
component://common/widget/CommonScreens.xml#states");
         }
         String screenName = combinedName.substring(numSignIndex + 1);
         return screenName;

Reply via email to