Hello quinquin2209,
Is this issue resolved for you? What was the solution?
I am facing same issue as you have raised. I can see display table being
populated correctly on page load but when I click on any sortable column
or click on next page, its result is getting opened in new window. How to
keep it under tabbel panel?
I tried everything that is suggested by Jeromy but no success....

MyMessages.jsp (This page includes tabbed Panel)

<s:url id="recMessages" includeParams="get"
value="/myMessages_received.action" />

 <s:tabbedPanel id="myMessages" theme="simple" selectedTab="1"
cssStyle="width:550px; height:400px; font-size: 12px;" doLayout="true">

  <s:div href="%{recMessages}" refreshOnShow="true" 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>
Received Messages.jsp: (This page contain displaytag table that has to be
populated under remote div under tabbbed panel..

    <display:table id="myMessagesId" name="myMessagesToLst"
     requestURI="/myMessages_received.action" defaultsort="2"
defaultorder="descending" pagesize="3" class="table" >

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


On 12/11/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>
> quinquin2209 wrote:
> > Thanks for reply. But I encounter this problem:
> >
> > In my main.jsp is the tab panel as follow:
> >
> > <s:url id="messageList" value="/member/list.action" />
> > <s:tabbedPanel id="test2" theme="simple">
> >       <s:div id="1" label="ALL" theme="ajax" href="%{messageList}"
> > loadingText="Loading..." refreshOnShow="true" />
> > </s:tabbedPanel>
> >
> > And in my memberList.jsp, the display tag is defined as follow:
> >
> > <display:table name="messages" pagesize="18" requestURI="">
> >     <display:column property="Id" title="ID" sortable="true"
> > headerClass="sortable" />
> >     <display:column property="Type" title="version" />
> >     <display:column property="issueDate" title="Date" sortable="true"
> > headerClass="sortable"/>
> > </display:table>
> >
> >
> >
> >
> > when I click on the sort hyperlink, it direct me to
> >
> http://localhost:8080/app/folder/?dojo.preventCache=1197368118484&d-49653-s=3&d-49653-o=2
> > where the page is not found. And also the whole page refresh instead of
> the
> > div in tab pannel.
> >
> >
> >
> I presume you mean want the only table to refresh when the user clicks
> on a column header, not the entire tab and not the entire page.
>
> I have two suggestions at this point:
> 1.  Try setting the requestURI to the URL of your action. Clearly when
> it does a sort it's going to the wrong URL  and we just have to force it
> to go to the right place.  Without the attribute it uses the JSP name,
> with blank it's literally using blank (which normally works), so now try
> the URL you would expect:
>
> <display:table name="messages" pagesize="18"
> requestURI="/member/list.action">
>
> 2. modify s:url to state that only get parameters are included.
>
> <s:url id="messageList" includeParams="get" value="/member/list.action" />
>
> I don't see why it would make a difference in this case, but for more
> information see
>
> http://www.nabble.com/OT-3A-displaytag-remember-sort-config-..-to13347200.html
> The objective is to remove things that may interfere with display tags
> build-in sort functionality.
>
> Hope that helps.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to