-
1. Re: Make outputPanel automatically rendered from particular components
nbelaevski Feb 18, 2010 1:55 PM (in response to ilya_shaikovsky)1 of 1 people found this helpfulHi Ilya,
It's been asked about some time ago and it's really very easy to implement:
<a4j:commandLink ...> <a4j:actionParam value="userForm" assignTo="#{eventsBean.ajaxEventName}" /> <!-- This can Facelets tag --> </a4j:commandLink>
and
<a4j:outputPanel ajaxRendered="#{eventsBean.ajaxEventName == 'userForm'}" ...> <!-- This can be Facelets tag too --> ...
-
2. Re: Make outputPanel automatically rendered from particular components
ilya_shaikovsky Feb 19, 2010 4:24 AM (in response to nbelaevski)What about containers definitions proposal.. If this sounds implementable? It would be one definition and not param for every command. Or I've missed something. -
3. Re: Make outputPanel automatically rendered from particular components
israel.bgf Feb 19, 2010 6:19 AM (in response to ilya_shaikovsky)I did really like the Ilya idea. It seens clean enough, and pretty useful for my requirements. So using the ajaxRenderedFrom, makes the ajaxRendered attribute been ignored automatically right? Would be boring to put ajaxRendered="false" and ajaxRenderedFrom="" togheter.
Nick, is it too hard to make that funcionality built-in?
Keep up the good work, RF Team.
-
4. Re: Make outputPanel automatically rendered from particular components
cassionandi Feb 19, 2010 7:23 AM (in response to ilya_shaikovsky)Ilya, that is sweet. This resolve completely our problems with modals in the current project we are working. -
5. Re: Make outputPanel automatically rendered from particular components
jbalunas Feb 22, 2010 10:07 AM (in response to nbelaevski)I do see how your example would accomplish the same behavior, but I'm also with Ilya because this would require the action param on every component that you want the behavior on.
Right now we almost universally have a "push" model for component rendering. Ajax components, or a4j:support must "push" what IDs should be rerended. We do have the outputPanel that is a universal "pull" - i.e. it will rerender on any ajax request. We do seem to be missing the declaritive "pull" that this feature would give.
Another interesting idea that was discussed some time ago was the idea of conditional rendering. i.e. automatically rerender a component if it changes, or if a component you declare changes.
Time willing I would like to review the usability of the various ways we have to declare this type of info. i.e. develop a universal approach for all components, and perhaps simplify where possible.