CVS: Tapestry/framework/src/net/sf/tapestry/callback DirectCallback.java,1.10,1.10.2.1 ICallback.java,1.4,1.4.2.1 PageCallback.java,1.6,1.6.2.1

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/callback
In directory sc8-pr-cvs1:/tmp/cvs-serv9155/framework/src/net/sf/tapestry/callback

Modified Files:
      Tag: hship-2-3
	DirectCallback.java ICallback.java PageCallback.java 
Log Message:
Automatically register components as page listeners if they implement necessary interfaces
Major rework on page property persistance
[ 653358 ] IPage.getName() == qualified name
[ 608768 ] Changes saved AFTER IPage.detach()

Index: DirectCallback.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/callback/DirectCallback.java,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -C2 -d -r1.10 -r1.10.2.1
*** DirectCallback.java	27 Nov 2002 17:58:56 -0000	1.10
--- DirectCallback.java	30 Dec 2002 03:04:57 -0000	1.10.2.1
***************
*** 65,69 ****
      public DirectCallback(IDirect component, Object[] parameters)
      {
!         _pageName = component.getPage().getName();
          _componentIdPath = component.getIdPath();
          _parameters = parameters;
--- 65,69 ----
      public DirectCallback(IDirect component, Object[] parameters)
      {
!         _pageName = component.getPage().getPageName();
          _componentIdPath = component.getIdPath();
          _parameters = parameters;

Index: ICallback.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/callback/ICallback.java,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** ICallback.java	27 Nov 2002 17:58:56 -0000	1.4
--- ICallback.java	30 Dec 2002 03:04:57 -0000	1.4.2.1
***************
*** 5,8 ****
--- 5,9 ----
  import net.sf.tapestry.IRequestCycle;
  import net.sf.tapestry.RequestCycleException;
+ import net.sf.tapestry.util.IImmutable;
  
  /**
***************
*** 14,17 ****
--- 15,21 ----
   *  <p>Callbacks must be {@link Serializable}, to ensure that they can be stored
   *  between request cycles.
+  * 
+  *  <p>Callbacks must be immutable, to ensure that they can be treated efficiently
+  *  by {@link net.sf.tapestry.record.IValuePersister}.
   *
   *  @version $Id$
***************
*** 21,25 ****
   **/
  
! public interface ICallback extends Serializable
  {
      /**
--- 25,29 ----
   **/
  
! public interface ICallback extends Serializable, IImmutable
  {
      /**

Index: PageCallback.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/callback/PageCallback.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** PageCallback.java	27 Nov 2002 17:58:56 -0000	1.6
--- PageCallback.java	30 Dec 2002 03:04:57 -0000	1.6.2.1
***************
*** 32,36 ****
      public PageCallback(IPage page)
      {
!         this(page.getName());
      }
  
--- 32,36 ----
      public PageCallback(IPage page)
      {
!         this(page.getPageName());
      }
  



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.