You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by John <jo...@jak.com> on 2006/05/20 21:12:44 UTC

RE: (resolved) - Tobago t:toolBarCommand actions in tag file

 Ok - found the problem.

I was using multiple tag files being called from a central page for
layout

<layout:header>
</layout:header>
<layout:content>
</layout:content>
<layout:footer>
</layout:footer>

I had t:page tags in both the header and content tag files. The content
tag file contained the actions.
When I moved t:page to the main file and took them out of the tag files,
voila! Actions worked.
Apparently the t:page tag scopes the actions or something....

John


-----Original Message-----
From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com] 
Sent: Wednesday, May 17, 2006 11:38 AM
To: MyFaces Discussion
Subject: Re: Tobago t:toolBarCommand actions in tag file

Hello John,

this is my content of the WEB-INF/lib from the tobago-example-demo

commons-beanutils-1.7.0.jar  log4j-1.2.11.jar
commons-codec-1.3.jar        myfaces-api-1.1.2.jar
commons-collections-3.1.jar  myfaces-impl-1.1.2.jar
commons-digester-1.6.jar     oro-2.0.8.jar
commons-el-1.0.jar           standard-1.1.2.jar
commons-fileupload-1.0.jar   tobago-core-1.0.8-SNAPSHOT.jar
commons-io-1.1.jar           tobago-theme-richmond-1.0.8-SNAPSHOT.jar
commons-lang-2.1.jar         tobago-theme-scarborough-1.0.8-SNAPSHOT.jar
commons-logging-1.0.4.jar    tobago-theme-speyside-1.0.8-SNAPSHOT.jar
jstl-1.1.0.jar               tobago-theme-standard-1.0.8-SNAPSHOT.jar


I did not see any real difference

oro is a local dependence of the demo

can you try 1.0.8-SNAPSHOT?

you can get it from the nightly build dir

http://people.apache.org/builds/myfaces/nightly/

Regards

Bernd



John schrieb:
> Bernd,
> 
> The app is currently in a non-runnable state....
> The last time this happened (at the beginning of Tobago development), 
> it was a result of library conflicts. I am not including any JSF or 
> JSTL libraries directly. The libraries being included are from the 
> Tobago
> 1.0.7 distribution only.
> 
> They are:
> 
> tobago-core-1.0.7.jar
> tobago-facelets-1.0.7.jar
> Tobago-theme-richmond-1.0.7.jar
> Tobago-theme-scarborough-1.0.7.jar
> tobago-theme-speyside-1.0.7.jar
> tobago-theme-standard-1.0.7.jar
> commons-beanutils-1.0.7.jar
> commons-codec-1.3.jar
> commons-collections-3.1.jar
> commons-digester-1.6.jar
> commons-el-1.0.jar
> commons-fileupload-1.0.jar
> commons-io-1.1.jar
> commons-lang-2.1.jar
> commons-logging-1.0.4.jar
> jstl-1.1.0.jar
> myfaces-api-1.1.2.jar
> myfaces-impl-1.1.2.jar
> standard-1.1.2.jar
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Bernd Bohmann [mailto:bernd.bohmann@atanion.com]
> Sent: Wednesday, May 17, 2006 9:46 AM
> To: MyFaces Discussion
> Subject: Re: Tobago t:toolBarCommand actions in tag file
> 
> Hello John,
> 
> I did not found a reason why this should not work.
> 
> Can you send some example code, please.
> 
> Regards
> 
> 
> Bernd
> 
> Bernd Bohmann schrieb:
>> Hello John,
>>
>> I will look at this issue tomorrow.
>>
>> Regards
>>
>> Bernd
>>
>> John schrieb:
>>> It doesn't seem to work to have toolBarCommand buttons defined in 
>>> tag
> 
>>> files. With action="#{backingBean.someMethod}"
>>> The methods are never executed.
>>>  
>>> Is this a known issue. This code used to work when in the jsp page 
>>> jsp:body before putting it directly in the tag file...
>>> The t:sheet in the same tag file works and calls the getters just 
>>> fine. It's just the actions that stopped calling their methods.
>>>  
>>> Thanks,
>>> John
> 
> --
> Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development 
> Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
> phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
> 
> 

--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333