[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/component ...

Peter Muir peter at bleepbleep.org.uk
Wed Jun 20 05:54:37 EDT 2007


  User: pmuir   
  Date: 07/06/20 05:54:37

  Modified:    ui/src/main/java/org/jboss/seam/ui/component 
                        UISeamCommandBase.java
  Log:
  JBSEAM-1509
  
  Revision  Changes    Path
  1.4       +64 -69    jboss-seam/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UISeamCommandBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/component/UISeamCommandBase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- UISeamCommandBase.java	20 Jun 2007 03:12:53 -0000	1.3
  +++ UISeamCommandBase.java	20 Jun 2007 09:54:37 -0000	1.4
  @@ -22,14 +22,11 @@
   public abstract class UISeamCommandBase extends UIOutput implements ActionSource
   {
   
  -   private String encodedUrl;
  -
      public abstract String getView();
   
      public String getUrl() throws UnsupportedEncodingException
      {
  -      if (encodedUrl == null)
  -      {
  +      String encodedUrl;
            FacesContext context = getFacesContext();
            String viewId = getView();
            if (viewId == null)
  @@ -67,7 +64,7 @@
            {
   
               UIAction uiAction = new UIAction();
  -            uiAction.setAction( action.getExpressionString() );
  +         uiAction.setAction(action.getExpressionString());
               url.addParameter(uiAction);
            }
   
  @@ -102,7 +99,7 @@
               url.addParameter(uiSelection);
            }
            encodedUrl = url.getEncodedUrl();
  -      }
  +
         return encodedUrl;
      }
   
  @@ -164,8 +161,6 @@
         return null;
      }
      
  -
  -   
      public void removeActionListener(ActionListener listener)
      {
         // TODO Auto-generated method stub
  
  
  



More information about the jboss-cvs-commits mailing list