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

no value update on textbox in popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • 5.0.10
    • Components
    • Firefox 10.0

    • None

      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>
      

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

              Created:
              Updated:
              Resolved: