Hi,
I am facing problem in using Display Tag with Struts2 Tabbed Panel and
need some urgent help..
When page loads then I can see table correctly but when I sort or
paginate then result is getting opened in new window.
Here is sample code that I am written...
MyMessages.jsp
This page contain tabbed panel...
<table width="652" height="450" cellpadding="0" cellspacing="0">
<tr>
<td height="13" align="center"> </td>
</tr>
<tr>
<td width="650" height="24" align="center">
<s:url id="recMessages" value="/myMessages_received.action" />
<s:url id="sentMessages" value="/myMessages_sent.action" />
<s:url id="composeMessages" value="/myMessages_compose.action" />
<s:url id="savedMessages" value="/myMessages_saved.action" />
<s:tabbedPanel id="myMessages" theme="simple" selectedTab="1"
cssStyle="width:550px; height:400px; font-size: 12px;" doLayout="true">
<s:div href="%{recMessages}" theme="ajax" label="Received Messages"
id="1">
</s:div>
<s:div href="%{sentMessages}" theme="ajax" label="Sent Messages"
id="2">
</s:div>
<s:div href="%{composeMessages}" theme="ajax" label="Compose
Message" id="3">
</s:div>
<s:div href="%{savedMessages}" theme="ajax" label="Saved Messages"
id="4">
</s:div>
</s:tabbedPanel>
</td>
</tr>
</table>
Action myMessages_received.action returns ReceivedMessages.jsp that
contains display tag table..
<display:table id="myMessagesId" name="myMessagesToLst"
requestURI="/myMessages_received.action" defaultsort="2"
defaultorder="descending" pagesize="3" class="table"
excludedParams="dojo.preventCache">
<display:column property="userName" sortable="true"
titleKey="message.From" style="width:20%;" class="text"/>
<display:column property="messageDate"
format="{0,date,dd-MMM-yyyy}"
sortable="true"
titleKey="message.Date" style="width:20%;"
class="text" />
<display:column property="subject" sortable="true"
titleKey="message.Subject"
url="/readMessage_read.action" paramId="messageId"
paramProperty="messageId" style="width:40%; text-decoration:none;"
class="text"/>
</display:table>
When I click on any sortable column or next page then I see below URL..
http://localhost:8080/write4smile/myMessages_received.action?d-6780513-p=2
I tried with requestURI="" but that also doesn't work...
Thanks
Raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]