[seam-commits] Seam SVN: r8723 - trunk/src/main/org/jboss/seam/navigation.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Aug 18 05:41:19 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-08-18 05:41:19 -0400 (Mon, 18 Aug 2008)
New Revision: 8723

Modified:
   trunk/src/main/org/jboss/seam/navigation/Pages.java
Log:
JBSEAM-3274

Modified: trunk/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- trunk/src/main/org/jboss/seam/navigation/Pages.java	2008-08-18 07:50:07 UTC (rev 8722)
+++ trunk/src/main/org/jboss/seam/navigation/Pages.java	2008-08-18 09:41:19 UTC (rev 8723)
@@ -982,6 +982,38 @@
          loginViewId = root.attributeValue("login-view-id");
       }
       
+      if (httpPort == null)
+      {
+         try
+         {
+            String value = root.attributeValue("http-port");
+            if (!Strings.isEmpty(value))
+            {
+               httpPort = Integer.parseInt(value);
+            }
+         }
+         catch (NumberFormatException ex)
+         {
+            throw new IllegalStateException("Invalid value specified for http-port attribute in pages.xml");
+         }
+      }
+      
+      if (httpsPort == null)
+      {
+         try
+         {
+            String value = root.attributeValue("https-port");
+            if (!Strings.isEmpty(value))
+            {
+               httpsPort = Integer.parseInt(value);
+            }
+         }
+         catch (NumberFormatException ex)
+         {
+            throw new IllegalStateException("Invalid valid specified for https-port attribute in pages.xml");
+         }
+      }
+      
       List<Element> elements = root.elements("conversation");
       for (Element conversation : elements)
       {




More information about the seam-commits mailing list