[JBoss JIRA] Created: (RF-6039) Rerender is SubView Blind
by Francisco Jose Peredo Noguez (JIRA)
Rerender is SubView Blind
-------------------------
Key: RF-6039
URL: https://jira.jboss.org/jira/browse/RF-6039
Project: RichFaces
Issue Type: Bug
Reporter: Francisco Jose Peredo Noguez
rerender is subView blind, lets say we have 2 subview
<f:subview id="idSubview1">
<a:aRichControl="idOfRichControl">
<a:commandButton id="commandButton" reRender = "idOfRichControl">
</f:subview id="someSubview1">
<f:subview id="idSubview2">
<a:aRichControlid="idOfRichControl">
<a:commandButton id="commandButton" reRender = "idOfRichControl">
</f:subview id="someSubview1">
Since we are using subview, it does not matter that the id of the aRichControl inside each of the subview is the same, because the id of the subview is prefixed on runtime, so the ids of the two aRichControl end up being idSubview1:idOfRichControl and idSubview2:idOfRichControl.
But the problem is that reRender is subView blind, so, idSubview2.commandButton will reRender the first idSubview1:idOfRichControl instead of idSubview2:idOfRichControl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[JBoss JIRA] Created: (RF-7984) I would be nice to have the BaseXML redirecting-code in a util-class
by Andreas Höhmann (JIRA)
I would be nice to have the BaseXML redirecting-code in a util-class
--------------------------------------------------------------------
Key: RF-7984
URL: https://jira.jboss.org/jira/browse/RF-7984
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.2.GA
Reporter: Andreas Höhmann
Priority: Minor
I wrote a special spring security entry point to handle missing authentication *after* a a4j-request:
/**
* {@inheritDoc}
*/
@Override
protected void sendRedirect(final HttpServletRequest theRequest, final HttpServletResponse theResponse,
final String theUrl) throws IOException {
if (!isAjaxRequest(theRequest)) {
LOG.debug("normal redirect to " + theUrl);
super.sendRedirect(theRequest, theResponse, theUrl);
} else {
LOG.debug("ajax redirect to " + theUrl);
final FilterServletResponseWrapper servletResponseWrapper = new FilterServletResponseWrapper(theResponse);
final Writer output = resetResponse(theResponse, servletResponseWrapper, "redirect");
theResponse.setHeader(AjaxContainerRenderer.AJAX_LOCATION_HEADER, theUrl);
// For buggy XmlHttpRequest realisations repeat headers in
// <meta>
output.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head>" + "<meta name=\""
+ AjaxContainerRenderer.AJAX_FLAG_HEADER + "\" content=\"redirect\" />" + "<meta name=\""
+ AjaxContainerRenderer.AJAX_LOCATION_HEADER + "\" content=\"" + theUrl + "\" />" + "</head></html>");
output.flush();
theResponse.flushBuffer();
}
}
Currently i'm must copy the redirecting-code from org.ajax4jsf.webapp.BaseXMLFilter to reuse it.
It would be nice to have a "A4JResponseUtils" with this methods:
- boolean isAjaxRequest(final ServletRequest request)
- void sendRedirect(final HttpServletRequest theRequest, final HttpServletResponse theResponse, final String theUrl)
The advantage of such a utils-class would be a always compatibly thirdparty code (integration code), if the redirecting-code changes in a4j my code should still work :D
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months