-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Using grails 1.2.1 this should be very simple, but still I can't get it to work.
In my application /grails-app/views I've added mypage.gsp
Plus
"/mypage"(view:"mypage")
to the mappings block of my URLMapping class.
while
http://server-name:8080/myapp/mypage.gsp
works
I'm still getting 404…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, can anybody tell me why this works
<g:each var="n" in="${com.pp.News.list()}">
<h2>${n.t}</h2>
<p>${n.tx}</p>
</g:each>
but this doesn't ?
<g:set var="news" value="${com.pp.News.findAllByShow(true,[sort:'prio', order:'desc',max:5])}" />
<g:each…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, how can I invoke a service directly from a view ? I'm trying with ${my.domain.service.method} but it complains it can't find the property. And no, I don't want to use a controller because the view is a template.
Thanks
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is in my gsp and it doesn't work
<g:select name="head.id" from="${com.hive.Persons.findAllByFirstname(${variable})}" optionKey="id" value="${organizationInstance?.head?.id}" />
I think that the main reason is that I am nesting ${}. How can I accomplish this.
${variable} is a string…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I have a gsp template, where the data for create view is passed through the controller.
def create = {
def bookInstance = new Book()
bookInstance .properties = params
def map = getDefaultValues()
render(template: "create", model: [bookInstance : bookInstance ,
title: map…
>>> More