MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
DevAlternatives
Post subject: Cannot access the domain objects on the WebController.jet  PostPosted: Apr 16, 2012 - 08:33 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

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.

Please advise
Code:

<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" />
   </c:iterate>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Apr 18, 2012 - 02:32 AM



Joined: Apr 04, 2011
Posts: 196

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".

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
julio.salazar
Post subject: Thanks  PostPosted: Apr 24, 2012 - 03:46 PM
Registered Member
Registered Member


Joined: Mar 07, 2012
Posts: 8

Thanks for your support that was what I was looking for.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits