Thanks Basti, I made this change for s:url Now I can see from log that DisplayTag is getting populated with correct data but table is not getting populated to main JSP MyArticles.jsp i.e. response of MyArticlesDetail.jsp is not getting included in MyArticle.jspwhich contain TabbedPanel
Not sure what to do now. Thanks Raghu On 11/13/07, lbastil <[EMAIL PROTECTED]> wrote: > > > I think you have to use <s:url .../> when using ajaxed remote divs. > > Try something like: > > <s:url id="yourId" ... /> > > ... > <s:div id="one" label="Stories " theme="ajax" > href="%{yourId}" > labelposition="top" > > </s:div> > > Regards, > basti > > > Raghuveer Rawat wrote: > > > > Hi, > > I am using Struts2, Tile2, Spring2, Display Tag. > > I am implementing tabbed panel and all the tabs make remote calls. Each > > Tab > > will contain a table which are implemented using DisplayTag. I am > > implementing this table in a separagte JSP and want its content to be > > added > > to tab in the main jsp after execution. > > > > I can see Tabbed Panel but it is not able to load data. Request is > > reaching > > to Action class but data is not reaching back to original jsp. > > I am implementing like below.. > > > > *MyArticles.jsp*.. ...and it has Tabbed Panel. > > > > <s:tabbedPanel id="test" > > > <s:div id="one" label="Stories " theme="ajax" > > href="article/myArticles_articlesByAuthorId.action?channelId=1" > > labelposition="top" > > > </s:div> > > > > <s:div id="two" label="Poem " theme="ajax" > > href="article/myArticles_articlesByAuthorId.action?channelId=2"> > > </s:div> > > > > <s:div id="three" label="Jokes/Humors " theme="ajax" > > href="article/myArticles_articlesByAuthorId.action?channelId=3"> > > </s:div> > > > > <s:div id="four" label="Shayaries/Ghazal " theme="ajax" > > href="article/myArticles_articlesByAuthorId.action?channelId=4"> > > </s:div> > > > > </s:tabbedPanel> > > *MyArticleDetail.jsp (*This jsp contain table, which will be added to > > tab*)* > > > > <display:table id="articleId" name="articlesByAuthor" > > requestURI="" defaultsort="3" sort="list" defaultorder="descending" > > pagesize="10" class="table"> > > > > <display:column property="categoryName" sortable="true" > > title="name" style="width:20%;" class="text"/> > > > > <display:column property="title" sortable="true" > > title="title" style="width:20%;" class="text" /> > > > > <display:column property="lastUpdatedDate" > format="{0,date,dd-MMM-yyyy}" > > sortable="true" > > title="Date" style="width:20%;" class="text" /> > > > > > > <display:column property="ratingCount" sortable="true" > > title="Rating" style="width:20%;" class="text" /> > > > > > > </display:table> > > > > *Struts.xml* > > ** > > > > <package name="article" namespace="/article" extends="struts-default"> > > > > <action name="myArticles_*" method="{1}" class=" > > com.rawatsoft.write4smile.webapp.action.ArticleAction"> > > > > <result name="success" type="dispatcher"> > > > > /WEB-INF/jsp/MyArticlesDetail.jsp > > > > </result> > > > > </action> > > > > </package> > > > > Error Log: > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Opening Hibernate Session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | opened session at timestamp: > > 4894327269310466 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | No bean named ' > > org.apache.struts2.dispatcher.ServletDispatcherResult' found in > > > [EMAIL PROTECTED] > : > > defining beans > > > [dataSource,sessionFactory,transactionManager,articleDAO,userDAO,myMessageDAO,featuredArticlesDAO,myFriendsDAO,countryDAO,myInvitesDAO,writerInterestDAO,channelDAO,categoryDAO,securityQuestionsDAO,commentDAO,ratingDAO,testDAO,testServiceTarget,articleServiceTarget,countryServiceTarget,myInvitesServiceTarget,writerInterestServiceTarget,securityQuestionsServiceTarget,channelServiceTarget,categoryServiceTarget,userServiceTarget,myMessageServiceTarget,featuredArticlesServiceTarget,myFriendsServiceTarget,commentServiceTarget,ratingServiceTarget,testService,articleService,userService,myMessageService,featuredArticlesService,commentService,ratingService,myFriendsService,countryService,writerInterestService,channelService,categoryService,securityQuestionsService,myInvitesService]; > > root of factory hierarchy > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | setting flush mode to: NEVER > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Bound value [ > > [EMAIL PROTECTED] for key [ > > [EMAIL PROTECTED] to thread > > [http-8080-Processor22] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Creating [ > > java.util.LinkedHashMap] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Checking > > ConfigurationProviders > > for reload. > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Creating [ > > java.util.LinkedHashMap] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Ignoring constructor [public > > org.apache.struts2.dispatcher.ServletDispatcherResult(java.lang.String)] > > of > > bean 'org.apache.struts2.dispatcher.ServletDispatcherResult': > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name ' > > org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied > > dependency expressed through constructor argument with index 0 of type [ > > java.lang.String]: There are 0 beans of type [java.lang.String] > available > > for autowiring: []. There should have been exactly 1 to be able to > > autowire > > constructor of bean > > 'org.apache.struts2.dispatcher.ServletDispatcherResult'. > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Forwarding to location > > /WEB-INF/jsp/MyArticlesDetail.jsp > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | > > servletPath=/WEB-INF/jsp/MyArticlesDetail.jsp, pathInfo=null, > > queryString=null, name=null > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Path Based Forward > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Entering nullPropertyValue > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], property=org] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [ > > [EMAIL PROTECTED] for key [ > > [EMAIL PROTECTED] from thread > > [http-8080-Processor22] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | JspEngine --> > > /WEB-INF/jsp/MyArticlesDetail.jsp > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | ServletPath: > > /WEB-INF/jsp/MyArticlesDetail.jsp > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | PathInfo: null > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | RealPath: > C:\Program > > Files\Apache Software Foundation\Tomcat > > 5.5\webapps\write4smile\WEB-INF\jsp\MyArticlesDetail.jsp > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | RequestURI: > > /write4smile/WEB-INF/jsp/MyArticlesDetail.jsp > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing single Hibernate > > Session > > in OpenSessionInViewFilter > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | QueryString: > > dojo.preventCache=1194904116234 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Request Params: > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | dojo.preventCache = > > 1194904116234 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doStartTag > called > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing Hibernate Session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | getBeanValue - bean: > > {pageContext}, property: {articlesByAuthor} > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | closing session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | connection already null in > > cleanup : no action > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Entering nullPropertyValue > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > property=pageContext] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Using SessionFactory > > 'sessionFactory' for OpenSessionInViewFilter > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Returning cached instance of > > singleton bean 'sessionFactory' > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Opening single Hibernate > > Session > > in OpenSessionInViewFilter > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Opening Hibernate Session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | opened session at timestamp: > > 4894327269376000 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | setting flush mode to: NEVER > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Bound value [ > > [EMAIL PROTECTED] for key [ > > [EMAIL PROTECTED] to thread > > [http-8080-Processor22] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Checking > > ConfigurationProviders > > for reload. > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Entering nullPropertyValue > > [EMAIL PROTECTED], > > property=NO_FILTER] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [ > > [EMAIL PROTECTED] for key [ > > [EMAIL PROTECTED] from thread > > [http-8080-Processor22] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing single Hibernate > > Session > > in OpenSessionInViewFilter > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing Hibernate Session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | closing session > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | connection already null in > > cleanup : no action > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] setting media > > [html] > > in this.pageContext > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doIteration > called > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doIteration() - > > iterator ended after 0 rows > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Entering nullPropertyValue > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > property=articleId_rowNum] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] first > > iteration=true > > (row number=1) > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] addColumn > > HeaderCell[columnNumber=0,title=name,beanPropertyName=categoryName] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | columnTag.addHeaderToTable() > > :: > > first iteration - adding header > > HeaderCell[columnNumber=0,title=name,beanPropertyName=categoryName] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] first > > iteration=true > > (row number=1) > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] addColumn > > HeaderCell[columnNumber=0,title=title,beanPropertyName=title] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | columnTag.addHeaderToTable() > > :: > > first iteration - adding header > > HeaderCell[columnNumber=1,title=title,beanPropertyName=title] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] first > > iteration=true > > (row number=1) > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] addColumn > > HeaderCell[columnNumber=0,title=Date,beanPropertyName=lastUpdatedDate] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | columnTag.addHeaderToTable() > > :: > > first iteration - adding header > > HeaderCell[columnNumber=2,title=Date,beanPropertyName=lastUpdatedDate] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] first > > iteration=true > > (row number=1) > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] addColumn > > HeaderCell[columnNumber=0,title=Rating,beanPropertyName=ratingCount] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | columnTag.addHeaderToTable() > > :: > > first iteration - adding header > > HeaderCell[columnNumber=3,title=Rating,beanPropertyName=ratingCount] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doAfterBody > called > > - > > iterating on row 1 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doIteration > called > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doIteration() - > > iterator ended after 1 rows > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Entering nullPropertyValue > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > property=articleId_rowNum] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doEndTag called > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] sorting full > data > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | New SmartListHelper > > instantiated: list.size=[0], page size=[3], full list size=[0]. > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | CurrentPage page is 1 of 0 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Returning sublist for page 1 > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] writeTable > called > > for table [articleId] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | [articleId] doEndTag - end > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Disabling the response for > > futher output > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | after Locale=en_US > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | intercept } > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [ > > [EMAIL PROTECTED] for key [ > > [EMAIL PROTECTED] from thread > > [http-8080-Processor24] > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing single Hibernate > > Session > > in OpenSessionInViewFilter > > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Closing Hibernate Session > > > > > > -- > View this message in context: > http://www.nabble.com/-S2--Help-for-Ajax-Tabbed-Panel-tf4794501.html#a13722199 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >