-
1. Re: Parameter to modalPanel
liuliu Nov 10, 2008 3:47 AM (in response to willi2793)hi,
if just a string, you can use the param of showmodal, then use it on onload of modalpanel.
if a object complicate, i think it is better to retrieve the object when click on row, then reRender the modalpanel before open it.
liu -
2. Re: Parameter to modalPanel
willi2793 Nov 10, 2008 3:53 AM (in response to willi2793)Thanks for the answer. But I still don't get it. Probably it's because my JavaScript-Knowledge is not really good. But how can I use it with onload? And when/how do I rerender the ModalPanel when I'm already in it?
The Parametrs are just 3 Strings. -
3. Re: Parameter to modalPanel
liuliu Nov 10, 2008 5:19 AM (in response to willi2793)i think something like this,
Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});
<rich:modalPanel id="mp" onshow="alert(event.parameters.param1)"> <f:facet name="header"> <h:outputText value="Modal Panel"/> </f:facet> <f:facet name="controls"> <h:graphicImage value="/pages/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" /> </f:facet> <h:graphicImage value="/pages/california_large.png"/> </rich:modalPanel>
-
4. Re: Parameter to modalPanel
ilya_shaikovsky Nov 10, 2008 5:21 AM (in response to willi2793)Please check out current richface-demo sample code. And open dataTable example. There is a new tab which modal panel usage in order to get details/ confirm row deletion.
-
5. Re: Parameter to modalPanel
liuliu Nov 10, 2008 8:16 AM (in response to willi2793)I can't find the sample code here.
http://anonsvn.jboss.org/repos/richfaces/tags/3.2.2.GA/samples/
Or I missed the url? -
6. Re: Parameter to modalPanel
ilya_shaikovsky Nov 10, 2008 8:52 AM (in response to willi2793)check code from trunk. in samples folder - richfaces-demo sample.
-
7. Re: Parameter to modalPanel
willi2793 Nov 10, 2008 9:36 AM (in response to willi2793)Thanks for the help.
With your suggestion I found the livedemo of the scrollable Datatable and this gives me the correct hint. It's working now. -
8. Re: Parameter to modalPanel
liuliu Nov 10, 2008 11:36 AM (in response to willi2793)
thank you very much.
i have one more question. I can connect repository of richfaces with firefox, but when i use a svnclient(TortoiseSVN), there is always timeout to connect the server. We have a firewall, Is there something special to configure?
thanks in advance.
liu -
9. Re: Parameter to modalPanel
willi2793 Nov 10, 2008 11:52 AM (in response to willi2793)Do you have all necessary ports open on the Firewall?
-
10. Re: Parameter to modalPanel
nbelaevski Nov 10, 2008 9:24 PM (in response to willi2793)Hi,
Try to change HTTP <=> HTTPS, that helped me once -
11. Re: Parameter to modalPanel
agrimm Mar 12, 2009 9:21 AM (in response to willi2793)Hi,
thanks for the showing how it works. Maybe it would be a good idea up extend the FAQ with the usage of the params.
You can find the FAQ here:
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/faq/faq.html#d0e378
Many thanks tought.