| 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.
|
 |
 |
|
|
subject: How to set browser property from a jsf component.
|
|
|