Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1478

Programmatic added ajax not work.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.7
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:
      tomcat 5.5, myfaces 1.15

      Description

      I am using composed component in Java. I work with myfaces input components and tomahawk calendar component. At all times I use getchildren(inputcomponent).add(htmlajaxsupport). It works on all and on calendar in tomahawk version 1.1.6 too. But from 1.1.7 it fails.

      It fails only with click on action on page which result is the same page.

      javax.faces.el.EvaluationException: AjaxUpdate component not found for id: :frm:zdobd_od_epo:zdobd_od_ajax
      at org.ajax4jsf.framework.ajax.EventValueBinding.getComponent(EventValueBinding.java:108)
      at org.ajax4jsf.framework.ajax.EventValueBinding.getValue(EventValueBinding.java:91)
      at javax.faces.component.html._ComponentUtils.getStringValue(_ComponentUtils.java:36)
      at javax.faces.component.html.HtmlInputText.getOnchange(HtmlInputText.java:170)
      at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.copyHtmlInputTextAttributes(RendererUtils.java:
      728)
      at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.renderPopup(HtmlCalendarRenderer.java:184)
      at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.encodeEnd(HtmlCalendarRenderer.java:148)

      By quickly view in rendering calendar was added getchildren().removeAll .... may be this is causation?
      With debug it looks like ajax support not in tree in restore phase.

      Thanks for any work info or idea.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gb Georg Black
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: