[ 
http://jira.codehaus.org/browse/DISPL-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136806#action_136806
 ] 

Diwaker Reddy Ponnaganti commented on DISPL-535:
------------------------------------------------

Even though displaytag doesnt provide straight forward method to address this 
porblem, we have a workaround for this. 

Here is the example according to your scenario,
 you have to include id attribute in display:table tag and jstl tags can be 
used to achieve what you are looking for.

display:table name="sessionScope.xandydataList" id="xyList" class="displaytag" 
pagesize="370" export="false" requestURI="">
<display:setProperty name="paging.banner.page.selected" 
value=""></display:setProperty>
<display:column title="Point ID">
  <a href="sampleJavaScriptFunction(<c:out value="${xyList.sno}"/>,<c:out 
value="${xyList.x}"/>,<c:out value="${xyList.y}"/>)"><c:out 
value="${xyList.sno}"/></a>
</display:column>
<display:column property="xdatavalueList" title="X Value" />
<display:column property="ydatavalueList" title="Y Value" />
</display:table>


and in javascript it should be in this way.

<script language="JavaScript">
 function sampleJavaScriptFunction(s,x,y){
     
location.replace("GTBUPDXandYAction.do?method=populateXandY&s="+s"&x="+x+"&y="+y);
}
</script>

Let me know if u have problems implementing it!

thanks
diwa

> I am Using displaytag1.1 . I want to Pass multipple parameters in column url
> ----------------------------------------------------------------------------
>
>                 Key: DISPL-535
>                 URL: http://jira.codehaus.org/browse/DISPL-535
>             Project: DisplayTag
>          Issue Type: Improvement
>          Components: Tag Library
>    Affects Versions: 1.1
>            Reporter: Praveen K
>             Fix For: 1.1
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> My display table i am attaching .
> <display:table name="sessionScope.xandydataList" class="displaytag" 
> pagesize="370" export="false" requestURI="">
>                       <display:setProperty name="paging.banner.page.selected" 
> value=""></display:setProperty>
>                       <display:column property="sno" title="Point ID" 
> href="GTBUPDXandYAction.do?method=populateXandY"                              
>                                              paramId="xid,yid" 
> paramProperty=":xidList,:yidList" />                                          
>              
>                       <display:column property="xdatavalueList" title="X 
> Value" />
>                       <display:column property="ydatavalueList" title="Y 
> Value" />
> </display:table>
> Pleas help me out to Pass multipple paramets . 
> In this case I am geting following error , 
> 11:01:05,609 ERROR [[action]] Servlet.service() for servlet action threw 
> excepti on javax.servlet.jsp.JspException: ServletException in 
> '/WEB-INF/jsp/GTBUPD/GTBUPDXndYUpdate.jsp': Error looking up property 
> ":xidList,:yidList" in object type "co m.videocon.model.DataValueContent". at 
> org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(Inser
> tTag.java:964) at 
> org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:503) at 
> org.apache.jsp.WEB_002dINF.layout.siteLayout_jsp._jspx_meth_tiles_ins
> ert_3(org.apache.jsp.WEB_002dINF.layout.siteLayout_jsp:767)
>         at 
> org.apache.jsp.WEB_002dINF.layout.siteLayout_jsp._jspService(org.apac
> he.jsp.WEB_002dINF.layout.siteLayout_jsp:321)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to