Creating threads in J2EE environment is not at all advisable. The whole advantage of having a container is lost if you have to manage your own threads.

Is there any other way in which it can be achieved? If not then I guess I will have to make my own component.

 

Thanks & Regards,

Madhav Bhargava

Ext: 74371


From: ::SammyRulez:: [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 7:15 PM
To: MyFaces Discussion
Subject: Re: sun Progress bar component with my faces

 

I thik binding attribute wold be usueful...

btw I would approach the problem in a complete different manner.

  1. backing-bean lunch a thread and expose a sincronized property with the percentage of "loading state"
  2. on thread end backing bean value are updated and progress bar not rendered.

if you don't have the real value of the loading progress skip the progress bar solution and check
http://www.jsffaq.com/Wiki.jsp?page=HowToImplementPleaseWait...Page


2006/10/19, Madhav Bhargava <[EMAIL PROTECTED]>:

Sammy,

 

The problem is this:

 

First time a request is made the business makes a call to an EAI engine to gather data. Since it takes a while before that data can be shown to the user a progress bar is shown to the user.

When the first time the progress bar is shown then a value (a unique ID) is written to a hidden component in the JSF page. I want that every time the ajax request is sent this unique ID stored in the hidden component should be sent along as well.

 

How will you do that using ajax4jsf poll component? I was unable to find any attribute that will help me do it.

 

 

>Sammy wrote:

with ajax4jsf I impletented progress bar in minutes

https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html#d0e650

2006/10/19, Madhav Bhargava < [EMAIL PROTECTED]>:

Hi all,

 

I am using sun blueprints progress bar with my faces and facing some problems.

I want this component to call a particular managed bean method say fun().This method depends on a managed bean property. I need this property bound to an inputHidden component.

I think AJAX won't submit form each time it calls fun(). So how do I proceed with this requirement?

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***




--
::SammyRulez::
http://www.kyub.com/blog/
-----------------------------------------------------------------
La programmazione รจ per un terzo interpretazione e per due terzi ispirazione.
E per un terzo mistificazione

Reply via email to