[richfaces-issues] [JBoss JIRA] Updated: (RF-3118) Menu: parse error in log during reRendering(IE7)
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Sun Apr 27 19:09:08 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-3118?page=all ]
Nick Belaevski updated RF-3118:
-------------------------------
Fix Version/s: 3.2.2
(was: 3.2.1)
> Menu: parse error in log during reRendering(IE7)
> ------------------------------------------------
>
> Key: RF-3118
> URL: http://jira.jboss.com/jira/browse/RF-3118
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.1
> Environment: IE 7
> seam 2.0.1
> RF 3.2.1 snapshot
> Reporter: Ilya Shaikovsky
> Assigned To: Nick Belaevski
> Fix For: 3.2.2
>
>
> Look through next code. After pressing first Item which should update binding and reRender the menuItself in the a4j log there are:
> debug[15:47:27,048]: Attempt to update part of page for Id: menu:j_id15_menu_script
> debug[15:47:27,049]: call selectSingleNode for id= menu:j_id15_menu_script
> debug[15:47:27,051]: Replace content of node by outerHTML()
> error[15:47:27,053]: Error to clear node content by innerHTML ??????????? ?????? ??????????
> debug[15:47:27,055]: search for elements by name 'script' in element script
> debug[15:47:27,056]: selectNodes found 0
> debug[15:47:27,057]: Scripts in updated part count : 0
> debug[15:47:27,058]: call selectSingleNode for id= org.ajax4jsf.oncomplete
> debug[15:47:27,059]: Update part of page for Id: menu:j_id15_menu_script successful
> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:s="http://jboss.com/products/seam/taglib"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml"
> xmlns:a4j="http://richfaces.org/a4j">
> <ui:define name="body">
> <h:form id="menu">
> <rich:toolBar>
> <rich:dropDownMenu binding="#{menucomponent.downMenu}" />
> </rich:toolBar>
> </h:form>
> <a4j:log popup="false"></a4j:log>
> </ui:define>
> </ui:composition>
> package org.domain.seamSample;
> import javax.el.MethodExpression;
> import javax.faces.context.FacesContext;
> import javax.faces.el.MethodBinding;
> import org.jboss.seam.ScopeType;
> import org.jboss.seam.annotations.Begin;
> import org.jboss.seam.annotations.Logger;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.annotations.Scope;
> import org.jboss.seam.log.Log;
> import org.richfaces.component.html.HtmlDropDownMenu;
> import org.richfaces.component.html.HtmlMenuItem;
> @Name("menucomponent")
> @Scope(ScopeType.SESSION)
> public class MenuBean {
> @Logger Log log;
>
> private HtmlDropDownMenu downMenu;
> @Begin
> public String createMenu() {
> downMenu = new HtmlDropDownMenu();
> downMenu.setValue("label");
> downMenu.setSubmitMode("ajax");
> downMenu.setId("menu");
> HtmlMenuItem menuItem = new HtmlMenuItem();
> menuItem.setValue("first item");
> menuItem.setReRender("menu, panel");
> FacesContext facesContext = FacesContext.getCurrentInstance();
> menuItem.setActionExpression(facesContext.getApplication()
> .getExpressionFactory().createMethodExpression(
> facesContext.getELContext(),
> "#{menucomponent.addItem}", String.class, new Class[0]));
> downMenu.getChildren().add(menuItem);
> return "/menu.xhtml";
> }
> public HtmlDropDownMenu getDownMenu() {
> return downMenu;
> }
> public void setDownMenu(HtmlDropDownMenu downMenu) {
> this.downMenu = downMenu;
> }
> public String addItem() {
> HtmlMenuItem menuItem = new HtmlMenuItem();
> menuItem.setValue("new item");
> menuItem.setReRender("menu");
> downMenu.getChildren().add(menuItem);
> return null;
> }
>
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list