You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghuveer Rawat <ra...@gmail.com> on 2007/11/13 00:04:08 UTC

[S2] Help for Ajax Tabbed Panel

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

<param name="location">/WEB-INF/jsp/MyArticlesDetail.jsp</param>

</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
org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc473:
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 [
org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
[target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
com.opensymphony.xwork2.DefaultTextProvider@f90137], property=org]

[WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
[target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
com.opensymphony.xwork2.DefaultTextProvider@f90137], 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 [
org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
[target=[com.opensymphony.xwork2.DefaultTextProvider@f90137],
property=NO_FILTER]

[WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
[target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
com.opensymphony.xwork2.DefaultTextProvider@f90137],
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
[target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
com.opensymphony.xwork2.DefaultTextProvider@f90137],
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 [
org.springframework.orm.hibernate3.SessionHolder@14510ac] for key [
org.hibernate.impl.SessionFactoryImpl@6fdca5] 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

Re: [S2] Help for Ajax Tabbed Panel

Posted by Raghuveer Rawat <ra...@gmail.com>.
Still not able to make it working. I had s:url inside the tabbed panel which
I have moved out but still output of MyArticlesDetail.jsp is not coming back
into tab of the MyArticle.jsp

Not sure what is causing this issue. Any help if someone is able to make
tabbelpanel working.

Tabbed Panel code look like below.. other details i have already given..

 <s:url var="storyAction"
value="article/myArticles_articlesByAuthorId.action?channelId=1"/>
    <s:url var="poemAction"
value="article/myArticles_articlesByAuthorId.action?channelId=2" />
    <s:url var="jokesAction"
value="article/myArticles_articlesByAuthorId.action?channelId=3" />
    <s:url var="shayariAction"
value="article/myArticles_articlesByAuthorId.action?channelId=4" />

    <s:tabbedPanel id="test" theme="simple" cssStyle="height: 300px;"
doLayout="true" selectedTab="one" closeButton="tab" >

       <s:div id="one" label="Stories" loadingText="Loading My Stories"
           theme="ajax" href="%{storyAction}">

       </s:div>

       <s:div id="two" label="Poem" theme="ajax" href="%{poemAction}"
loadingText="Loading My Poems" >

       </s:div>

       <s:div id="three" label="Jokes/Humors" theme="ajax"
href="%{jokesAction}" loadingText="Loading My Jokes" >

       </s:div>

       <s:div id="four" label="Shayaries/Ghazal" theme="ajax"
href="%{shayariAction}" loadingText="Loading My Shayaries" >

       </s:div>

       </s:tabbedPanel>



On 11/13/07, Raghuveer Rawat <ra...@gmail.com> wrote:
>
> I can see below message after execution in tabble panel..
>
> *Couldn't load content:Unknown runtime error*
>
> It looks request is getting forwarded to new
> location /WEB-INF/jsp/MyArticlesDetail.jsp. How do I include response of
> MyArticlesDetail.jsp in main jsp MyArticles.jsp
>
> I have below configuration in 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>
>
>
>
>
>  On 11/13/07, Raghuveer Rawat <raghuveer.rawat@gmail.com > wrote:
>
> > 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.jsp which contain TabbedPanel
> >
> > Not sure what to do now.
> >
> > Thanks
> > Raghu
> >
> >
> >
> > On 11/13/07, lbastil <basti-unterwegs@gmx.de > 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
> > > >
> > > org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc473:
> > > > 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 [
> > > > org.springframework.orm.hibernate3.SessionHolder@1c8f644 ] for key [
> > > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > > [target=[
> > > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > > com.opensymphony.xwork2.DefaultTextProvider@f90137], property=org]
> > > >
> > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > > > org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> > > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > > [target=[
> > > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > > com.opensymphony.xwork2.DefaultTextProvider@f90137 ],
> > > 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 [
> > > > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > > [target=[com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > > > property=NO_FILTER]
> > > >
> > > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > > > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > > [target=[
> > > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > > com.opensymphony.xwork2.DefaultTextProvider@f90137 ],
> > > > 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
> > > > [target=[
> > > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > > com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > > > 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 [
> > > > org.springframework.orm.hibernate3.SessionHolder@14510ac] for key [
> > > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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<http://nabble.com/>
> > > .
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>

Re: [S2] Help for Ajax Tabbed Panel

Posted by Raghuveer Rawat <ra...@gmail.com>.
I can see below message after execution in tabble panel..

*Couldn't load content:Unknown runtime error*

It looks request is getting forwarded to new
location /WEB-INF/jsp/MyArticlesDetail.jsp. How do I include response of
MyArticlesDetail.jsp in main jsp MyArticles.jsp

I have below configuration in 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>




On 11/13/07, Raghuveer Rawat <ra...@gmail.com> wrote:

> 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 <basti-unterwegs@gmx.de > 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
> > >
> > org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc473:
> > > 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 [
> > > org.springframework.orm.hibernate3.SessionHolder@1c8f644 ] for key [
> > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > [target=[
> > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > com.opensymphony.xwork2.DefaultTextProvider@f90137], property=org]
> > >
> > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > > org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616
> > ,
> > > com.opensymphony.xwork2.DefaultTextProvider@f90137 ],
> > 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 [
> > > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > [target=[com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > > property=NO_FILTER]
> > >
> > > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616
> > ,
> > > com.opensymphony.xwork2.DefaultTextProvider@f90137 ],
> > > 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
> > > [target=[
> > com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > > com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > > 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 [
> > > org.springframework.orm.hibernate3.SessionHolder@14510ac] for key [
> > > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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<http://nabble.com/>
> > .
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

Re: [S2] Help for Ajax Tabbed Panel

Posted by Raghuveer Rawat <ra...@gmail.com>.
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 <ba...@gmx.de> 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
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc473
> :
> > 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 [
> > org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > com.opensymphony.xwork2.DefaultTextProvider@f90137], property=org]
> >
> > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > com.opensymphony.xwork2.DefaultTextProvider@f90137],
> 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 [
> > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > [target=[com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > property=NO_FILTER]
> >
> > [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> > org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > 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
> > [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> > com.opensymphony.xwork2.DefaultTextProvider@f90137],
> > 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 [
> > org.springframework.orm.hibernate3.SessionHolder@14510ac] for key [
> > org.hibernate.impl.SessionFactoryImpl@6fdca5] 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [S2] Help for Ajax Tabbed Panel

Posted by lbastil <ba...@gmx.de>.
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
> org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc473:
> 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 [
> org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> com.opensymphony.xwork2.DefaultTextProvider@f90137], property=org]
> 
> [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> org.springframework.orm.hibernate3.SessionHolder@1c8f644] for key [
> org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> com.opensymphony.xwork2.DefaultTextProvider@f90137], 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 [
> org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> [target=[com.opensymphony.xwork2.DefaultTextProvider@f90137],
> property=NO_FILTER]
> 
> [WRITE4SMILE] DEBUG [2007/11/12 16:48:38] | Removed value [
> org.springframework.orm.hibernate3.SessionHolder@1e06b12] for key [
> org.hibernate.impl.SessionFactoryImpl@6fdca5] 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
> [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> com.opensymphony.xwork2.DefaultTextProvider@f90137],
> 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
> [target=[com.rawatsoft.write4smile.webapp.action.ArticleAction@1499616,
> com.opensymphony.xwork2.DefaultTextProvider@f90137],
> 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 [
> org.springframework.orm.hibernate3.SessionHolder@14510ac] for key [
> org.hibernate.impl.SessionFactoryImpl@6fdca5] 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org