Pallavi,

There is no page onload attribute in the JSF spec. As I understand, this was deliberately excluded for some reason. Perhaps they felt it led to poor designs.

However, if you really need an onload() event, don't despair. If you add Ajax4jsf you can use the onload from the a4j:page tag. See [1].

[1] https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html#d0e436

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

[EMAIL PROTECTED] wrote:
Hi All,


I have written a code for floating window in javascript.
I have tried to run in the IE and its working fine.
I now intend to integrate this code in JSF(Websphere Portals).
<body style="background-color: #FFFFDD"  onload="positionit()>
<div id="exceptionDiv" style="position:relative; padding-top:5px;
padding-right:0px; z-index:1">
    <div id="floater" style="position:absolute; top:0px; right:0px;
border:1px solid; width:185px; text-align:left">

     ...............
...............
  </div>
 </div>


But when i translate this code in JSF.
I do not know how to replace

<body style="background-color: #FFFFDD"  onload="positionit()> in JSF.
In a way so that i could call positionit() funtion when the explorer is
clicked.


I had tried including <h:form onclick()="positionit()"> but it doesnt
bear the results.
Is there any corresponding body tag in JSF or onload() function.
How could i make this work in JSF.


Best Regards,
Pallavi







The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.


www.wipro.com


Reply via email to