Hi
In our application we dont want to use normal jsp pages , we are creating JS classes which contains SC components and we want to insert those components inside tiles body
<Canvas ID=“rightSideLayout” width=“80%” maxHeight=“1000”>
<contents><tiles:getAsString name=“body”/></contents>
</Canvas>
but i am not able to do that , pls suggest.
Use the View Source functionality of your browser to see what is actually being output. One possibility is that your getAsString function returns something that has extra quotes (").
Yes it is returning (") , so can you please tell me what is the correct way of using that
tiles:getAsString does not appear to return surrounding quotes as indicated by this page found after brief search.
The output shown by View Source should make it obvious what to do, but if you need more help, post a sample of actual output, and post some description of what is actually going wrong.
Hi the actual problem which is coming is , we have a definition
<definition name=“Create” extends=“Layout”>
<put name=“body” value=“/A/View.jsp” type=“page”/>
</definition>
but now this JSP is empty and in JS class i am creating components which i want to show inside body part of layout, for that i am using
<Canvas ID=“rightSideLayout” width=“80%” maxHeight=“1000”>
<contents><tiles:getAsString name=“body”/>
</contents>
</Canvas>
view is coming but not inside the body part.
We’d like to help, but you’re not providing the information that would make that possible. Please read the Debugging topic to understand the information you need to provide that would make it possible to help you.
Just for starters - this is the not the only piece of information missing - no one here could know what your custom tag (<definition …) produces.
We are creating a isc window which contains our form. Now this whole code is in javaScript class , we are creating object of this JS class inside another JS not in any JSP. In our application we want to remove all the JSP’s it should be a zero install application , the problem which is coming to me here is when i try to see the view (after creating object of JS class) it is not coming inside the proper layout and it is also not refreshing , if i see this view from inside any jsp it is working fine i dont want to do that. Please suggest.
I forgot to mention one thing we have implemented Tiles Framework in our application which have definition of all the JSP’s inside it.
Just fyi, this is still not close to the information that would allow anyone to help you.. please take another read through the Debugging topic.