mkavanagh
2014-06-04 14:31:53 UTC
Hi,
How do I cast a value that is returned from a taglib which contains a number
of instances of domain model PublishedShr.
I have tried using the 'as' construct in different places without success so
far.
Here is an example:
def pubMkLstP = [] as PublishedShr[]
pubMkLstP= getPubVidList(visitorOrgan: currOrganId)
Were pubMkLstP is a list of instances of the domain type PublishedShr.
The PublishedShr domain model has it own constructor.
-mike
--
View this message in context: http://grails.1312388.n4.nabble.com/Casting-a-return-value-to-a-required-domain-model-type-tp4657072.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
How do I cast a value that is returned from a taglib which contains a number
of instances of domain model PublishedShr.
I have tried using the 'as' construct in different places without success so
far.
Here is an example:
def pubMkLstP = [] as PublishedShr[]
pubMkLstP= getPubVidList(visitorOrgan: currOrganId)
Were pubMkLstP is a list of instances of the domain type PublishedShr.
The PublishedShr domain model has it own constructor.
-mike
--
View this message in context: http://grails.1312388.n4.nabble.com/Casting-a-return-value-to-a-required-domain-model-type-tp4657072.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email