ajax4jsf
  1. ajax4jsf
  2. AJAX4JSF-39

PROBLEM WITH AJAX4JSF AND TOMAHAWK ALIASBEAN

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      39

      Description

      There are problems using ajax4jsf with tomahawk 1.1.4 and aliasBean.

      When I use a a4j:region and a4j:support in the included jsp,
      during "processValidators" phase, system seems to jump validation phase (it
      does not execute "getViewRoot" and does not set values in binded values).
      The problem was present when the component parent was AliasBean object.

      So, by now, I bypassed the problem putting a4j:region outside the aliasBean
      instruction.

      WORK
      MAINFILE
      <a4j:region id="region" renderRegionOnly="false">
      <t:aliasBean id="stikz" alias="#

      {pc_SubjectsAlias}" value="#{pc_Subjects}">
      <jsp:directive.include file="../xxx.jsp" />
      </t:aliasBean>
      </a4j:region>

      INCLUDED FILE
      <h:inputText styleClass="textInput" id="txtInsABI" size="5" value="# {pc_SubjectsAlias.data}" maxlength="5" readonly="#{! pc_SubjectsAlias.areFieldsUpdatable}">
      <a4j:support action="#{pc_SubjectsAlias.handle}" event="onchange"
      reRender="txtInsABI" ignoreDupResponses="true" />
      </h:inputText>



      NOT WORK
      MAINFILE
      <t:aliasBean id="stikz" alias="#{pc_SubjectsAlias}

      " value="#

      {pc_Subjects}

      ">
      <jsp:directive.include file="../xxx.jsp" />
      </t:aliasBean>

      INCLUDED FILE
      <a4j:region id="region" renderRegionOnly="false">
      <h:inputText styleClass="textInput" id="txtInsABI" size="5" value="#

      {pc_SubjectsAlias.data}

      " maxlength="5" readonly="#

      {! pc_SubjectsAlias.areFieldsUpdatable}

      ">
      <a4j:support action="#

      {pc_SubjectsAlias.handle}

      " event="onchange"
      reRender="txtInsABI" ignoreDupResponses="true" />
      </h:inputText>
      </a4j:region>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            ajax4jsf-issues
            Reporter:
            ted74
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: