1 Reply Latest reply on Jun 7, 2007 2:40 PM by koenhandekyn

    row input field "not posted"? when submitted from within a m

    koenhandekyn

      in the first code snippet below the input variable (marked in bold) is not assigned or posted when comming from within a (rich:)modelPanel. [ snippet 1 ]

      when posted directly from within the column the input variable is assigned well. [ snippet 2 ]

      thanx for helping me understand.

      snippet 1 : [ doesn't work ]

      <rich:column>

      <rich:modalPanel id="modelPanel" minHeight="200"
      minWidth="450" height="200" width="500"
      zindex="2000">
      <f:facet name="header">
      <h:outputText value="Approve Invoice"/>
      </f:facet>
      <f:facet name="controls">
      <h:graphicImage
      value="/images/modal/close.png"
      style="cursor:pointer"
      onclick="Richfaces.hideModalPanel('mp')"/>
      </f:facet>

      <h:inputText
      value="#{task.variables['invoice'].approvedBy}"
      style="width: 100px">
      </h:inputText>

      <s:button action="#{invoiceApproval.approve}"
      taskInstance="#{task}" value="Approve"/>

      </rich:modalPanel> <a
      href="javascript:Richfaces.showModalPanel('modelPanel',{width:450, top:200})">
      approve

      </rich:column>


      snippet 2 : [ works well ]

      <rich:column>

      <h:inputText
      value="#{task.variables['invoice'].approvedBy}"
      style="width: 100px">
      </h:inputText>

      <s:button action="#{invoiceApproval.approve}"
      taskInstance="#{task}" value="Approve"/>

      </rich:column>

        • 1. Re: row input field
          koenhandekyn

          there is also a warning :

          There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only.

          20:36:00,412 WARN [HtmlRendererUtils] There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only. Component : {Component-Path
          : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /tasks.xhtml][Class: org.richfaces.component.html.HtmlPanel,Id: _id58][Class: javax.faces.component.html.HtmlForm,Id: InvoiceApproveTaskInsta
          nceListForm][Class: org.richfaces.component.html.HtmlDataTable,Id: _id62][Class: org.richfaces.component.html.HtmlColumn,Id: _id75][Class: org.richfaces.component.html.HtmlModalPanel,Id: modelPanel][C
          lass: javax.faces.component.html.HtmlInputText,Id: _id78]}

          anybody that understands this and knows how to deal with this?