aspose file tools
The moose likes JSF and the fly likes How to set browser property from a jsf component. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to set browser property from a jsf component. " Watch "How to set browser property from a jsf component. " New topic
Author

How to set browser property from a jsf component.

Ganesh ParthaSarathi
Greenhorn

Joined: Aug 05, 2009
Posts: 2
Hi, i'm having a jsf component to to display xml file with few command buttons.
One such button is to validate the xml against schema. While doing the validation i need to show the browser cursor as busy,

I can set it in the button's onclick method . Again at the end of the validation i need to set the cursor to default one. Could some one help me to do that. Thanks .
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 183

I guess you should be able to use the java.awt.Cursor component for your needs.

try {
component.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
doProcessing();
} finally {
component.setCursor(Cursor.getDefaultCursor());
}

Ganesh ParthaSarathi
Greenhorn

Joined: Aug 05, 2009
Posts: 2
Hi thanks for your response. I'm using jsf components. it's trinidad implementation. So i can;t use the java awt part. I shall look for the same feature you mentioned in trinidad. Thanks again.
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 183

Plug some javascript into your faces lifecycle. That should solve it.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to set browser property from a jsf component.
 
Similar Threads
Problem disabling validation with Javascript in JSF
Custom Component in JSF
JSF versus XFORMS
JSF 1.1 vs. JSF 1.2
how to access values in session from javascript