[Logo] Mentawai Recipes
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Messages posted by: robertwgil
Forum Index » Profile for robertwgil » Messages posted by robertwgil
Author Message
MinhaAction.class


ApplicationManager:


table.jsp


index.jsp
On MentaAjax 2.0 and above

Example with List of Beans and Relationships.

People.class

Address.class

Action:

ApplicationManager:

The int parameter on JSONGenericRenderer(1) , says to renderer that you want to load one relantionship.

JSP:

The line 17 is optional, if you dont specify the onSuccess method, the convention is to call a function with the same name of innerAction. In this axample the innerAction is TestAction.getListBean.mtw

With MentaAjax 2.0 you can use some conventions:

Action:

ApplicationManager:

JSP:

With MentaAjax 2.0 you dont need to write a callback function for innerHTML operations. It gets the string "stringHere" after "innerHTML" specified on the innerAction as the id of html element to place the response.

r.setUrl("TestAction.innerHTMLstringHere.mtw");

innerHTML: Says to MentaAjax that you can place the response with html code in any container.
stringHere: It is the id of container that MentaAjax will place the html code.

Action:

ApplicationManager:

JSP:
Action:

ApplicationManager:

Jsp:


on <mtw:ajaxConfig loadPrototype="true" /> say that you want to load Prototype 1.6 and scripts necessaries to run autocompleter.

Screenshot:

 
Forum Index » Profile for robertwgil » Messages posted by robertwgil
Go to:   
Powered by JForum 2.1.8 © JForum Team