Issue Details (XML | Word | Printable)

Key: EFJC-10
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Bahdanau, Ivan
Reporter: Kashynski, Maksim
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Exadel Fiji

Update Fiji component with single request

Created: 25/Aug/10 08:50 AM   Updated: 12/Jan/11 08:46 AM
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.1

Time Tracking:
Not Specified


 Description  « Hide
I have a chart component, and listbox that is used to select the number of bars I want to display in the chart.
Once I change the value, an Ajax request (POST) is made to the server that changes the setting in backing bean.
After request is complete I make $('mychart').update() call which executes second request (GET) to Fiji framework to get new data and repaints the chart.
Is there a way to do this with single request?

If I reRender whole component, it will reload an swf (potentially hitting server for that), the layout around might jump, and ton of Fiji initialization javascript will be executed.
So this option is not better especially from end user perspective...

Basically I'm thinking about serving Fiji data portion together with A4J response, as it's XML anyway, and then call SWF method to process updated data..
This might come handy to many RichFaces + Fiji users.

I believe ability to trigger Fiji data encoder to write the data into A4J response and a JavaScript function that repaints the SWF with arbitrary XML data should be sufficient

There are no comments yet on this issue.