http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp index 7b94f86..a035b17 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp @@ -1,26 +1,26 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<%@page import="flex.samples.feed.Feed"%> -<% - try { - Feed feed = new Feed(); - feed.stop(); - out.println("Feed Stopped"); - } catch (Exception e) { - out.println("A problem occured while stopping the feed: "+e.getMessage()); - } +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<%@page import="flex.samples.feed.Feed"%> +<% + try { + Feed feed = new Feed(); + feed.stop(); + out.println("Feed Stopped"); + } catch (Exception e) { + out.println("A problem occured while stopping the feed: "+e.getMessage()); + } %> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml index 309ce78..fb5da7d 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml @@ -1,81 +1,81 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<project name="samples.war/build.xml" default="main" basedir="../../../../../"> - - <property environment="env" /> - <property file="${basedir}/build.properties"/> - <property name="samples.war" value="${basedir}/apps/samples"/> - <property name="context.root" value="samples" /> - <property name="application.name" value="Testdrive - HTTPService" /> - <property name="application.file" value="main" /> - <property name="application.bin.dir" value="${samples.war}/testdrive-httpservice" /> - <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-httpservice/src" /> - - <target name="main" depends="clean,compile-swf" /> - - <target name="compile-swf"> - - <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> - - <property name="FLEX_HOME" value="${basedir}"/> - - <mxmlc file="${application.src.dir}/${application.file}.mxml" - output="${application.bin.dir}/${application.file}.swf" - actionscript-file-encoding="UTF-8" - keep-generated-actionscript="false" - incremental="false" - services="${samples.war}/WEB-INF/flex/services-config.xml" - context-root="${context.root}" - locale="en_US"> - <load-config filename="${basedir}/frameworks/flex-config.xml"/> - <license product="flexbuilder3" serial-number="${env.fb3_license}"/> - <source-path path-element="${basedir}/frameworks"/> - <external-library-path/> - <metadata> - <publisher name="${manifest.Implementation-Vendor}" /> - <creator name="${manifest.Implementation-Vendor}" /> - </metadata> - </mxmlc> - - <html-wrapper title="${application.name}" - height="100%" - width="100%" - application="app" - swf="${application.file}" - version-major="10" - version-minor="0" - version-revision="0" - express-install="true" - output="${application.bin.dir}"/> - - <copy todir="${application.bin.dir}"> - <fileset dir="${application.src.dir}" includes="*.jsp"/> - </copy> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> - <fileset dir="${application.bin.dir}/history" /> - </delete> - </target> - -</project> +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project name="samples.war/build.xml" default="main" basedir="../../../../../"> + + <property environment="env" /> + <property file="${basedir}/build.properties"/> + <property name="samples.war" value="${basedir}/apps/samples"/> + <property name="context.root" value="samples" /> + <property name="application.name" value="Testdrive - HTTPService" /> + <property name="application.file" value="main" /> + <property name="application.bin.dir" value="${samples.war}/testdrive-httpservice" /> + <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-httpservice/src" /> + + <target name="main" depends="clean,compile-swf" /> + + <target name="compile-swf"> + + <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> + + <property name="FLEX_HOME" value="${basedir}"/> + + <mxmlc file="${application.src.dir}/${application.file}.mxml" + output="${application.bin.dir}/${application.file}.swf" + actionscript-file-encoding="UTF-8" + keep-generated-actionscript="false" + incremental="false" + services="${samples.war}/WEB-INF/flex/services-config.xml" + context-root="${context.root}" + locale="en_US"> + <load-config filename="${basedir}/frameworks/flex-config.xml"/> + <license product="flexbuilder3" serial-number="${env.fb3_license}"/> + <source-path path-element="${basedir}/frameworks"/> + <external-library-path/> + <metadata> + <publisher name="${manifest.Implementation-Vendor}" /> + <creator name="${manifest.Implementation-Vendor}" /> + </metadata> + </mxmlc> + + <html-wrapper title="${application.name}" + height="100%" + width="100%" + application="app" + swf="${application.file}" + version-major="10" + version-minor="0" + version-revision="0" + express-install="true" + output="${application.bin.dir}"/> + + <copy todir="${application.bin.dir}"> + <fileset dir="${application.src.dir}" includes="*.jsp"/> + </copy> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> + <fileset dir="${application.bin.dir}/history" /> + </delete> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp index 2ac0688..eb86d2b 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp @@ -1,42 +1,42 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<%@page import="flex.samples.product.ProductService, - flex.samples.product.Product, - java.util.List"%> -<?xml version="1.0" encoding="utf-8"?> -<catalog> -<% - ProductService srv = new ProductService(); - List list = null; - list = srv.getProducts(); - Product product; - for (int i=0; i<list.size(); i++) - { - product = (Product) list.get(i); -%> - <product productId="<%= product.getProductId()%>"> - <name><%= product.getName() %></name> - <description><%= product.getDescription() %></description> - <price><%= product.getPrice() %></price> - <image><%= product.getImage() %></image> - <category><%= product.getCategory() %></category> - <qtyInStock><%= product.getQtyInStock() %></qtyInStock> - </product> -<% - } -%> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<%@page import="flex.samples.product.ProductService, + flex.samples.product.Product, + java.util.List"%> +<?xml version="1.0" encoding="utf-8"?> +<catalog> +<% + ProductService srv = new ProductService(); + List list = null; + list = srv.getProducts(); + Product product; + for (int i=0; i<list.size(); i++) + { + product = (Product) list.get(i); +%> + <product productId="<%= product.getProductId()%>"> + <name><%= product.getName() %></name> + <description><%= product.getDescription() %></description> + <price><%= product.getPrice() %></price> + <image><%= product.getImage() %></image> + <category><%= product.getCategory() %></category> + <qtyInStock><%= product.getQtyInStock() %></qtyInStock> + </product> +<% + } +%> </catalog> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml index 17c8d34..609130b 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml @@ -1,28 +1,28 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> - - <mx:HTTPService id="srv" destination="catalog" useProxy="true"/> - - <mx:DataGrid dataProvider="{srv.lastResult.catalog.product}" width="100%" height="100%"/> - - <mx:Button label="Get Data" click="srv.send()"/> - +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> + + <mx:HTTPService id="srv" destination="catalog" useProxy="true"/> + + <mx:DataGrid dataProvider="{srv.lastResult.catalog.product}" width="100%" height="100%"/> + + <mx:Button label="Get Data" click="srv.send()"/> + </mx:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml index bdfea75..198f89f 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml @@ -1,77 +1,77 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<project name="samples.war/build.xml" default="main" basedir="../../../../../"> - - <property environment="env" /> - <property file="${basedir}/build.properties"/> - <property name="samples.war" value="${basedir}/apps/samples"/> - <property name="context.root" value="samples" /> - <property name="application.name" value="Testdrive - RemoteObject" /> - <property name="application.file" value="main" /> - <property name="application.bin.dir" value="${samples.war}/testdrive-remoteobject" /> - <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-remoteobject/src" /> - - <target name="main" depends="clean,compile-swf" /> - - <target name="compile-swf"> - - <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> - - <property name="FLEX_HOME" value="${basedir}"/> - - <mxmlc file="${application.src.dir}/${application.file}.mxml" - output="${application.bin.dir}/${application.file}.swf" - actionscript-file-encoding="UTF-8" - keep-generated-actionscript="false" - incremental="false" - services="${samples.war}/WEB-INF/flex/services-config.xml" - context-root="${context.root}" - locale="en_US"> - <load-config filename="${basedir}/frameworks/flex-config.xml"/> - <license product="flexbuilder3" serial-number="${env.fb3_license}"/> - <source-path path-element="${basedir}/frameworks"/> - <external-library-path/> - <metadata> - <publisher name="${manifest.Implementation-Vendor}" /> - <creator name="${manifest.Implementation-Vendor}" /> - </metadata> - </mxmlc> - - <html-wrapper title="${application.name}" - height="100%" - width="100%" - application="app" - swf="${application.file}" - version-major="10" - version-minor="0" - version-revision="0" - express-install="true" - output="${application.bin.dir}"/> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/> - <fileset dir="${application.bin.dir}/history" /> - </delete> - </target> - -</project> +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project name="samples.war/build.xml" default="main" basedir="../../../../../"> + + <property environment="env" /> + <property file="${basedir}/build.properties"/> + <property name="samples.war" value="${basedir}/apps/samples"/> + <property name="context.root" value="samples" /> + <property name="application.name" value="Testdrive - RemoteObject" /> + <property name="application.file" value="main" /> + <property name="application.bin.dir" value="${samples.war}/testdrive-remoteobject" /> + <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-remoteobject/src" /> + + <target name="main" depends="clean,compile-swf" /> + + <target name="compile-swf"> + + <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> + + <property name="FLEX_HOME" value="${basedir}"/> + + <mxmlc file="${application.src.dir}/${application.file}.mxml" + output="${application.bin.dir}/${application.file}.swf" + actionscript-file-encoding="UTF-8" + keep-generated-actionscript="false" + incremental="false" + services="${samples.war}/WEB-INF/flex/services-config.xml" + context-root="${context.root}" + locale="en_US"> + <load-config filename="${basedir}/frameworks/flex-config.xml"/> + <license product="flexbuilder3" serial-number="${env.fb3_license}"/> + <source-path path-element="${basedir}/frameworks"/> + <external-library-path/> + <metadata> + <publisher name="${manifest.Implementation-Vendor}" /> + <creator name="${manifest.Implementation-Vendor}" /> + </metadata> + </mxmlc> + + <html-wrapper title="${application.name}" + height="100%" + width="100%" + application="app" + swf="${application.file}" + version-major="10" + version-minor="0" + version-revision="0" + express-install="true" + output="${application.bin.dir}"/> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/> + <fileset dir="${application.bin.dir}/history" /> + </delete> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml index fb40f23..43d8fb6 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml @@ -1,28 +1,28 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> - - <mx:RemoteObject id="srv" destination="product"/> - - <mx:DataGrid dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/> - - <mx:Button label="Get Data" click="srv.getProducts()"/> - +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> + + <mx:RemoteObject id="srv" destination="product"/> + + <mx:DataGrid dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/> + + <mx:Button label="Get Data" click="srv.getProducts()"/> + </mx:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml index 6037eb3..540070c 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml @@ -1,77 +1,77 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<project name="samples.war/build.xml" default="main" basedir="../../../../../"> - - <property environment="env" /> - <property file="${basedir}/build.properties"/> - <property name="samples.war" value="${basedir}/apps/samples"/> - <property name="context.root" value="samples" /> - <property name="application.name" value="Testdrive - Update" /> - <property name="application.file" value="main" /> - <property name="application.bin.dir" value="${samples.war}/testdrive-update" /> - <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-update/src" /> - - <target name="main" depends="clean,compile-swf" /> - - <target name="compile-swf"> - - <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> - - <property name="FLEX_HOME" value="${basedir}"/> - - <mxmlc file="${application.src.dir}/${application.file}.mxml" - output="${application.bin.dir}/${application.file}.swf" - actionscript-file-encoding="UTF-8" - keep-generated-actionscript="false" - incremental="false" - services="${samples.war}/WEB-INF/flex/services-config.xml" - context-root="${context.root}" - locale="en_US"> - <load-config filename="${basedir}/frameworks/flex-config.xml"/> - <license product="flexbuilder3" serial-number="${env.fb3_license}"/> - <source-path path-element="${basedir}/frameworks"/> - <external-library-path/> - <metadata> - <publisher name="${manifest.Implementation-Vendor}" /> - <creator name="${manifest.Implementation-Vendor}" /> - </metadata> - </mxmlc> - - <html-wrapper title="${application.name}" - height="100%" - width="100%" - application="app" - swf="${application.file}" - version-major="10" - version-minor="0" - version-revision="0" - express-install="true" - output="${application.bin.dir}"/> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/> - <fileset dir="${application.bin.dir}/history" /> - </delete> - </target> - -</project> +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project name="samples.war/build.xml" default="main" basedir="../../../../../"> + + <property environment="env" /> + <property file="${basedir}/build.properties"/> + <property name="samples.war" value="${basedir}/apps/samples"/> + <property name="context.root" value="samples" /> + <property name="application.name" value="Testdrive - Update" /> + <property name="application.file" value="main" /> + <property name="application.bin.dir" value="${samples.war}/testdrive-update" /> + <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-update/src" /> + + <target name="main" depends="clean,compile-swf" /> + + <target name="compile-swf"> + + <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> + + <property name="FLEX_HOME" value="${basedir}"/> + + <mxmlc file="${application.src.dir}/${application.file}.mxml" + output="${application.bin.dir}/${application.file}.swf" + actionscript-file-encoding="UTF-8" + keep-generated-actionscript="false" + incremental="false" + services="${samples.war}/WEB-INF/flex/services-config.xml" + context-root="${context.root}" + locale="en_US"> + <load-config filename="${basedir}/frameworks/flex-config.xml"/> + <license product="flexbuilder3" serial-number="${env.fb3_license}"/> + <source-path path-element="${basedir}/frameworks"/> + <external-library-path/> + <metadata> + <publisher name="${manifest.Implementation-Vendor}" /> + <creator name="${manifest.Implementation-Vendor}" /> + </metadata> + </mxmlc> + + <html-wrapper title="${application.name}" + height="100%" + width="100%" + application="app" + swf="${application.file}" + version-major="10" + version-minor="0" + version-revision="0" + express-install="true" + output="${application.bin.dir}"/> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/> + <fileset dir="${application.bin.dir}/history" /> + </delete> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as index 8a68100..abd704b 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as @@ -1,44 +1,44 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package -{ - [Bindable] - [RemoteClass(alias="flex.samples.product.Product")] - public class Product - { - public function Product() - { - } - - public var productId:int; - - public var name:String; - - public var description:String; - - public var image:String; - - public var category:String; - - public var price:Number; - - public var qtyInStock:int; - - } -} +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package +{ + [Bindable] + [RemoteClass(alias="flex.samples.product.Product")] + public class Product + { + public function Product() + { + } + + public var productId:int; + + public var name:String; + + public var description:String; + + public var image:String; + + public var category:String; + + public var price:Number; + + public var qtyInStock:int; + + } +} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml index 5ffb8fa..911e2e8 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml @@ -1,60 +1,60 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" - title="Details" width="100%" height="100%"> - - <Product id="product" - name="{productName.text}" - category="{category.text}" - price="{Number(price.text)}" - image="{image.text}" - description="{description.text}"/> - - <mx:RemoteObject id="srv" destination="product"/> - - <mx:Form width="100%"> - - <mx:FormItem label="Name"> - <mx:TextInput id="productName" text="{product.name}"/> - </mx:FormItem> - - <mx:FormItem label="Category"> - <mx:TextInput id="category" text="{product.category}"/> - </mx:FormItem> - - <mx:FormItem label="Image"> - <mx:TextInput id="image" text="{product.image}"/> - </mx:FormItem> - - <mx:FormItem label="Price"> - <mx:TextInput id="price" text="{product.price}"/> - </mx:FormItem> - - <mx:FormItem label="Description" width="100%"> - <mx:TextArea id="description" text="{product.description}" width="100%" height="100"/> - </mx:FormItem> - - </mx:Form> - - <mx:ControlBar> - <mx:Button label="Update" click="srv.update(product);"/> - </mx:ControlBar> - +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" + title="Details" width="100%" height="100%"> + + <Product id="product" + name="{productName.text}" + category="{category.text}" + price="{Number(price.text)}" + image="{image.text}" + description="{description.text}"/> + + <mx:RemoteObject id="srv" destination="product"/> + + <mx:Form width="100%"> + + <mx:FormItem label="Name"> + <mx:TextInput id="productName" text="{product.name}"/> + </mx:FormItem> + + <mx:FormItem label="Category"> + <mx:TextInput id="category" text="{product.category}"/> + </mx:FormItem> + + <mx:FormItem label="Image"> + <mx:TextInput id="image" text="{product.image}"/> + </mx:FormItem> + + <mx:FormItem label="Price"> + <mx:TextInput id="price" text="{product.price}"/> + </mx:FormItem> + + <mx:FormItem label="Description" width="100%"> + <mx:TextArea id="description" text="{product.description}" width="100%" height="100"/> + </mx:FormItem> + + </mx:Form> + + <mx:ControlBar> + <mx:Button label="Update" click="srv.update(product);"/> + </mx:ControlBar> + </mx:Panel> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml index 226a032..5096478 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml @@ -1,31 +1,31 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal" - creationComplete="srv.getProducts()"> - - <mx:RemoteObject id="srv" destination="product"/> - - <mx:Panel title="Catalog" width="100%" height="100%"> - <mx:DataGrid id="list" dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/> - </mx:Panel> - - <ProductForm product="{Product(list.selectedItem)}"/> - +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal" + creationComplete="srv.getProducts()"> + + <mx:RemoteObject id="srv" destination="product"/> + + <mx:Panel title="Catalog" width="100%" height="100%"> + <mx:DataGrid id="list" dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/> + </mx:Panel> + + <ProductForm product="{Product(list.selectedItem)}"/> + </mx:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml index 166c86a..8f08dfa 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml @@ -1,81 +1,81 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<project name="samples.war/build.xml" default="main" basedir="../../../../../"> - - <property environment="env" /> - <property file="${basedir}/build.properties"/> - <property name="samples.war" value="${basedir}/apps/samples"/> - <property name="context.root" value="samples" /> - <property name="application.name" value="Testdrive - WebService" /> - <property name="application.file" value="main" /> - <property name="application.bin.dir" value="${samples.war}/testdrive-webservice" /> - <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-webservice/src" /> - - <target name="main" depends="clean,compile-swf" /> - - <target name="compile-swf"> - - <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> - - <property name="FLEX_HOME" value="${basedir}"/> - - <mxmlc file="${application.src.dir}/${application.file}.mxml" - output="${application.bin.dir}/${application.file}.swf" - actionscript-file-encoding="UTF-8" - keep-generated-actionscript="false" - incremental="false" - services="${samples.war}/WEB-INF/flex/services-config.xml" - context-root="${context.root}" - locale="en_US"> - <load-config filename="${basedir}/frameworks/flex-config.xml"/> - <license product="flexbuilder3" serial-number="${env.fb3_license}"/> - <source-path path-element="${basedir}/frameworks"/> - <external-library-path/> - <metadata> - <publisher name="${manifest.Implementation-Vendor}" /> - <creator name="${manifest.Implementation-Vendor}" /> - </metadata> - </mxmlc> - - <html-wrapper title="${application.name}" - height="100%" - width="100%" - application="app" - swf="${application.file}" - version-major="10" - version-minor="0" - version-revision="0" - express-install="true" - output="${application.bin.dir}"/> - - <copy todir="${application.bin.dir}"> - <fileset dir="${application.src.dir}" includes="*.jsp"/> - </copy> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> - <fileset dir="${application.bin.dir}/history" /> - </delete> - </target> - -</project> +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project name="samples.war/build.xml" default="main" basedir="../../../../../"> + + <property environment="env" /> + <property file="${basedir}/build.properties"/> + <property name="samples.war" value="${basedir}/apps/samples"/> + <property name="context.root" value="samples" /> + <property name="application.name" value="Testdrive - WebService" /> + <property name="application.file" value="main" /> + <property name="application.bin.dir" value="${samples.war}/testdrive-webservice" /> + <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-webservice/src" /> + + <target name="main" depends="clean,compile-swf" /> + + <target name="compile-swf"> + + <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> + + <property name="FLEX_HOME" value="${basedir}"/> + + <mxmlc file="${application.src.dir}/${application.file}.mxml" + output="${application.bin.dir}/${application.file}.swf" + actionscript-file-encoding="UTF-8" + keep-generated-actionscript="false" + incremental="false" + services="${samples.war}/WEB-INF/flex/services-config.xml" + context-root="${context.root}" + locale="en_US"> + <load-config filename="${basedir}/frameworks/flex-config.xml"/> + <license product="flexbuilder3" serial-number="${env.fb3_license}"/> + <source-path path-element="${basedir}/frameworks"/> + <external-library-path/> + <metadata> + <publisher name="${manifest.Implementation-Vendor}" /> + <creator name="${manifest.Implementation-Vendor}" /> + </metadata> + </mxmlc> + + <html-wrapper title="${application.name}" + height="100%" + width="100%" + application="app" + swf="${application.file}" + version-major="10" + version-minor="0" + version-revision="0" + express-install="true" + output="${application.bin.dir}"/> + + <copy todir="${application.bin.dir}"> + <fileset dir="${application.src.dir}" includes="*.jsp"/> + </copy> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> + <fileset dir="${application.bin.dir}/history" /> + </delete> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml index 48c1f9f..4208a96 100755 --- a/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml +++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml @@ -1,33 +1,33 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> - - <mx:WebService id="srv" destination="ws-catalog" useProxy="true" showBusyCursor="true"/> - - <mx:DataGrid dataProvider="{srv.getCategories.lastResult}" width="100%" height="100%"> - <mx:columns> - <mx:DataGridColumn dataField="categoryId" headerText="Category Id"/> - <mx:DataGridColumn dataField="categoryName" headerText="Category Name"/> - </mx:columns> - </mx:DataGrid> - - <mx:Button label="Get Data" click="srv.getCategories()"/> - +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> + + <mx:WebService id="srv" destination="ws-catalog" useProxy="true" showBusyCursor="true"/> + + <mx:DataGrid dataProvider="{srv.getCategories.lastResult}" width="100%" height="100%"> + <mx:columns> + <mx:DataGridColumn dataField="categoryId" headerText="Category Id"/> + <mx:DataGridColumn dataField="categoryName" headerText="Category Name"/> + </mx:columns> + </mx:DataGrid> + + <mx:Button label="Get Data" click="srv.getCategories()"/> + </mx:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml index 3e11052..b27bf96 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml @@ -1,81 +1,81 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<project name="samples.war/build.xml" default="main" basedir="../../../../../"> - - <property environment="env" /> - <property file="${basedir}/build.properties"/> - <property name="samples.war" value="${basedir}/apps/samples"/> - <property name="context.root" value="samples" /> - <property name="application.name" value="Trader Desktop" /> - <property name="application.file" value="traderdesktop" /> - <property name="application.bin.dir" value="${samples.war}/traderdesktop" /> - <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/traderdesktop/src" /> - - <target name="main" depends="clean,compile-swf" /> - - <target name="compile-swf"> - - <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> - - <property name="FLEX_HOME" value="${basedir}"/> - - <mxmlc file="${application.src.dir}/${application.file}.mxml" - output="${application.bin.dir}/${application.file}.swf" - actionscript-file-encoding="UTF-8" - keep-generated-actionscript="false" - incremental="false" - services="${samples.war}/WEB-INF/flex/services-config.xml" - context-root="${context.root}" - locale="en_US"> - <load-config filename="${basedir}/frameworks/flex-config.xml"/> - <license product="flexbuilder3" serial-number="${env.fb3_license}"/> - <source-path path-element="${basedir}/frameworks"/> - <external-library-path/> - <metadata> - <publisher name="${manifest.Implementation-Vendor}" /> - <creator name="${manifest.Implementation-Vendor}" /> - </metadata> - </mxmlc> - - <html-wrapper title="${application.name}" - height="100%" - width="100%" - application="app" - swf="${application.file}" - version-major="10" - version-minor="0" - version-revision="0" - express-install="true" - output="${application.bin.dir}"/> - - <copy todir="${application.bin.dir}"> - <fileset dir="${application.src.dir}" includes="*.jsp"/> - </copy> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> - <fileset dir="${application.bin.dir}/history" /> - </delete> - </target> - -</project> +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project name="samples.war/build.xml" default="main" basedir="../../../../../"> + + <property environment="env" /> + <property file="${basedir}/build.properties"/> + <property name="samples.war" value="${basedir}/apps/samples"/> + <property name="context.root" value="samples" /> + <property name="application.name" value="Trader Desktop" /> + <property name="application.file" value="traderdesktop" /> + <property name="application.bin.dir" value="${samples.war}/traderdesktop" /> + <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/traderdesktop/src" /> + + <target name="main" depends="clean,compile-swf" /> + + <target name="compile-swf"> + + <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" /> + + <property name="FLEX_HOME" value="${basedir}"/> + + <mxmlc file="${application.src.dir}/${application.file}.mxml" + output="${application.bin.dir}/${application.file}.swf" + actionscript-file-encoding="UTF-8" + keep-generated-actionscript="false" + incremental="false" + services="${samples.war}/WEB-INF/flex/services-config.xml" + context-root="${context.root}" + locale="en_US"> + <load-config filename="${basedir}/frameworks/flex-config.xml"/> + <license product="flexbuilder3" serial-number="${env.fb3_license}"/> + <source-path path-element="${basedir}/frameworks"/> + <external-library-path/> + <metadata> + <publisher name="${manifest.Implementation-Vendor}" /> + <creator name="${manifest.Implementation-Vendor}" /> + </metadata> + </mxmlc> + + <html-wrapper title="${application.name}" + height="100%" + width="100%" + application="app" + swf="${application.file}" + version-major="10" + version-minor="0" + version-revision="0" + express-install="true" + output="${application.bin.dir}"/> + + <copy todir="${application.bin.dir}"> + <fileset dir="${application.src.dir}" includes="*.jsp"/> + </copy> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/> + <fileset dir="${application.bin.dir}/history" /> + </delete> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as index 394a2db..d6245f7 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as @@ -1,55 +1,55 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package { - - import mx.controls.Label; - import flash.display.Graphics; - - public class BackgroundColorRenderer extends Label { - - public static var symbol:String; - - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void - { - super.updateDisplayList(unscaledWidth, unscaledHeight); - - var g:Graphics = graphics; - - g.clear(); - - if (data && data.date && data.symbol == symbol) - { - if( data.change && data.change >= 0 ) - { - g.beginFill(0x009900, 0.5); - g.drawRect(0, 0, unscaledWidth, unscaledHeight); - g.endFill(); - } - else - { - g.beginFill(0xFF0000, 0.5); - g.drawRect(0, 0, unscaledWidth, unscaledHeight); - g.endFill(); - } - } - - } - } - +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package { + + import mx.controls.Label; + import flash.display.Graphics; + + public class BackgroundColorRenderer extends Label { + + public static var symbol:String; + + override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void + { + super.updateDisplayList(unscaledWidth, unscaledHeight); + + var g:Graphics = graphics; + + g.clear(); + + if (data && data.date && data.symbol == symbol) + { + if( data.change && data.change >= 0 ) + { + g.beginFill(0x009900, 0.5); + g.drawRect(0, 0, unscaledWidth, unscaledHeight); + g.endFill(); + } + else + { + g.beginFill(0xFF0000, 0.5); + g.drawRect(0, 0, unscaledWidth, unscaledHeight); + g.endFill(); + } + } + + } + } + } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as index 64bd11c..93a6553 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as @@ -1,40 +1,40 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package { - - import mx.controls.Label; - import mx.controls.dataGridClasses.*; - - public class ColorRenderer extends Label { - - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void - { - super.updateDisplayList(unscaledWidth, unscaledHeight); - if (data && listData && data[DataGridListData(listData).dataField] < 0) - { - setStyle("color", 0xFF0000); - } - else - { - setStyle("color", 0x009900); - } - } - } - +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package { + + import mx.controls.Label; + import mx.controls.dataGridClasses.*; + + public class ColorRenderer extends Label { + + override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void + { + super.updateDisplayList(unscaledWidth, unscaledHeight); + if (data && listData && data[DataGridListData(listData).dataField] < 0) + { + setStyle("color", 0xFF0000); + } + else + { + setStyle("color", 0x009900); + } + } + } + } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css index 3c66056..fe9b240 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css @@ -1,30 +1,30 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@namespace mx "library://ns.adobe.com/flex/mx"; - -mx|Application { - padding-top: 16; - padding-bottom: 16; - padding-left: 16; - padding-right: 16; - vertical-gap: 4; -} -mx|Panel -{ - borderColor: #006699; - borderAlpha: 0.6; -} +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@namespace mx "library://ns.adobe.com/flex/mx"; + +mx|Application { + padding-top: 16; + padding-bottom: 16; + padding-left: 16; + padding-right: 16; + vertical-gap: 4; +} +mx|Panel +{ + borderColor: #006699; + borderAlpha: 0.6; +} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as index e99d6d7..6950d95 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as @@ -1,35 +1,35 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package samples.portfolio -{ - [RemoteClass(alias="flex.samples.marketdata.Stock")] - [Bindable] - public class Stock - { - public var symbol:String; - public var name:String; - public var low:Number; - public var high:Number; - public var open:Number; - public var last:Number; - public var change:Number = 0; - public var date:Date; - } - -} +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package samples.portfolio +{ + [RemoteClass(alias="flex.samples.marketdata.Stock")] + [Bindable] + public class Stock + { + public var symbol:String; + public var name:String; + public var low:Number; + public var high:Number; + public var open:Number; + public var last:Number; + public var change:Number = 0; + public var date:Date; + } + +} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp index 36bdd30..07547ab 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp @@ -1,26 +1,26 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<%@page import="flex.samples.marketdata.Feed"%> -<% - try { - Feed feed = new Feed(); - feed.start(); - out.println("Feed Started"); - } catch (Exception e) { - out.println("A problem occured while starting the feed: "+e.getMessage()); - } +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<%@page import="flex.samples.marketdata.Feed"%> +<% + try { + Feed feed = new Feed(); + feed.start(); + out.println("Feed Started"); + } catch (Exception e) { + out.println("A problem occured while starting the feed: "+e.getMessage()); + } %> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp ---------------------------------------------------------------------- diff --git a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp index 01be2b5..300aaf8 100755 --- a/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp +++ b/attic/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp @@ -1,26 +1,26 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<%@page import="flex.samples.marketdata.Feed"%> -<% - try { - Feed feed = new Feed(); - feed.stop(); - out.println("Feed Stopped"); - } catch (Exception e) { - out.println("A problem occured while stopping the feed: "+e.getMessage()); - } +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<%@page import="flex.samples.marketdata.Feed"%> +<% + try { + Feed feed = new Feed(); + feed.stop(); + out.println("Feed Stopped"); + } catch (Exception e) { + out.println("A problem occured while stopping the feed: "+e.getMessage()); + } %> \ No newline at end of file
