[pal-cvs 2374] [106] supported IE6.

svnno****@sourc***** svnno****@sourc*****
2007年 5月 11日 (金) 22:20:31 JST


Revision: 106
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=106
Author:   shinsuke
Date:     2007-05-11 22:20:30 +0900 (Fri, 11 May 2007)

Log Message:
-----------
supported IE6.

Modified Paths:
--------------
    pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/PALWcmConstants.java
    pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/portlet/PALWcmPortlet.java
    pal-wcm/trunk/src/main/webapp/view/wcm/wcmEdit.jsp
    pal-wcm/trunk/src/main/webapp/view/wcm/wcmPreferences.jsp


-------------- next part --------------
Modified: pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/PALWcmConstants.java
===================================================================
--- pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/PALWcmConstants.java	2007-05-11 09:15:44 UTC (rev 105)
+++ pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/PALWcmConstants.java	2007-05-11 13:20:30 UTC (rev 106)
@@ -70,4 +70,6 @@
 
     public static final String MESSAGE = PREFIX + "Message";
 
+    public static final String ACTION_TYPE = PREFIX + "ActionType";
+
 }

Modified: pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/portlet/PALWcmPortlet.java
===================================================================
--- pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/portlet/PALWcmPortlet.java	2007-05-11 09:15:44 UTC (rev 105)
+++ pal-wcm/trunk/src/main/java/jp/sf/pal/wcm/portlet/PALWcmPortlet.java	2007-05-11 13:20:30 UTC (rev 106)
@@ -329,7 +329,8 @@
     {
         String localeName = request.getParameter(PALWcmConstants.EDIT_LOCALE);
         setEditLocaleName(request, localeName);
-        if (request.getParameter(PALWcmConstants.CHANGE_LOCALE) != null)
+        String actionType = request.getParameter(PALWcmConstants.ACTION_TYPE);
+        if (PALWcmConstants.CHANGE_LOCALE.equals(actionType))
         {
             // no save 
             return;
@@ -383,8 +384,8 @@
     protected void processPreferencesEdit(ActionRequest request,
             ActionResponse response) throws PortletException, IOException
     {
-
-        if (request.getParameter(PALWcmConstants.ADD_LOCALE) != null)
+        String actionType = request.getParameter(PALWcmConstants.ACTION_TYPE);
+        if (PALWcmConstants.ADD_LOCALE.equals(actionType))
         {
             // add locale
             String fragmentId = request
@@ -452,7 +453,7 @@
                         "Failed to add the locale. ");
             }
         }
-        else if (request.getParameter(PALWcmConstants.DELETE_LOCALE) != null)
+        else if (PALWcmConstants.DELETE_LOCALE.equals(actionType))
         {
             // delete locale
             String fragmentId = request

Modified: pal-wcm/trunk/src/main/webapp/view/wcm/wcmEdit.jsp
===================================================================
--- pal-wcm/trunk/src/main/webapp/view/wcm/wcmEdit.jsp	2007-05-11 09:15:44 UTC (rev 105)
+++ pal-wcm/trunk/src/main/webapp/view/wcm/wcmEdit.jsp	2007-05-11 13:20:30 UTC (rev 106)
@@ -24,7 +24,7 @@
 </portlet:renderURL>
 
 <div style="z-index:10000;border-left:1px solid #999999;border-top:1px solid #999999;border-bottom:4px solid #999999;border-right:4px solid #999999;width:750px;height:500px;position:absolute; top:30px; left:30px;background-color:white;">
-  <form id="<portlet:namespace/>FCKeditorForm" action="<portlet:actionURL />" method="POST">
+  <form id="<portlet:namespace/>FCKeditorForm" action="<portlet:actionURL />" method="POST"><input type="hidden" name="<%= PALWcmConstants.ACTION_TYPE %>"/>
   <input type="hidden" name="<%= PALWcmConstants.EDIT_TYPE %>" value="<%= PALWcmConstants.CONTENT_EDIT_TYPE %>"/>
   <input type="hidden" name="<%= PALWcmConstants.FRAGMENT_ID %>" 
     value="<%= renderRequest.getAttribute(PALWcmConstants.FRAGMENT_ID) %>"/>
@@ -37,7 +37,7 @@
         <option value="">DEFAULT</option>
         <%= renderRequest.getAttribute(PALWcmConstants.LOCALE_LIST) %>
       </select>
-      <button style="height:22px;font-size:9px;" type="submit" name="<%= PALWcmConstants.CHANGE_LOCALE %>"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/arrow_refresh.png"/>Reload</button>
+      <button style="height:22px;font-size:9px;" type="submit" onclick="this.form.firstChild.value='<%= PALWcmConstants.CHANGE_LOCALE %>'"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/arrow_refresh.png"/>Reload</button>
       <span><%= renderRequest.getAttribute(PALWcmConstants.MESSAGE) %></span>
     </div>
     <div style="float:right;height:25px">

Modified: pal-wcm/trunk/src/main/webapp/view/wcm/wcmPreferences.jsp
===================================================================
--- pal-wcm/trunk/src/main/webapp/view/wcm/wcmPreferences.jsp	2007-05-11 09:15:44 UTC (rev 105)
+++ pal-wcm/trunk/src/main/webapp/view/wcm/wcmPreferences.jsp	2007-05-11 13:20:30 UTC (rev 106)
@@ -25,7 +25,7 @@
 </portlet:renderURL>
 
 <div style="z-index:10000;border-left:1px solid #999999;border-top:1px solid #999999;border-bottom:4px solid #999999;border-right:4px solid #999999;width:750px;height:500px;position:absolute; top:30px; left:30px;background-color:white;">
-  <form id="<portlet:namespace/>PreferencesForm" action="<portlet:actionURL />" method="POST">
+  <form id="<portlet:namespace/>PreferencesForm" action="<portlet:actionURL />" method="POST"><input type="hidden" name="<%= PALWcmConstants.ACTION_TYPE %>"/>
   <input type="hidden" name="<%= PALWcmConstants.EDIT_TYPE %>" value="<%= PALWcmConstants.PREFERENCES_EDIT_TYPE %>"/>
   <input type="hidden" name="<%= PALWcmConstants.FRAGMENT_ID %>" 
     value="<%= renderRequest.getAttribute(PALWcmConstants.FRAGMENT_ID) %>"/>
@@ -50,7 +50,7 @@
     <div>
       <label for="<portlet:namespace/>TargetLocale">Locale</label>
       <input type="text" id="<portlet:namespace/>TargetLocale" name="<%= PALWcmConstants.TARGET_LOCALE %>" size="10"/>
-      <button type="submit" name="<%= PALWcmConstants.ADD_LOCALE %>"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/add.png"/>Add</button>
+      <button type="submit" onclick="this.form.firstChild.value='<%= PALWcmConstants.ADD_LOCALE %>';"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/add.png"/>Add</button>
       <br/>
       <span style="color:#999999;">The format of Locale is xx_XX(ex. ja_JP).</span>
     </div>
@@ -60,7 +60,7 @@
       <select style="width:150px;" size="5" id="<portlet:namespace/>SelectedLocale" name="<%= PALWcmConstants.SELECTED_LOCALE %>">
         <%= renderRequest.getAttribute(PALWcmConstants.LOCALE_LIST) %>
       </select>
-      <button type="submit" name="<%= PALWcmConstants.DELETE_LOCALE %>"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/delete.png"/>Delete</button>
+      <button type="submit" onclick="this.form.firstChild.value='<%= PALWcmConstants.DELETE_LOCALE %>';"><img style="vertical-align:middle;" src="<%= renderRequest.getContextPath() %>/images/icons/delete.png"/>Delete</button>
     </div>
   </div>
 


pal-cvs メーリングリストの案内