facebook

Cannot access the domain objects on the WebController.jet

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #325289 Reply

    DevAlternatives
    Participant

    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

    
    <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>
    #325339 Reply

    cconway
    Member

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

    #325509 Reply

    Thanks for your support that was what I was looking for.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Cannot access the domain objects on the WebController.jet

You must be logged in to post in the forum log in