1.2-SNAPSHOT show.gsp template error

View: New views
2 Messages — Rating Filter:   Alert me  

1.2-SNAPSHOT show.gsp template error

by Hubert Chang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Domain example:

class A {
  String a
  boolean ao
  Date bd
  String c
  boolean co
  Date dd
  boolean doo
  Date fd
  boolean eo
  String e
}

Generated show.gsp (error only):

................
 <td valign="top" class="value">${fieldValue(bean: aInstance, field: "doo")}</td>
................
<td valign="top" class="value">${fieldValue(bean: aInstance, field: "fd")}</td>
................
 <td valign="top" class="value"><g:formatDate date="${aInstance?.id}" /></td>


It is related to sort. I removed
   Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[]))
from show.gsp template, the field type will be detected correctly.

Re: 1.2-SNAPSHOT show.gsp template error

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As said previously, please JIRA a blocker

Thank you

On Thu, Nov 5, 2009 at 9:39 AM, Hubert Chang <huixiu@...> wrote:

>
> Domain example:
>
> class A {
>  String a
>  boolean ao
>  Date bd
>  String c
>  boolean co
>  Date dd
>  boolean doo
>  Date fd
>  boolean eo
>  String e
> }
>
> Generated show.gsp (error only):
>
> ................
>  <td valign="top" class="value">${fieldValue(bean: aInstance, field:
> "doo")}</td>
> ................
> <td valign="top" class="value">${fieldValue(bean: aInstance, field:
> "fd")}</td>
> ................
>  <td valign="top" class="value"><g:formatDate date="${aInstance?.id}"
> /></td>
>
>
> It is related to sort. I removed
>   Collections.sort(props,
> comparator.constructors[0].newInstance([domainClass] as Object[]))
> from show.gsp template, the field type will be detected correctly.
> --
> View this message in context: http://old.nabble.com/1.2-SNAPSHOT-show.gsp-template-error-tp26208622p26208622.html
> Sent from the grails - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - A Division of VMware
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email