English 中文(简体)
生命线6 方法的确需要采取恰当行动。
原标题:Liferay 6: For every Method do i need to have a seperate actionURL
  • 时间:2012-04-14 18:19:32
  •  标签:
  • liferay
<portlet:actionURL name="addBook" var="addBookURL" />
<aui:form action="<%= addBookURL.toString() %>" method="post">

www.un.org/spanish/ecosoc 我在MVC港口舱内有这两种方法。

public void addBook(ActionRequest request, ActionResponse response) {

}

public void deleteBook(ActionRequest request, ActionResponse response) {

}

用户可在国际交易日志中采取不同的行动,如:

现在,这种做法与添加Book 的方法是细致的,是否有必要写一个精细的港口:行动URL和在废除行动倡议方面的一个新形象?

我是一新鲜事,因此,请回答sil问题。

If it is so How can there be two forms in one page ??

最佳回答

你们需要许多方法,因为你们有行动名称:

<portlet:actionURL name="addBook" var="addBookURL" />
<aui:form action="<%= addBookURL.toString() %>" method="post"> ... </aui:form>

<portlet:actionURL name="deleteBook" var="deleteBookURL" />
<aui:form action="<%= deleteBookURL.toString() %>" method="post"> ... </aui:form>

fyi: see what your actionURLs look like: <br/>
<%=addBookURL.toString()%><br/>
<%=deleteBookURL.toString()%><br/> 

如果你想少用方法,但是仍然有行动名称,你也可以超越程序行动(行动要求、行动反应反应)和处理条件(行动名称)。 如果采取多种形式,你就能够仅采取一项行动,确定你获得的内容,例如,丁顿被推。 或使用Javascript确定提交时的URL行动形式。

问题回答

暂无回答




相关问题
Error getting SVN repo of Liferay in Eclipse

Im using Eclipse Galileo and have installed Subclipse. I looked at the svn repo url at http://www.liferay.com/web/brian.chan/blog/-/blogs/changes-to-anonymous-access-to-liferay-s-svn and then tried to ...

Liferay + google openid HOW?

Is there someone who knows how to use Liferay 5.2.3 the most up2date free version of liferay with google openid ? I ve try to use the http://www.google.com/accounts/o8/id url but it doesnt work. For ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

how to delete liferay s theme cache files? [closed]

i have developed a theme for liferay and i have deployed it. but when i choose the theme it doesnt recognize it s styles and it is reading styles from previous theme caches. how can i delete ...

热门标签