myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r642515 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/
Date Sat, 29 Mar 2008 07:47:53 GMT
Author: imario
Date: Sat Mar 29 00:47:52 2008
New Revision: 642515

URL: http://svn.apache.org/viewvc?rev=642515&view=rev
Log:
reformat according to apache spec

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroup.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupTag.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPhaseListener.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmit.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitTag.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSupport.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PartialTriggerParser.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroup.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroup.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroup.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroup.java
Sat Mar 29 00:47:52 2008
@@ -62,15 +62,18 @@
 
     private String _replaceMessages;
 
-    public PPRPanelGroup() {
+    public PPRPanelGroup()
+    {
         setRendererType(DEFAULT_RENDERER_TYPE);
     }
 
-    public String getFamily() {
+    public String getFamily()
+    {
         return COMPONENT_FAMILY;
     }
 
-    public String getPartialTriggers() {
+    public String getPartialTriggers()
+    {
         if (_partialTriggers != null) {
             return _partialTriggers;
         }
@@ -78,11 +81,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setPartialTriggers(String partialTriggers) {
+    public void setPartialTriggers(String partialTriggers)
+    {
         this._partialTriggers = partialTriggers;
     }
 
-    public Integer getPeriodicalUpdate() {
+    public Integer getPeriodicalUpdate()
+    {
         if (_periodicalUpdate != null) {
             return _periodicalUpdate;
         }
@@ -90,11 +95,13 @@
         return (vb != null) ? (Integer) vb.getValue(getFacesContext()) : null;
     }
 
-    public void setPeriodicalUpdate(Integer periodicalUpdate) {
+    public void setPeriodicalUpdate(Integer periodicalUpdate)
+    {
         _periodicalUpdate = periodicalUpdate;
     }
 
-    public String getPeriodicalTriggers() {
+    public String getPeriodicalTriggers()
+    {
         if (_periodicalTriggers != null) {
             return _periodicalTriggers;
         }
@@ -102,11 +109,13 @@
         return (vb != null) ? (String) vb.getValue(getFacesContext()) : null;
     }
 
-    public void setPeriodicalTriggers(String periodicalTriggers) {
+    public void setPeriodicalTriggers(String periodicalTriggers)
+    {
         _periodicalTriggers = periodicalTriggers;
     }
 
-    public String getPartialTriggerPattern() {
+    public String getPartialTriggerPattern()
+    {
         if (_partialTriggerPattern != null) {
             return _partialTriggerPattern;
         }
@@ -114,11 +123,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setPartialTriggerPattern(String partialTriggerPattern) {
+    public void setPartialTriggerPattern(String partialTriggerPattern)
+    {
         this._partialTriggerPattern = partialTriggerPattern;
     }
 
-    public String getExcludeFromStoppingPeriodicalUpdate() {
+    public String getExcludeFromStoppingPeriodicalUpdate()
+    {
         if (_excludeFromStoppingPeriodicalUpdate != null) {
             return _excludeFromStoppingPeriodicalUpdate;
         }
@@ -126,11 +137,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setExcludeFromStoppingPeriodicalUpdate(String excludeFromStoppingPeriodicalUpdate)
{
+    public void setExcludeFromStoppingPeriodicalUpdate(String excludeFromStoppingPeriodicalUpdate)
+    {
         _excludeFromStoppingPeriodicalUpdate = excludeFromStoppingPeriodicalUpdate;
     }
 
-    public Integer getWaitBeforePeriodicalUpdate() {
+    public Integer getWaitBeforePeriodicalUpdate()
+    {
         if (_waitBeforePeriodicalUpdate != null) {
             return _waitBeforePeriodicalUpdate;
         }
@@ -138,11 +151,13 @@
         return (vb != null) ? (Integer) vb.getValue(getFacesContext()) : null;
     }
 
-    public void setWaitBeforePeriodicalUpdate(Integer waitBeforePeriodicalUpdate) {
+    public void setWaitBeforePeriodicalUpdate(Integer waitBeforePeriodicalUpdate)
+    {
         _waitBeforePeriodicalUpdate = waitBeforePeriodicalUpdate;
     }
 
-    public String getInlineLoadingMessage() {
+    public String getInlineLoadingMessage()
+    {
         if (_inlineLoadingMessage != null) {
             return _inlineLoadingMessage;
         }
@@ -150,11 +165,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setInlineLoadingMessage(String inlineLoadingMessage) {
+    public void setInlineLoadingMessage(String inlineLoadingMessage)
+    {
         this._inlineLoadingMessage = inlineLoadingMessage;
     }
 
-    public Boolean getShowDebugMessages() {
+    public Boolean getShowDebugMessages()
+    {
         if (_showDebugMessages != null) {
             return _showDebugMessages;
         }
@@ -162,11 +179,13 @@
         return vb != null ? (Boolean) vb.getValue(getFacesContext()) : null;
     }
 
-    public void setShowDebugMessages(Boolean showDebugMessages) {
+    public void setShowDebugMessages(Boolean showDebugMessages)
+    {
         _showDebugMessages = showDebugMessages;
     }
 
-    public Boolean getStateUpdate() {
+    public Boolean getStateUpdate()
+    {
         if (_stateUpdate != null) {
             return _stateUpdate;
         }
@@ -174,11 +193,13 @@
         return vb != null ? (Boolean) vb.getValue(getFacesContext()) : null;
     }
 
-    public void setStateUpdate(Boolean stateUpdate) {
+    public void setStateUpdate(Boolean stateUpdate)
+    {
         _stateUpdate = stateUpdate;
     }
 
-    public String getAppendMessages() {
+    public String getAppendMessages()
+    {
         if (_appendMessages != null) {
             return _appendMessages;
         }
@@ -186,11 +207,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setAppendMessages(String appendMessages) {
+    public void setAppendMessages(String appendMessages)
+    {
         this._appendMessages = appendMessages;
     }
 
-    public String getReplaceMessages() {
+    public String getReplaceMessages()
+    {
         if (_replaceMessages != null) {
             return _replaceMessages;
         }
@@ -198,11 +221,13 @@
         return vb != null ? RendererUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
-    public void setReplaceMessages(String replaceMessages) {
+    public void setReplaceMessages(String replaceMessages)
+    {
         this._replaceMessages = replaceMessages;
     }
 
-    public void restoreState(FacesContext context, Object state) {
+    public void restoreState(FacesContext context, Object state)
+    {
         Object[] values = (Object[]) state;
         super.restoreState(context, values[0]);
         _partialTriggers = (String) values[1];
@@ -217,7 +242,8 @@
         _replaceMessages = (String) values[10];
     }
 
-    public Object saveState(FacesContext context) {
+    public Object saveState(FacesContext context)
+    {
         Object[] values = new Object[11];
         values[0] = super.saveState(context);
         values[1] = _partialTriggers;
@@ -237,7 +263,8 @@
     /**
      * @return {@link PartialTriggerParser.PartialTrigger}
      */
-    public List parsePartialTriggers() {
+    public List parsePartialTriggers()
+    {
         List list;
         String partialTriggers = getPartialTriggers();
         //handle partial triggers
@@ -253,7 +280,8 @@
     /**
      * @return {@link PartialTriggerParser.PartialTrigger}
      */
-    public List parsePeriodicalTriggers() {
+    public List parsePeriodicalTriggers()
+    {
         List list;
         String periodicalTriggers = getPeriodicalTriggers();
         if (periodicalTriggers != null && periodicalTriggers.trim().length() <=
0) {

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java
Sat Mar 29 00:47:52 2008
@@ -50,7 +50,8 @@
      * @param facesContext the current {@link FacesContext}
      * @param uiComponent  the {@link PPRPanelGroup} to render
      */
-    public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException
{
+    public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException
+    {
         if (uiComponent.getId() == null || uiComponent.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
{
             throw new IllegalArgumentException("'id' is a required attribute for the PPRPanelGroup");
         }
@@ -82,7 +83,8 @@
      * @param component
      * @throws IOException
      */
-    public void encodeChildren(FacesContext context, UIComponent component) throws IOException
{
+    public void encodeChildren(FacesContext context, UIComponent component) throws IOException
+    {
         Boolean disableRenderChildren = (Boolean) component.getAttributes().get(DISABLE_RENDER_CHILDREN);
 
         if (disableRenderChildren == null || disableRenderChildren.booleanValue() == false)
{
@@ -98,7 +100,8 @@
      * @param facesContext the current {@link FacesContext}
      * @param uiComponent  the {@link PPRPanelGroup} to render
      */
-    public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException
{
+    public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException
+    {
         // Render the span end element
         super.encodeEnd(facesContext, uiComponent);
         if (uiComponent instanceof PPRPanelGroup) {

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupTag.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupTag.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupTag.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupTag.java
Sat Mar 29 00:47:52 2008
@@ -49,15 +49,18 @@
 
     private String _replaceMessages;
 
-    public String getComponentType() {
+    public String getComponentType()
+    {
         return PPRPanelGroup.COMPONENT_TYPE;
     }
 
-    public String getRendererType() {
+    public String getRendererType()
+    {
         return PPRPanelGroup.DEFAULT_RENDERER_TYPE;
     }
 
-    public void release() {
+    public void release()
+    {
         super.release();
         _partialTriggers = null;
         _periodicalUpdate = null;
@@ -70,7 +73,8 @@
         _replaceMessages = null;
     }
 
-    protected void setProperties(UIComponent component) {
+    protected void setProperties(UIComponent component)
+    {
         super.setProperties(component);
 
         setStringProperty(component, "partialTriggers", _partialTriggers);
@@ -86,71 +90,88 @@
         setStringProperty(component, "replaceMessages", _replaceMessages);
     }
 
-    public String getPartialTriggers() {
+    public String getPartialTriggers()
+    {
         return _partialTriggers;
     }
 
-    public void setPartialTriggers(String partialTriggers) {
+    public void setPartialTriggers(String partialTriggers)
+    {
         this._partialTriggers = partialTriggers;
     }
 
-    public String getPartialTriggerPattern() {
+    public String getPartialTriggerPattern()
+    {
         return _partialTriggerPattern;
     }
 
-    public void setPartialTriggerPattern(String triggerPattern) {
+    public void setPartialTriggerPattern(String triggerPattern)
+    {
         _partialTriggerPattern = triggerPattern;
     }
 
-    public String getInlineLoadingMessage() {
+    public String getInlineLoadingMessage()
+    {
         return _inlineLoadingMessage;
     }
 
-    public void setInlineLoadingMessage(String loadingMessage) {
+    public void setInlineLoadingMessage(String loadingMessage)
+    {
         _inlineLoadingMessage = loadingMessage;
     }
 
-    public void setPeriodicalUpdate(String periodicalUpdate) {
+    public void setPeriodicalUpdate(String periodicalUpdate)
+    {
         _periodicalUpdate = periodicalUpdate;
     }
 
-    public String getPeriodicalTriggers() {
+    public String getPeriodicalTriggers()
+    {
         return _periodicalTriggers;
     }
 
-    public void setPeriodicalTriggers(String periodicalTriggers) {
+    public void setPeriodicalTriggers(String periodicalTriggers)
+    {
         _periodicalTriggers = periodicalTriggers;
     }
 
-    public void setShowDebugMessages(String showDebugMessages) {
+    public void setShowDebugMessages(String showDebugMessages)
+    {
         _showDebugMessages = showDebugMessages;
     }
 
-    public void setStateUpdate(String stateUpdate) {
+    public void setStateUpdate(String stateUpdate)
+    {
         _stateUpdate = stateUpdate;
     }
 
-    public void setExcludeFromStoppingPeriodicalUpdate(String excludeFromStoppingPeriodicalUpdate)
{
+    public void setExcludeFromStoppingPeriodicalUpdate(String excludeFromStoppingPeriodicalUpdate)
+    {
         _excludeFromStoppingPeriodicalUpdate = excludeFromStoppingPeriodicalUpdate;
     }
 
-    public void setWaitBeforePeriodicalUpdate(String waitBeforePeriodicalUpdate) {
+    public void setWaitBeforePeriodicalUpdate(String waitBeforePeriodicalUpdate)
+    {
         _waitBeforePeriodicalUpdate = waitBeforePeriodicalUpdate;
     }
 
-    public String getAppendMessages() {
+    public String getAppendMessages()
+    {
         return _appendMessages;
     }
 
-    public void setAppendMessages(String _appendMessages) {
+    public void setAppendMessages(String _appendMessages)
+    {
         this._appendMessages = _appendMessages;
     }
 
-    public String getReplaceMessages() {
+    public String getReplaceMessages()
+    {
         return _replaceMessages;
     }
 
-    public void setReplaceMessages(String _replaceMessages) {
+    public void setReplaceMessages(String _replaceMessages)
+    {
         this._replaceMessages = _replaceMessages;
     }
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPhaseListener.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPhaseListener.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPhaseListener.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPhaseListener.java
Sat Mar 29 00:47:52 2008
@@ -75,7 +75,8 @@
 
     private static final String XML_HEADER = "<?xml version=\"1.0\"?>\n";
 
-    public void afterPhase(PhaseEvent phaseEvent) {
+    public void afterPhase(PhaseEvent phaseEvent)
+    {
     }
 
     /**
@@ -86,7 +87,8 @@
      * previously been marked not transient by the
      * {@link PPRPanelGroupRenderer} are set to transient again
      */
-    public void beforePhase(PhaseEvent event) {
+    public void beforePhase(PhaseEvent event)
+    {
         if (log.isDebugEnabled()) {
             log.debug("In PPRPhaseListener beforePhase");
         }
@@ -112,7 +114,8 @@
      *
      * @param comp the component to reset
      */
-    private void resetTransientComponents(UIComponent comp) {
+    private void resetTransientComponents(UIComponent comp)
+    {
         if (comp.getAttributes().containsKey(PPRPanelGroupRenderer.TRANSIENT_MARKER_ATTRIBUTE))
{
             comp.setTransient(true);
         }
@@ -129,7 +132,8 @@
      * @param context the current {@link FacesContext}
      * @return true if a PPR request is being processed , false otherwise
      */
-    public static boolean isPartialRequest(FacesContext context) {
+    public static boolean isPartialRequest(FacesContext context)
+    {
         return context.getExternalContext().getRequestParameterMap().containsKey(PPR_PARAMETER);
     }
 
@@ -144,7 +148,8 @@
      * @param externalContext the current {@link ExternalContext}
      * @param requestMap      Map containing the request attributes
      */
-    private void processPartialPageRequest(FacesContext context, final ExternalContext externalContext,
Map requestMap) {
+    private void processPartialPageRequest(FacesContext context, final ExternalContext externalContext,
Map requestMap)
+    {
 
         ServletResponse response = (ServletResponse) externalContext.getResponse();
         ServletRequest request = (ServletRequest) externalContext.getRequest();
@@ -187,7 +192,8 @@
      * @return a comma separated list of component IDs of the components
      *         which are to be updated
      */
-    private static String getTriggeredComponents(FacesContext fc) {
+    private static String getTriggeredComponents(FacesContext fc)
+    {
         String triggeredComponents = (String) fc.getExternalContext().getRequestMap().get(TRIGGERED_COMPONENTS_PARAMETER);
 
         if (triggeredComponents == null) {
@@ -204,7 +210,8 @@
      * @param triggeredComponentClientId client ID of the component which is to be updated
in
      *                                   case of a PPR Response
      */
-    public static void addTriggeredComponent(FacesContext fc, String triggeredComponentClientId)
{
+    public static void addTriggeredComponent(FacesContext fc, String triggeredComponentClientId)
+    {
         String triggeredComponents = getTriggeredComponents(fc);
 
         if (triggeredComponents == null || triggeredComponents.trim().length() == 0) {
@@ -227,7 +234,8 @@
      * @param charset     the character set
      * @return the content-type String to be used in an HTTP response
      */
-    private String getContentType(String contentType, String charset) {
+    private String getContentType(String contentType, String charset)
+    {
         if (charset == null || charset.trim().length() == 0) {
             return contentType;
         }
@@ -246,7 +254,8 @@
      * @param viewRoot            the current ViewRoot
      * @param context             the current {@link FacesContext}
      */
-    private void encodeTriggeredComponents(PrintWriter out, String triggeredComponents, UIViewRoot
viewRoot, FacesContext context) {
+    private void encodeTriggeredComponents(PrintWriter out, String triggeredComponents, UIViewRoot
viewRoot, FacesContext context)
+    {
         StringTokenizer st = new StringTokenizer(triggeredComponents, ",", false);
         String clientId;
         UIComponent component;
@@ -270,7 +279,8 @@
                     UIComponentPerspective uiComponentPerspective = (UIComponentPerspective)
component;
                     ExecuteOnCallback getComponentCallback = new ExecuteOnCallback()
                     {
-                        public Object execute(FacesContext context, UIComponent component)
{
+                        public Object execute(FacesContext context, UIComponent component)
+                        {
                             return component;
                         }
                     };
@@ -388,7 +398,8 @@
 
     }
 
-    private List getComponentsByCommaSeparatedIdList(FacesContext context, UIComponent comp,
String idList, Class desiredType) {
+    private List getComponentsByCommaSeparatedIdList(FacesContext context, UIComponent comp,
String idList, Class desiredType)
+    {
         List retval = new ArrayList();
         UIComponent currentComponent = null;
         String[] ids = StringUtils.split(idList, ',');
@@ -408,11 +419,13 @@
         return retval;
     }
 
-    private boolean nullSafeCheckComponentType(Class desiredType, UIComponent currentComponent)
{
+    private boolean nullSafeCheckComponentType(Class desiredType, UIComponent currentComponent)
+    {
         return currentComponent != null && (desiredType == null || desiredType.isAssignableFrom(currentComponent.getClass()));
     }
 
-    private static List getComponentsByCommaSeparatedList(FacesContext context, UIComponent
comp, String commaSeparatedIdList, Class componentType) {
+    private static List getComponentsByCommaSeparatedList(FacesContext context, UIComponent
comp, String commaSeparatedIdList, Class componentType)
+    {
         List retval = new ArrayList();
         UIComponent currentComponent = null;
         String[] componentIds = StringUtils.split(commaSeparatedIdList, ',');
@@ -423,7 +436,8 @@
         return retval;
     }
 
-    public PhaseId getPhaseId() {
+    public PhaseId getPhaseId()
+    {
         return PhaseId.RENDER_RESPONSE;
     }
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmit.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmit.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmit.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmit.java
Sat Mar 29 00:47:52 2008
@@ -31,7 +31,8 @@
 
     public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.PPRSubmit";
 
-    public String getFamily() {
+    public String getFamily()
+    {
         return COMPONENT_FAMILY;
     }
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
Sat Mar 29 00:47:52 2008
@@ -39,7 +39,8 @@
 
     public static final String TRANSIENT_MARKER_ATTRIBUTE = "org.apache.myfaces.PPRPanelGroup.transientComponent";
 
-    public void encodeEnd(FacesContext context, UIComponent component) throws IOException
{
+    public void encodeEnd(FacesContext context, UIComponent component) throws IOException
+    {
         //if(PPRSupport.isPartialRequest(context)) {
         //    return;
         //}
@@ -69,7 +70,8 @@
         }
     }
 
-    public void addPPRPanelGroupComponents(UIComponent component, List list) {
+    public void addPPRPanelGroupComponents(UIComponent component, List list)
+    {
         for (Iterator it = component.getChildren().iterator(); it.hasNext();) {
             UIComponent c = (UIComponent) it.next();
             if (c instanceof PPRPanelGroup) {

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitTag.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitTag.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitTag.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitTag.java
Sat Mar 29 00:47:52 2008
@@ -26,11 +26,13 @@
 public class PPRSubmitTag extends UIComponentBodyTag
 {
 
-    public String getComponentType() {
+    public String getComponentType()
+    {
         return PPRSubmit.COMPONENT_TYPE;
     }
 
-    public String getRendererType() {
+    public String getRendererType()
+    {
         return PPRSubmit.DEFAULT_RENDERER_TYPE;
     }
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSupport.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSupport.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSupport.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSupport.java
Sat Mar 29 00:47:52 2008
@@ -63,7 +63,8 @@
 
     private static final String MY_FACES_PPR_INIT_CODE = "new org.apache.myfaces.PPRCtrl";
 
-    public static boolean isPartialRequest(FacesContext facesContext) {
+    public static boolean isPartialRequest(FacesContext facesContext)
+    {
         return PPRPhaseListener.isPartialRequest(facesContext);
     }
 
@@ -79,7 +80,8 @@
      * @throws java.io.IOException if the underlying Layer throws an {@link java.io.IOException}
      *                             it is passed through
      */
-    public static void initPPR(FacesContext facesContext, UIComponent uiComponent) throws
IOException {
+    public static void initPPR(FacesContext facesContext, UIComponent uiComponent) throws
IOException
+    {
         //if(isPartialRequest(facesContext)) {
         //    return;
         //}
@@ -125,7 +127,8 @@
      * @throws IOException if the underlying Layer throws an {@link IOException}
      *                     it is passed through
      */
-    public static void encodeJavaScript(FacesContext facesContext, PPRPanelGroup pprGroup)
throws IOException {
+    public static void encodeJavaScript(FacesContext facesContext, PPRPanelGroup pprGroup)
throws IOException
+    {
         StringBuffer script = new StringBuffer();
 
         // all JS is put inside a function passed to dojoOnLoad
@@ -154,7 +157,8 @@
     }
 
     public static void encodeJavaScript(FacesContext context, UIComponent uiComponent, PPRPanelGroup
pprGroup,
-                                        PartialTriggerParser.PartialTrigger trigger) throws
IOException {
+                                        PartialTriggerParser.PartialTrigger trigger) throws
IOException
+    {
         StringBuffer script = new StringBuffer();
         script.append("dojo.addOnLoad( function(){ ");
         String pprCtrlReference = initPPRFormControl(context, pprGroup, script);
@@ -172,7 +176,8 @@
                                              String pprCtrlReference,
                                              String clientId,
                                              UIComponent partialTriggerComponent,
-                                             PartialTriggerParser.PartialTrigger trigger)
{
+                                             PartialTriggerParser.PartialTrigger trigger)
+    {
         String partialTriggerClientId;
         String partialTriggerId = trigger.getPartialTriggerId();
         if (partialTriggerComponent == null) {
@@ -189,7 +194,8 @@
         }
     }
 
-    private static void encodePartialTriggers(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference) {
+    private static void encodePartialTriggers(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference)
+    {
         String clientId = pprGroup.getClientId(context);
         UIComponent partialTriggerComponent;
 
@@ -202,7 +208,8 @@
         }
     }
 
-    private static void encodePartialTriggerPattern(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference) {
+    private static void encodePartialTriggerPattern(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference)
+    {
         String clientId = pprGroup.getClientId(context);
 
         String partialTriggerPattern = pprGroup.getPartialTriggerPattern();
@@ -214,7 +221,8 @@
 
     }
 
-    private static void encodeInlineLoadMsg(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference) {
+    private static void encodeInlineLoadMsg(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference)
+    {
         String clientId = pprGroup.getClientId(context);
         String inlineLoadingMessage = pprGroup.getInlineLoadingMessage();
 
@@ -224,7 +232,8 @@
         }
     }
 
-    private static void encodeSubFormFunction(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference) {
+    private static void encodeSubFormFunction(FacesContext context, PPRPanelGroup pprGroup,
StringBuffer script, String pprCtrlReference)
+    {
         String clientId = pprGroup.getClientId(context);
         SubForm subFormParent = findParentSubForm(pprGroup);
         if (subFormParent != null) {
@@ -232,7 +241,8 @@
         }
     }
 
-    private static void encodePeriodicalUpdates(FacesContext facesContext, PPRPanelGroup
pprGroup, StringBuffer script, String pprCtrlReference) {
+    private static void encodePeriodicalUpdates(FacesContext facesContext, PPRPanelGroup
pprGroup, StringBuffer script, String pprCtrlReference)
+    {
         String clientId = pprGroup.getClientId(facesContext);
 
         //Handle periodical updates
@@ -284,7 +294,8 @@
         }
     }
 
-    private static String initPPRFormControl(FacesContext facesContext, PPRPanelGroup pprGroup,
StringBuffer script) {
+    private static String initPPRFormControl(FacesContext facesContext, PPRPanelGroup pprGroup,
StringBuffer script)
+    {
         FormInfo fi = RendererUtils.findNestingForm(pprGroup, facesContext);
         if (fi == null) {
             throw new FacesException("PPRPanelGroup must be embedded in a form.");
@@ -308,7 +319,8 @@
         return pprCtrlReference;
     }
 
-    public static SubForm findParentSubForm(UIComponent base) {
+    public static SubForm findParentSubForm(UIComponent base)
+    {
         if (base == null) {
             return null;
         }
@@ -318,7 +330,8 @@
         return findParentSubForm(base.getParent());
     }
 
-    private static String encodeArray(List eventHooks) {
+    private static String encodeArray(List eventHooks)
+    {
         if (eventHooks == null || eventHooks.size() == 0) {
             return "null";
         }
@@ -350,7 +363,8 @@
      * @param script       The script to be written.
      * @throws IOException A forwarded exception from the underlying renderer.
      */
-    private static void renderInlineScript(FacesContext facesContext, UIComponent component,
String script) throws IOException {
+    private static void renderInlineScript(FacesContext facesContext, UIComponent component,
String script) throws IOException
+    {
         ResponseWriter writer = facesContext.getResponseWriter();
         writer.startElement(HTML.SCRIPT_ELEM, component);
         writer.writeAttribute(HTML.TYPE_ATTR, HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PartialTriggerParser.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PartialTriggerParser.java?rev=642515&r1=642514&r2=642515&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PartialTriggerParser.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PartialTriggerParser.java
Sat Mar 29 00:47:52 2008
@@ -10,7 +10,8 @@
 public class PartialTriggerParser
 {
 
-    public List parse(String partialTriggerString) {
+    public List parse(String partialTriggerString)
+    {
 
         int lastTokenEnd = 0;
         boolean subLevelMode = false;
@@ -67,22 +68,26 @@
         private String partialTriggerId;
         private List eventHooks;
 
-        public void addEventHook(String eventHook) {
+        public void addEventHook(String eventHook)
+        {
             if (eventHooks == null) {
                 eventHooks = new ArrayList();
             }
             eventHooks.add(eventHook);
         }
 
-        public String getPartialTriggerId() {
+        public String getPartialTriggerId()
+        {
             return partialTriggerId;
         }
 
-        public void setPartialTriggerId(String partialTriggerId) {
+        public void setPartialTriggerId(String partialTriggerId)
+        {
             this.partialTriggerId = partialTriggerId;
         }
 
-        public List getEventHooks() {
+        public List getEventHooks()
+        {
             if (eventHooks == null) {
                 return Collections.EMPTY_LIST;
             }
@@ -91,7 +96,8 @@
         }
     }
 
-    public static void main(String[] args) {
+    public static void main(String[] args)
+    {
         PartialTriggerParser parser = new PartialTriggerParser();
         List li = parser.parse(/*", ; ,, test1id   (onkeyup,onkeydown,,,test2id test3id;test4id"*/"testid(onchange)");
 



Mime
View raw message