-
1. Re: Modal Panel trouble on upgrade
carlhowarth Oct 14, 2008 10:36 AM (in response to carlhowarth)Sorry, I actually upgraded from 3.2.0.SR1, which was working correctly.
-
2. Re: Modal Panel trouble on upgrade
carlhowarth Oct 15, 2008 3:35 AM (in response to carlhowarth)I don't think I made that last post very clear - I still do have the trouble in my first post; can any one help at all please?
-
3. Re: Modal Panel trouble on upgrade
nbelaevski Oct 15, 2008 5:05 AM (in response to carlhowarth)As I can see from the code showWhenRendered is not bound to model bean, but simply "true". Have you really meant rendered property?
-
4. Re: Modal Panel trouble on upgrade
carlhowarth Oct 15, 2008 5:16 AM (in response to carlhowarth)Hi there,
You're right, apologies, I did mean that I am changing the 'rendered' property. To elaborate:
The 'rendered' property is bound to a boolean (whose state is saved using t:savestate) on my request-scoped backing bean. Both of the action listeners on my command links perform an action on the backing bean, but ultimately set the 'rendered' boolean to false. As I have set the showWhenRendered property to true and rerendered the surrounding panel I expect the modal panel to then be hidden, which was the behaviour I got with 3.2.0.SR1... now I am simply presented with a completely blank page.
I am using MyFaces 1.2.4 and Tomahawk 1.1.7 and running in Tomcat 6.0.14 -
5. Re: Modal Panel trouble on upgrade
carlhowarth Oct 15, 2008 8:54 AM (in response to carlhowarth)I suspect I may be able to get around this problem using the advice in here (the only reason I wouldn't want to close the form at the moment is if something went wrong in the processing):
http://www.jboss.org/community/docs/DOC-11435
...however the approach I am currently using surely should still work? If anybody has any ideas why it is no longer working please do let me know - should this be a bug perhaps? -
6. Re: Modal Panel trouble on upgrade
coralfe Oct 15, 2008 11:10 AM (in response to carlhowarth)There does appear to be a problem.
My validation failures are no longer keeping modalPanels open. When I roll the jars back from 3.2.2 to 3.2.1 they work again.
Javascript:=function modelClose(severity , panelToClose){ if(severity != 2) { alert('hiding'); Richfaces.hideModalPanel(panelToClose); } };
xhtml:-<a4j:commandButton value="#{messages['crud.button.update']}" action="#{crudBean.saveRow}" oncomplete="modelClose('#facesContext.maximumSeverity.ordinal}' , '#{beanName}_ModalPanel');" reRender="addSection , #{beanName}_addEditGrid"/>
-
7. Re: Modal Panel trouble on upgrade
coralfe Oct 16, 2008 4:51 AM (in response to carlhowarth)It appears that the upgrade has affected what gets rerendered. Adding limitToList="true" to the a4j:commandButton fixed this for me
-
8. Re: Modal Panel trouble on upgrade
carlhowarth Oct 16, 2008 5:06 AM (in response to carlhowarth)Thanks for that but unfortunately it didn't change the behaviour at all when I added limitToList to the commandlinks in my modalpanel. I've yet to try the alternative approach I mentioned above.
-
9. Re: Modal Panel trouble on upgrade
nbelaevski Oct 16, 2008 5:09 AM (in response to carlhowarth)Do you use a4j:include? It's being updated every ajax request since 3.2.2.GA thus causing regression issues: https://jira.jboss.org/jira/browse/RF-4553.
-
10. Re: Modal Panel trouble on upgrade
carlhowarth Oct 16, 2008 5:13 AM (in response to carlhowarth)No I don't use a4j:include.
If it helps any, I place my panel just after the <t:documentBody> and just before the <h:form>
Thanks, Carl