mentabean.soliveirajr.com
MentaBean - Downloads
http://mentabean.soliveirajr.com/mtw/Page/Downloads/en/mentabean-downloads
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Latest jar with all dependencies: mentabean-all-2.2.2.jar. Latest jar without dependencies: mentabean-2.2.2.jar. Latest sources: mentabean-sources-2.2.2.jar. Latest javadocs: mentabean-javadoc-2.2.2.jar. You can also use maven.
mentabean.soliveirajr.com
MentaBean - Project Team
http://mentabean.soliveirajr.com/mtw/Page/Team/en/mentabean-project-team
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Sergio Oliveira Jr. ( Author ) ( LinkedIn. Sergio.oliveira.jr at gmail.com ). Erico Lutzer (erico kl at yahoo.com.br).
mentabean.soliveirajr.com
MentaBean - Mapping with Proxies
http://mentabean.soliveirajr.com/mtw/Page/ProxyMapping/en/mentabean-mapping-with-proxies
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Instead of hardcoding the names of the bean properties as a string in the mappings, MentaBean provides a proxy implementation that allows you to configure the property name through code. Therefore, if you later refactor the name of the property, you won't need to remember to change the name in the mappings too. See the example below:. In case you are curious about how this is done, take a look in the PropertiesProxy.
mentaframework.org
Mentawai - Authentication
http://www.mentaframework.org/mtw/Page/Authentication
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. With Mentawai, it is easy to implement an authentication mechanism for your web site. All the details are already taken care of by the BaseLoginAction. And by the AuthenticationFilter. Both provided by Mentawai. Creating the login action:. Passequals("abc123") { return ERROR; } setSessionObj(user); return SUCCESS; } }. Protecting action access from unauthorized requests:. When you ...
mentaframework.org
Mentawai - Custom Tags
http://www.mentaframework.org/mtw/Page/CustomTags
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. Mentawai allows you to easily create your own custom tags. Here we explain how to create display and conditional tags. Else if (nFriends = 0) { return "You have no friends at all! Don't code too much! Else { return "You have " nFriends " friends! You can also create a tag that supports a body and use the getBody() method. Create the TLD file:. Xml version="1.0" encoding="UTF-8"?
mentaframework.org
Mentawai - Quick Start
http://www.mentaframework.org/mtw/Page/QuickStart
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. We recommend you use Maven so you can easily run and test this web application with the Jetty plugin. You can click here. To see and download the pom.xml you can use to build and run the code below. Or if you don't want to use Maven you can click here. From the command line: svn co http:/ soliveirajr.com/mentatutorials/HelloMenta/trunk HelloMenta. The Mentawai controller - servlet ...
mentaframework.org
Mentawai - DB Connection
http://www.mentaframework.org/mtw/Page/DB
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. Mentawai internally supports three different connection pools: DBCP, C3P0 and BoneCP. We recommend BoneCP. Setting up in the application manager:. The connection pool is fully integrated with the IoC container so you can get a connection from anywhere. You also need not worry about returning the connection. Public class JdbcUserDAO implements UserDAO { private final String blah; pr...
mentaframework.org
Mentawai - Data Lists
http://www.mentaframework.org/mtw/Page/DataLists
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. A web application can have one or more static data lists that it has to display and control. For example, the list of states, a list of genders, a list of accepted payment methods, etc. With Mentawai you can define localized and non-localized static lists in the database to load and display easily in the web application. Loading in the application manager:.
mentaframework.org
Mentawai - Action Input and Output
http://www.mentaframework.org/mtw/Page/InOut
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Action Input and Output. ORM and SQL builder. Action Input and Output. The basic Action input contract:. Getting and populating any object with the values from the Action input with just one method call:. Let's say you have all the properties of an User object in the action input. You can get one by one to instantiate the User object or you can just call the getObject() method:. The basic action Output contract:. Output.se...
mentabean.soliveirajr.com
MentaBean - Auto Mapping
http://mentabean.soliveirajr.com/mtw/Page/Automapping/en/mentabean-auto-mapping
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. If you have a bean with a lot of properties, you can use reflection to configure all of them with the default types and then override the ones you want a different type. The AutoBeanConfig. Class provides this functionality as you can see below:. The default types assumed by the AutoBeanConfig. Klass); } return null; }. Does not configure any primary key or any special database type like NOW ON UPDATE TIMESTAMP.