1 2 Previous Next 19 Replies Latest reply on Jul 14, 2008 10:59 PM by jpount Go to original post
      • 15. Re: reRender from modal panel
        ilya_shaikovsky

        lucab, could you please send me war file directly? I can't reproduce this and I'm completelly lost in this topic because too many guys screaming about different problems and solutions here.

        And the others who believes that tricks do the work better than rules. Modal Panel should be Never used inside the outer form if some command controls placed inside. If you tell that modal can't be shown without outer form - fine, Let's try to solve this problem and not create the other.

        There is no place for tricks and magic passes in JSF. All the problems has its explanations and solutions.

        • 16. Re: reRender from modal panel
          ilya_shaikovsky

          sorry, forgot to close the "b" tag ;)

          • 17. Re: reRender from modal panel
            eklam

            I could solve it using an a4j:form for the components and another a4j:form for the modalPanel, and reRendering the component I want with an a4j:support for="form::xxx:yyy"...

            • 18. Re: reRender from modal panel
              lucab

              blame on me. I managed to fix the issue. My conclusions are:
              - that was not an RF problem
              - in order to make reRendering work we don't need to place modal panels inside ajax regions nor in a4j:forms (or at least it is optional)
              - we don't need any tricky workarounds, just use normal a4j:support and reRender with normal id-naming syntax (as usual).
              - it is not needed to fully qualify the id as someone (and myself in first place) suggested.

              What was the problem and how I solved it:
              - the problem was with my code not RF code, the method supposed to update the view didn't work as expected under every use-case
              - so the fix is simple: just follow the documents!!

              What i can suggest to people who still got problems:
              - first make sure you read carefully the documents and understand the examples
              - if your View-code looks really like the examples in the documents then
              you have probably a problem with your own code (as in my case)
              - solving the problem now is not a matter of doing some strange mix of RF tags but to discover what is the piece of code is not working as expected. Search first in action-methods supposed to update the model/view

              that is not 'my recipe', is what we can find in the documents. I'm confident
              i was not the only one to experience this issue due to oversights in my own code. I found unit testing really helpfull.

              Thanks everybody for the help, I hope we will be of help to each other also in the future as we were in this occasion

              Thanks to the staff for the hard work

              regards :)

              • 19. Re: reRender from modal panel

                Luncab,

                I think I need to do something very similar to you but have so far not been able to get it exactly right - still not re-rendering a component in the calling/parent window.

                I don't have a very complicated screen with overlapping forms etc but still no joy. Would it be possible to outline your misunderstandings and perhaps supply an example of the code you finally got working so save myself and potentially lot of others some pain.

                Thanks,
                John

                1 2 Previous Next