[ http://issues.apache.org/struts/browse/SHALE-68?page=all ]
Craig McClanahan moved STR-2833 to SHALE-68: -------------------------------------------- Project: Shale (was: Struts Action 1) Key: SHALE-68 (was: STR-2833) Component: (was: Shale) Version: (was: Nightly Build) Assign To: (was: Struts Developer Mailing List) > ValidatorCommandRenderer breaks MyFaces dummy form. > --------------------------------------------------- > > Key: SHALE-68 > URL: http://issues.apache.org/struts/browse/SHALE-68 > Project: Shale > Type: Bug > Environment: Operating System: Windows XP > Platform: PC > Reporter: Simon Matic Langford > > I have a webapp using shale over myfaces, and the front page is a menu, using > jscookmenu. On an older nightly build all was fine, but when I took build > 20060408 of shale core, the menu links stopped working. I traced this back to > the ValidatorCommandRenderer creating a new ResponseWriter: > ResponseWriter buffResponsewriter = context.getRenderKit() > .createResponseWriter(writer, null, > hijackedWriter.getCharacterEncoding()); > This means that when HtmlJSCookMenuRenderer calls setWriteDummyForm(true) on > the > writer, the value is not propagated to the main writer for the view and so the > dummy form is no longer output. The source for the page is: > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > <f:loadBundle var="messages" basename="messages"/> > <f:view> > <html> > <head> > <title> > <h:outputText value="#{messages['menu.title']}"/> > </title> > </head> > <body> > <t:jscookMenu layout="hbr" theme="ThemeOffice"> > <t:navigationMenuItem itemLabel="Project"> > <t:navigationMenuItem itemLabel="#{messages['menu.newProject']}" > action="newProject"/> > <t:navigationMenuItem itemLabel="Select..." action="openProject"/> > <t:navigationMenuItem itemLabel="Close" action="closeProject"/> > </t:navigationMenuItem> > <t:navigationMenuItem itemLabel="Data"> > <t:navigationMenuItem itemLabel="Assignment" > action="dataAssignment"/> > </t:navigationMenuItem> > <t:navigationMenuItem itemLabel="Help"> > <t:navigationMenuItem itemLabel="Contents" action="helpContents"/> > <t:navigationMenuItem itemLabel="Getting Started" > action="helpGettingStarted"/> > <t:navigationMenuItem itemLabel="About" action="helpAbout"/> > </t:navigationMenuItem> > </t:jscookMenu> > </body> > </html> > </f:view> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]