You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by js...@apache.org on 2005/05/10 20:17:58 UTC
svn commit: r169505 - in
/incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership:
./ Controller.jpf
Author: jsong
Date: Tue May 10 11:17:57 2005
New Revision: 169505
URL: http://svn.apache.org/viewcvs?rev=169505&view=rev
Log:
Add a test for compile error when declaring controls with property constraints.
Added:
incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/
incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/Controller.jpf
Added: incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/Controller.jpf?rev=169505&view=auto
==============================================================================
--- incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/Controller.jpf (added)
+++ incubator/beehive/trunk/controls/test/webapps/controlsWeb/property/membership/Controller.jpf Tue May 10 11:17:57 2005
@@ -0,0 +1,69 @@
+/*
+ *
+ * N E T U I
+ *
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * All Rights Reserved. Unpublished rights reserved under the copyright laws
+ * of the United States. The software contained on this media is proprietary
+ * to and embodies the confidential technology of BEA Systems, Inc. The
+ * possession or receipt of this information does not convey any right to
+ * disclose its contents, reproduce it, or use, or license the use,
+ * for manufacture or sale, the information or anything described
+ * therein. Any use, disclosure, or reproduction without BEA System's
+ * prior written permission is strictly prohibited.
+ *
+ * $Header:$
+ */
+package property.membership;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.api.bean.ControlBean;
+import org.apache.beehive.controls.test.controls.property.constraint.BookControl;
+import org.apache.beehive.controls.test.controls.property.constraint.BookControlBean;
+import org.apache.beehive.test.tools.milton.common.Report;
+
+/**
+ * Test compile errors for declaring controls with property constaints
+ */
+
+@Jpf.Controller(
+ forwards = {
+ @Jpf.Forward(name=Report.RESULTS,path = Report.RESULTSJSP)
+ })
+public class Controller extends PageFlowController
+{
+ @Control
+ @BookControl.Intro(title="atitle",content="",subject="")
+ public BookControlBean myBook;
+
+ @Control
+ @BookControl.Language(coverlanguage="cover",contentlanguage="",authorlanguage="")
+ public BookControlBean myBook2;
+
+ //This causes a compile error
+ //@BookControl.Price(us_price="10.0001",ca_price="",eu_price="")
+ //@BookControl.Price(us_price="10.1",ca_price="",eu_price="")
+ //@BookControl.Price(us_price="10",ca_price="",eu_price="")
+ @Control
+ public BookControlBean myBook3;
+
+ /**
+ * @jpf:action
+ */
+ @Jpf.Action(
+ )
+ protected Forward begin(){
+
+ Report report=new Report();
+ report.setStatus(Report.PASS);
+ return new Forward(Report.RESULTS, Report.KEY, report);
+ }
+}
+
+