This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TestClass { | |
| public TestClass(Closure closure) { | |
| closure.setDelegate(this); | |
| closure.run(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String [] main) { | |
| TestClass bla = new TestClass() { | |
| helloWorld = "aaa"; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String [] main) { | |
| TestClass bla = new TestClass(); | |
| bla['helloWorld'] = "aaa" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String [] main) { | |
| TestClass bla = new TestClass(helloWorld:"ccc"); | |
| print bla.helloWorld; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List retVal = new LinkedList(); | |
| def component = new Component() { | |
| basepackage = "org.apache.myfaces.dojo.custom.form.textarea"; | |
| tagname = "dijitTextarea"; | |
| componentclass = "TextArea"; | |
| tagclass = "TextAreaTag"; | |
| renderclass = "TextAreaRenderer" ; | |
| renderbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInputRenderer"; | |
| tagbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInputTag"; | |
| componentbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInput"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| <version>6.1.2rc0</version> | |
| <configuration> | |
| <scanIntervalSeconds>10</scanIntervalSeconds> | |
| <connectors> | |
| <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> | |
| <port>8080</port> | |
| <maxIdleTime>60000</maxIdleTime> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.el.{ELContext, ELResolver} | |
| import java.beans.FeatureDescriptor | |
| import java.lang.reflect.Method | |
| import collection.JavaConversions._ | |
| import collection.mutable.HashSet | |
| import org.extrasapache.myfaces.codi.examples.ebean.support.lang.ReflectUtil | |
| /** | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ManagedBean | |
| public class TestBean implements Serializable { | |
| List<Person> _personList = new LinkedList(); | |
| Integer _val1 = 1; | |
| public List<Person> getPersonList() { | |
| return _personList; | |
| } | |
| public void setPersonList(List<Person> personList) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import reflect.BeanProperty | |
| import java.util.LinkedList | |
| @serializable | |
| @ManagedBean | |
| class TestBean { | |
| @BeanProperty | |
| var personList = new LinkedList[Person] | |
| @BeanProperty | |
| var val1 = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import reflect.BeanProperty | |
| import java.util.LinkedList | |
| import javax.inject.Named | |
| @serializable | |
| @Named | |
| class TestBean { | |
| @BeanProperty | |
| var personList = new LinkedList[Person] | |
| @BeanProperty |