-
1. Re: effect in a table/subtable
sergeysmirnov Oct 4, 2007 5:30 PM (in response to hdmonty)There are two points here:
1. rich:effect is based on scriptacuous effects. So, you read about scriptacuous effects to understand how they work and what them can apply to.
2. scriptacuous effects are applied to the DOM elements. However, the effect does not expect that you will replace DOM element (remove old and add new one) during the manipulation with the target DOM element.
Look at your code. You direct to apply the BlindDown effect on the subtable, but at the same time, send an Ajax request and expect the subtable to be fully re-rendered. I.e. this is the situation I describe in the #2 above. So, my expectation that this will not work at all, or will work with unexpected glitches. -
2. Re: effect in a table/subtable
hdmonty Oct 4, 2007 7:02 PM (in response to hdmonty)Thank you Sergey for your answer.
This therefore mean that it doesn't have anything to do with a table or panel but, whether the complete DOM-tree already exists. If my table doesn't look simultaneously on the data of the server, the rich:effect will work. I think that I cannot give it up. Therefore I probably must live with it that the subtable simply appears after the click, without an effect. -
3. Re: effect in a table/subtable
dmitry.demyankov Oct 5, 2007 1:50 AM (in response to hdmonty)Can you make subtable hidden and then apply rich:effect to it on row click? If the element is hidden then it's in DOM tree, right?
-
4. Re: effect in a table/subtable
hdmonty Oct 5, 2007 3:24 AM (in response to hdmonty)What kind of 'hidden' do you mean?
I use the rendered-attribute<rich:subTable id="mysubtable" rendered="my condition..." value="myList..." >
Furthermore, I have to look, wether my bean has changed data - by each click.
I would prefer a solution with an event that I can handle after the DOM tree has refreshed. -
5. Re: effect in a table/subtable
dmitry.demyankov Oct 5, 2007 3:28 AM (in response to hdmonty)I mean
style="display: none;"
-
6. Re: effect in a table/subtable
dmitry.demyankov Oct 5, 2007 3:32 AM (in response to hdmonty)Maybe this will help
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090479#4090479 -
7. Re: effect in a table/subtable
damianharvey Oct 9, 2007 7:08 AM (in response to hdmonty)What I'm hearing here is that you can't use rich:effect in combination with 'rendered'. Is that correct?
Thanks,
Damian. -
8. Re: effect in a table/subtable
dmitry.demyankov Oct 9, 2007 7:19 AM (in response to hdmonty)"damianharvey" wrote:
What I'm hearing here is that you can't use rich:effect in combination with 'rendered'. Is that correct?
If you set rendered="false" then simply there's no such element on the page - so there's no element that rich:effect can be applied to..