please post your code..
Sorry. I didn't post it because a tried a lot of different codes and nothing works. Here is an example:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:outputLink value="#" id="link">
<rich:componentControl for="modalPanel" attachTo="link" operation="show" event="onclick"/>
<rich:modalPanel id="modalPanel" >
I forgot to said that besides open the modal onthe same page (not as pop-up), there are two very small buttons at the bottom of the original page (above the content of the pop-up) that apparently do nothing.
Here I post an image to you can see clearly my problem. I edited the screen capture to made it shorter, but essentially that is what is happening to me. The content of de modal panel is shown much below that what is seen in the image.
looks like required richfaces stylesheets are not loaded...
And why could this be happening?
Yesterday something strange happened. That error happened on the first page of my aplication. I need the modal on the template of my aplication (as a registration modal in the aplication header). I also have a modal on another page. The weird thing is if I put the modal on the template, the modal on the other page does the same I told before, but if I take off the modal from the template, the other modal works fine. I hope give you a clue with this. Thanks
anyway you are not using any template. So, remove <ui:composition> tags from the page and try..
I tried removing <ui:composition> and still it doesn't works. Anyway I need to use templates, so removing this doesn't work for me.
You said earlier that the problem may be that the required stylesheet is not loaded. How can I find out if that is the problem?
Well, finaly I could solved the problem. It was in fact the stylesheet of the modalPanel. I had a restriction on my code which don't allow to load the stylesheet. Thanks Maheswara Sunkara for all your help. Bye