This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
I just want to share my experience of RichFaces modal dialog support without using Spring JS. Steps to introduce such support into your program (with facelets):
I wasn't able to run your example. I've configured my application as you suggested however I'm facing same error all the time (a4j debug):
debug[12:31:48,891]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
debug[12:31:48,892]: Query preparation for form 'j_id1' requested
debug[12:31:48,893]: Append hidden control j_id1 with value [j_id1] and value attribute [j_id1]
debug[12:31:48,893]: Append hidden control javax.faces.ViewState with value [e1s1] and value attribute [e1s1]
debug[12:31:48,894]: parameter j_id1:confirm with value j_id1:confirm
debug[12:31:48,894]: Look up queue with default name
debug[12:31:48,895]: NEW AJAX REQUEST !!! with form: j_id1
debug[12:31:48,895]: Start XmlHttpRequest
debug[12:31:48,897]: Request state : 1
debug[12:31:48,898]: QueryString: AJAXREQUEST=_viewRoot&j_id1=j_id1&javax.faces.ViewState=e1s1&j_id1%3Aconfirm=j_id1%3Aconfirm&
debug[12:31:48,902]: Request state : 1
debug[12:31:48,938]: Request state : 2
debug[12:31:48,940]: Request state : 4
debug[12:31:48,940]: Request end with state 4
debug[12:31:48,941]: Header Content-Type not found, search in <meta>
debug[12:31:48,941]: Response with content-type: null
debug[12:31:48,941]: Full response content:
debug[12:31:48,942]: A4J.AJAX.processResponse: [object Object]
debug[12:31:48,942]: Request for modal dialog: /app/web/main?execution=e1s8
debug[12:31:48,943]: Have Event [object Object] with properties: target: undefined, srcElement: undefined, type: undefined
debug[12:31:48,943]: Query preparation for form '_viewRoot' requested
error[12:31:52,126]: Error in processResponse: options is null
Can you please refresh us as to why you need to go to this trouble to produce rich:modalPanel's? I have no problems raising my popups without using Spring Faces or extending ajaxhandler as per below. AFAIK, I am loading the applicable richfaces js files.
My larger concern is that the rerendering precision is not very good as it
requires one to use
with all ajaxrendered attributes set to true, which implies that all events are processed everywhere which is expensive.
Thanks a lot to Hedin for the great example. I've been using the same approach which i've found in his example SWFRichFaces.zip. Everything's been ok, until i moved to new version of RF 3.3.3.Final. Is there any solution?
After having debugged i've found that a js error is thrown avoiding dialog.js to send ajax request:
if( finishRequest )
// Get updates from server (for messages, etc.)
("_viewRoot", "modalPanel_region_form", null,
Exception looks like:
description "'submitByForm' is null or not an object"
message "'submitByForm' is null or not an object"
please help me with modalpanel....i have a page.xhtml and a a4j:commandButton and when i click show the modalpanel but when i want to close the modal panel with the function RichFaces.hideModalPanel i got an error....... my error is the follow..
not suppported the modalPanel.js.jsf please helpme