hungsama / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Datatype other than json for grid #940

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We are using the latest struts-jquery-grid-plugin-3.5.0 and wanted to see if 
other types of dataTypes will be accepted since all the examples just have 
JSON. I am using Tiles in my project and hence want to render my result type in 
TILES. Please let me know what dataType I need to use with an example.

I tried using text and html and but the data is not getting displayed in the 
grid.

Original issue reported on code.google.com by hinducho...@gmail.com on 19 Jan 2013 at 2:45

GoogleCodeExporter commented 9 years ago
Can you please change it to high priority as we need to solve this asap.

Original comment by hinducho...@gmail.com on 20 Jan 2013 at 4:53

GoogleCodeExporter commented 9 years ago
Sorry don't understand this Issue. How is the Content of your table related to 
your layout managed by tiles?

Original comment by johgep on 21 Jan 2013 at 12:12

GoogleCodeExporter commented 9 years ago
Our existing struts application is designed on TILES framework to render the 
menu, header and footer  in all the JSPs. Now in one JSP we are using the grid 
provided by your plugin and trying to load the data. If we use the result type 
as JSON as given below:
<action name="admin" class="com.sample.actions.AdminAction"
            method="execute">
            <result name="input" type="tiles">login</result>
            <result name="success" type="json">admin</result>
</action>

The end result page is downloading a file with the JSON object instead of 
redirecting to the appropriate JSP even though given in the results annotation 
in the class.

If the reult type for success is provided as TILES itself with the dataType for 
grid as "HTML", then nothing is getting loaded into the grid.

Please provide us an example of either retreiving multiple results types with 
both JSON and TILES in one action or give an example of the GRID with TILES 
usage instead of JSON.

Let us know if you need any code.

Original comment by hinducho...@gmail.com on 21 Jan 2013 at 6:58

GoogleCodeExporter commented 9 years ago
I have the similar issue with this <sj:select> tag. My drowdown list is a list 
of Java object. It works fine with struts2-dojo-plugin.

Original comment by Mike....@gmail.com on 28 Feb 2013 at 3:49

GoogleCodeExporter commented 9 years ago
with <sj:select> tag, do I have to use json data?

Original comment by Mike....@gmail.com on 28 Feb 2013 at 3:51