Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-851

no value update on textbox in popup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
    • Environment:

      Firefox 10.0

      Description

      There is a value update bug when using textbox (or other input elements) in a popup component.

      When a textbox is used inside a popup, the input text of the textbox is not propagated to the
      server when the user edit the text an than directly close the popup by clicking anywhere
      outside the popup area. It seams that no onChange events is fired.

      The following example zul file could be used to reproduce the bug:

      text.zul
      <zk xmlns="http://www.zkoss.org/2005/zul" xmlns:n="http://www.zkoss.org/2005/zk/native">
      	<window title="Hello World!!" border="normal" width="100%">
      	
      		<button label="step 1: open Popup" popup="popup"/>
      		<n:br/>
      
      		<button label="step 4: display value">
      			<attribute name="onClick">
      				alert(input.getValue());
      			</attribute>
      		</button>
      		
      		<popup id="popup">
      			<label value="step 2: edit text"/>
      			<n:br/>
      			<textbox id="input" value="abc"/>
      			<n:br/>
      			<label value="step 3: close popup by clicking outside the popup area"/>
      		</popup>
      		
      	</window>
      </zk>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benbai benbai
              Reporter:
              ofeus ofeus
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: