beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julie Zhuo (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Created: (BEEHIVE-651) Sample code in Controls Tutorial Step3 is missing annotaion isTransient=true
Date Tue, 10 May 2005 18:03:09 GMT
Sample code in Controls Tutorial Step3 is missing annotaion isTransient=true
----------------------------------------------------------------------------

         Key: BEEHIVE-651
         URL: http://issues.apache.org/jira/browse/BEEHIVE-651
     Project: Beehive
        Type: Bug
  Components: Documentation  
    Versions: V1    
    Reporter: Julie Zhuo


bash05102005 

Or have its interface/itself implement Serializable. It won't compile that way.

****Here is the copy of the sample code from the tutorial**************

Step 3: Add a Parameterized Method to the Control
To edit the Interface and Implementation Files
Edit C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.jcs so it appears as follows.
Code to add appears in bold.

package pkg;

import org.apache.beehive.controls.api.bean.*;

@ControlImplementation
public class HelloImpl implements Hello
{
    public String hello()
    {
        return "hello!";
    }

    public String helloParam( String name )
    {
        return "Hello, " + name + "!";
    }
}Edit C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/Hello.java so it appears as follows.
Code to add appears in bold.

package pkg;

import org.apache.beehive.controls.api.bean.*;

@ControlInterface
public interface Hello
{
    String hello();

    String helloParam( String name );
}Edit the Controller.jpf File


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message