-
1. Permission Denied Error
iabughosh Mar 29, 2011 9:38 AM (in response to anilkumar_a)hi Anil,
please give us more details, did you use popup windows or window.opener methods ??
-
2. Permission Denied Error
anilkumar_a Mar 30, 2011 12:40 AM (in response to iabughosh)I have used javascript to click a4j:commandLink onload of the page, It works fine in Firefox where it does not work on IE browser and gives Permission Denied java script error.
This error does not occur all the time, occurs only sometimes.
Thank you.
Best Regards,
Anil Kumar A
-
3. Permission Denied Error
iabughosh Mar 30, 2011 4:37 AM (in response to anilkumar_a)What JSF version you are using ???, please give me a snapshot of your JavaScript Code .
-
4. Permission Denied Error
anilkumar_a Mar 31, 2011 5:11 AM (in response to iabughosh)I'm using JSF 1.0 and RichFaces 3.0.1. Scenario is expanding the rich tree onload of the page instead of clicking a button to expand the rich tree.
Since there is no attribut for rich tree to expand the tree by default, hence by using following JavaScript code, clicking the button to expand the rich tree onload of the page.
var fireOnThis = document.getElementById('quoteform:link_cop')
var fireOnThis1 = document.getElementById('quoteform:link_pop')
if (document.createEvent)
{
var evObj = document.createEvent('MouseEvents')
evObj.initEvent( 'click', true, false )
fireOnThis.dispatchEvent(evObj)
var evObj1 = document.createEvent('MouseEvents')
evObj1.initEvent( 'click', true, false )
fireOnThis1.dispatchEvent(evObj1)
}
else if (document.createEventObject)
{
fireOnThis.fireEvent('onclick')
fireOnThis1.fireEvent('onclick')
}
-
5. Permission Denied Error
iabughosh Apr 1, 2011 5:34 AM (in response to anilkumar_a)Dear Anil,
i tried your script and it is not working with me, but there is another solution, you can call a hidden button within onLoad function and its actionlistener
like this :
public void myActionListener(ActionEvent ae) {
UIComponent comp = FacesContext.getCurrentInstance().getViewRoot().findComponent("myForm:tree");
HtmlTree tree = (HtmlTree)comp;
tree.queueExpandAll();
}
it will expand your tree.
-
6. Permission Denied Error
anilkumar_a Apr 7, 2011 10:20 AM (in response to iabughosh)Hi Ibrahim,
Thanks for your suggestion, I have already tried this approach earlier which does not work.
I think there would not be any differnce between clicking the button which is hidden compare to shown button.
Thanks & Regards
Anil Kumar
-
7. Permission Denied Error
iabughosh Apr 7, 2011 3:26 PM (in response to anilkumar_a)Hi Anil,
I've tried this approach and it worked fine with me, what JSF & RichFaces you are using ??