MyEclipse: Cannot access the domain objects on the WebController.jet
DevAlternatives - Apr 16, 2012 - 08:33 PM
Post subject: Cannot access the domain objects on the WebController.jet
I´m doing an spring mvc scaffolding and I want to get the domain object name assigned to each DAO on the WebController.jet template, I found that I can access to the DAO object but I cannot get the domain object from there.
<c:iterate select="$model/variables" var="variable">
<sw:getVariableDetail select="$variable" core="datastore" isExternal="isExternal" alias="aliasName" hasInitialValue="hasInitialValue"/>
<c:get select="$datastore" />
c:include template="templates/variables/VariableDeclaration.jet" />
cconway - Apr 18, 2012 - 02:32 AM
Sorry for the delayed response. It took a while to find the answer. There is a skyway function named getDataTypeForDao.
Replace your: <c:get select="$datastore" /> with:
<sw:getDataTypeForDao select="$datastore" var="dt" />
<c:get select="$dt/@name" />
Of course, you can use any variable name instead of "dt".
julio.salazar - Apr 24, 2012 - 03:46 PM
Post subject: Thanks
Thanks for your support that was what I was looking for.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits