The Grails present remoteFunction 只能更新一个成功部分(和一个错误)。 有时,我想利用单一阿贾克斯呼吁,更新多份干.(成功)。 如何做到这一点,除了把边远功能连接在一起之外(即,首先叫作 Java语的成功,而后者则援引第二个边远功能)。 ...... 是否有办法在没有这种链条的情况下通过麻省更新网页的多部分?
增 编
你们可以这样做,让你在 j子里发挥Su的作用,确定由此产生的html的html。 http://www.webdeveloperjuice.com/2010/04/01/meetinging-multiples-divs-by-single-ajax-quest-using-jquery/"rel=“nofollow” http://www.webelodevperjuice.com/
不能自动做到。
You could call two remote functions separated by semi colon.
<g:select id= releaseVersion name="releaseVersion" noSelection="[ 0 : --Select-- ]" from= ${new Alarm().constraints.releaseVersion.inList} onchange="${remoteFunction(controller: alarm , action: updateComponentByRelease ,params: selectedValue= + this.value , update: component )};
${remoteFunction(controller: alarm ,action: updateDiscriminatorByComponent , params: selectedValue= + this.value ,update: subsystem )};"></g:select>
当非洲复兴开发银行的请求结束时,你可以安排一些活动。 例如:
<g:remoteLink action="show"
id="1"
update="success"
onLoading="showProgress()"
onComplete="updateContent()">Show Book 1</g:remoteLink>
http://grails.org/doc/2.0.x/guide/single.html#ajax” rel=“nofollow”
It doesn t look like there s a way to automatically update two divs. The only possible way it could do it is by updating both with the same content.
I am new to gwt. I am trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really thankful if ...
I ve installed the plugin from this article by Peter http://www.cacoethes.co.uk/blog/groovyandgrails/the-command-pattern-w.... While compile time its not able to find the module file which is present ...
Assume the following code in a Grails controller: def action = { ClassName o = ClassName.findByFoo(params.foo) if (o) { o.counter += 1 } } By default Grails uses optimistic locking via the ...
I have a domain class, in which I ve defined some methods which give the object a score based on different algorithms (eg. popularity). I now want to retrieve a list of these objects sorted by one of ...
Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...
For further background, see http://grails.markmail.org/message/62w2xpbgneapmhpd I m trying to mock out the Shiro SecurityUtils.getSubject() method in my BootStrap.groovy. I decided on this approach ...
I m using a g:select (actually, a g:currencySelect) in my view. I want a controller action to fire as soon as the user changes the value in the resulting select box. How can I do this?
I have an integration test in my Grails application that fails when I try to save an entity of type Member invitingMember.save(flush: true) This raises the following exception org.hibernate....