EditSelectForm.java

Go to the documentation of this file.
00001 package cedar.hepdata.webapp.pages;
00002 
00003 import java.util.Date;
00004 import cedar.hepdata.model.Data;
00005 import org.apache.tapestry5.annotations.*;
00006 import org.apache.tapestry5.ioc.annotations.*;
00007 import org.apache.tapestry5.annotations.*;
00008 import org.apache.tapestry5.ioc.annotations.*;
00009 
00011 public class EditSelectForm 
00012 {
00013     public Date getCurrentTime() {
00014         return new Date();
00015     }
00016 
00017     @InjectPage
00018     private EditPaperForm editpaperform;
00019 
00020     
00021     private String spiresId="6181112";
00022     public String getSpiresId(){ return spiresId; }
00023     public void setSpiresId(String spiresId){ this.spiresId = spiresId; }
00024 
00025     private String redId="3416";
00026     public String getRedId(){ return redId; }
00027     public void setRedId(String redId){ this.redId = redId; }
00028 
00029     private String hepdataId="1234";
00030     public String getHepdataId(){ return hepdataId; }
00031     public void setHepdataId(String hepdataId){ this.hepdataId = hepdataId; }
00032 
00033 
00034 
00035     @OnEvent (value="submit", component="editSelectForm")
00036     Object onFormSubmit()
00037     {
00038        System.out.println("submit button pressed from EditSelectForm ");
00039        editpaperform.setSpiresId(spiresId);
00040        editpaperform.setRedId(redId);
00041        editpaperform.setHepdataId(hepdataId);
00042        return editpaperform;
00043     }
00044 }

Generated on Tue Apr 21 15:55:00 2009 for HepData Web servlets by  doxygen 1.5.5