• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set browser property from a jsf component.  RSS feed

 
Ganesh ParthaSarathi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plug some javascript into your faces lifecycle. That should solve it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!