Hi all,
I noticed in a module I am currently developing that the getView() from
AbstractUsecase are called multiple times. I am not sure why but it
feels like a bug that it is called more then once.
I tried to debug and counted that the method is invoked 6 times. If you
start lenya in debug mode and set a breakpoint at line 666 (no kidding
the 'evil' line) in AbstractUsecase then you will note requesting
lenya.usecase=admin.usecases exactly this phenomenon.
The whole problem about it is that the first time all parameter are in
the request but after that not anymore.
My class is very simple:
public class ShowReports extends AbstractUsecase {
...
protected void prepareView() throws Exception {
...
}
}
Meaning I just want to override the prepareView() method.
My xconf looks like:
<xconf xpath="/cocoon/usecases"
unless="/cocoon/usecases/component-instan...@name =
'reporter.showReports']">
<component-instance name="reporter.showReports"
logger="lenya.reporter"
class="org.apache.lenya.modules.reporter.ShowReports">
<view uri="modules/reporter/usecases/showReports.jx" menu="true"
createContinuation="false">
<tab group="admin" name="reporter"/>
</view>
</component-instance>
</xconf>
Does anybody see the same problem?
Any ideas?
salu2
--
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]