myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michał 'Gandalf' Stawicki" <stawi...@gmail.com>
Subject Re: [Tobago] <tc:progress> BUG? please help!
Date Sat, 17 Feb 2007 23:25:07 GMT
So I see...

is there any other way to auto-execute action?

let's say that at top of my page I have:

<c:if ....>
execute some action
</c:if>

I know about tc:page's facet action, but using it would be quite
troublesome for me. Is there any alternative?

regards,
michael

On 17/02/07, Bernd Bohmann <bernd.bohmann@atanion.com> wrote:
> Hello,
>
> this is not possible.
>
> My suggestion is:
> The complete facet points to a new Page with the text Report created and
> a button or link with transition="false" for downloading the file. This
> should work.
> If you get problems with the next request after the download. You should
> try the new myfaces core 1.1.5. (works only with the current SNAPSHOT of
> tobago)
>
> Regards
>
> Bernd
>
> Michał 'Gandalf' Stawicki wrote:
> > Hello,
> >
> > I have this code on my jsp:
> >
> >     <tc:panel id="idefix" height="1" width="1"
> > rendered="#{operatorManagedBean.operatorFilesController.fetchReport}">
> >         <f:facet name="reload">
> >         <tc:reload frequency="1000" />
> >         </f:facet>
> >         <tc:progress id="asterix"
> > value="#{operatorManagedBean.operatorFilesController.progress}" >
> >         <f:facet name="complete">
> >             <tc:command transition="false"
> > action="#{operatorManagedBean.operatorFilesController.getReport}" />
> >         </f:facet>
> >         </tc:progress>
> >     </tc:panel>
> >
> > fetchReport just uploads a file to a user. The problem is that the
> > transition attribute is ignored,
> > so the transission progressbar won't dissapear, since there is no new
> > page - just file. This issue is similiar to:
> >
> > [Tobago] Problem with progress bar and PDF download
> >
> > Am I doing something wrong, or is it a bug?
> >
> > regards,
> > michael
> >
>


-- 
stawicki@gmail.com
http://stawicki.jasliska.pl
GG: 3691111
JID: stawicki@gmail.com
Mime
View raw message