What you can do is the following:

When the page loads show a loading gif using a status component from ajax4jsf 
which will then change to data table when the div in which the table is 
contained gets some data to be displayed. Either you can enclose the other 2 
data tables in a4j:outputPanel or just re-render them using support component.

I believe that if you have any further queries regarding a4j library then this 
will not be the correct forum to post your queries. Richfaces has better AjAX 
support than myfaces at present.

Shashi wrote:
>Madhav,
>
>i actually have a page which has three tables in it. I get data to table 1 
>from db which is very fast. Table 2 and table 3 should be populated from 
>webservice calls. As the webservice calls are >very slow it is taking a long 
>time for the page to get loaded.So somebody suggested to load the page with 
>table1 first and then using ajax populate the other two tables after the page 
>loads >
>without any user action..Hope u understood my reqmt..any help please? does 
>myfaces give any component or can i use ajax with myfaces without any 
>prob..this is my config (myfaces 1.1.6, >tomahawk-1.1.8, tiles with jdk 1.4)

--- On Thu, 15/1/09, Madhav Bhargava <[email protected]> wrote:
From: Madhav Bhargava <[email protected]>
Subject: RE: Using Ajax with MyFaces
To: "MyFaces Discussion" <[email protected]>, "[email protected]" 
<[email protected]>
Date: Thursday, 15 January, 2009, 6:03 AM
Shashi wrote:

>Hi all,

>

>I'm using myfaces 1.1.6, tomahawk-1.1.8, tiles with jdk 1.4.

>I've a page which has three data tables. I want the data in the two tables to 
>be populated after the page loads.Can i do it using AJAX. I am new to >AJAX. 
>Or is there any component in Sandbox for this requirement.

>Already i'm facing lot of problems cos i'm trying to use trinidad for 
>breadcrumb which i could not resolve yet. If i include rich faces now, I'm 
>scared >I'll have

 incompatibility issues. My aim is to populate one table(which is a web service 
call) automatically after the page loads. That too without any >client 
interaction. Please help as we have very less time for development.


Your requirement is not clear. You can always pre-populate a backing bean which 
is associated to the page and then transfer control to that page.
Alternatively you can call a javascript on page load and then issue an AJAX 
submit. Put the data table in a4j:outputPanel. When the page is refreshed the 
data table will then have the data that you desire.

Regards,
M

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



________________________________
Download prohibited? No problem. 
CHAT<http://in.rd.yahoo.com/tagline_webmessenger_1/*http:/in.webmessenger.yahoo.com/>
 from any browser, without download.

Reply via email to