-
1. Re: rich:modalPanel+Rich:effect
nbelaevski Feb 20, 2009 1:13 PM (in response to shiocaltz)Hello,
Compare the code you are using:<rich:effect event="onclick" for="modalPanelCDiv" type="BlindUp" params="duration:0.8" />
<rich:effect event="onclick" targetId="modalPanel" type="BlindUp" params="duration:0.8" />
. I think that's the reason it's not working for the second case. -
2. Re: rich:modalPanel+Rich:effect
shiocaltz Feb 24, 2009 4:47 AM (in response to shiocaltz)thanks for answering...but i beg to differ:
for="modalPanelCDiv"
targets the modalPanel's inner div who's id ends with "CDiv". The CDiv suffix is added by richfaces renderer as this div is a framework's modalPanel inner element, not my own. This inner div should never be accessed directly by a developer as it is a subject to change to your likeing. The developer should not even know it exists...
where as:
targetId="modalPanel"
is the id of the modalPanel given by the developer and this should be the right way to do it. The renderer can then redirect the effect to be applied on the "modalPanelCDiv" or on whatever component's div to make it work...
i should never hack into your code to see what elements/id's you generate or what javascript is running to make components on my page work... one good reason is because beeing your components you can change them anytime you like and break my pages...
thanks -
3. Re: rich:modalPanel+Rich:effect
nbelaevski Feb 24, 2009 11:33 AM (in response to shiocaltz)Yes, that's true. But the renderer is not able to decide what HTML element you are going to target: compare make the whole panel content fade in or just apply blind down to the content element.
Please feel free to comment the issue: https://jira.jboss.org/jira/browse/RF-6421