[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
14 years, 7 months
[JBoss JIRA] Created: (RF-5635) extendedDataTable: css classes defined in "columnClasses" attribute don't influence on columns width.
by Mikhail Vitenkov (JIRA)
extendedDataTable: css classes defined in "columnClasses" attribute don't influence on columns width.
-----------------------------------------------------------------------------------------------------
Key: RF-5635
URL: https://jira.jboss.org/jira/browse/RF-5635
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: IE6, IE7, FF 3.1.3, Safari 3.1, Opera 9.62(3.3.0.CR3)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
Priority: Minor
#1. Define css classes for component columns:
.leftColumn {
width: 50px;
height: 100%;
background-color: red;
}
.midColumn {
width: 250px;
height: 100%;
background-color: green;
}
.rightColumn {
width: 400px;
height: 100%;
background-color: yellow;
}
#2. Add extendedDataTable on the page, following way, as attachment.
#3. Set columnClasses="leftColumn, midColumn, rightColumn"(width attribute for component and it's columns shouldn't be defined)
#4. Navigate to page and verify extendedDataTable columns width.
Actual behavior:
Css classes(leftColumn, midColumn...) present in page code(see in firebug), but real width of columns remains the same as before columnClasses attribute using.
--
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
14 years, 7 months