2009年4月26日星期日

Re: [fw-mvc] Missing BelongsTo elements in Display Group

Matthew Weier O'Phinney pisze:
-- Diabl0 <zend@gazeta.ie> wrote (on Saturday, 25 April 2009, 09:26 PM +0200):   
Matthew Weier O'Phinney pisze:          and output:          _states_dg_mag_1                 _maximals-1          _states_dg_mag_2                 _maximals-2          _states_dg_mag_3                 _maximals-3            Can anyone confirm that my method of constructing form and trying to         visually group elements is correct, and problem lies in ZF?       Can you indicate what output you *would* expect, please?    Output of test code should be like (notice _minimals-x elements ):  _states_dg_mag_1         _minimals-1         _maximals-1  _states_dg_mag_2         _minimals-2         _maximals-2  _states_dg_mag_3         _minimals-3         _maximals-3   The point are missing elements. In each display group there was added two elements - _minimals-x and _maximals-x, but on output (and while traversing display group elements) there is only last added element.     
 I'm wanting to know the expected HTML output and the actual received HTML output, please.    

After source formating for easier reading:

Expected:

<dl class="zend_form"> 	<dt id="_states_dg_mag_1-label">&nbsp;</dt> 	<dd id="_states_dg_mag_1-element"> 		<fieldset id="fieldset-_states_dg_mag_1" store_id="1"> 			<legend>Wrocław</legend> 			<dl> 				<dt id="12-label"> 					<label for="_minimals-1" class="optional">Minimum</label> 				</dt> 				<dd> 					<input min="0" id="_minimals-1" name="_minimals[1]" value="" type="text"> 				</dd> 				 				<dt id="1-label"> 					<label for="_maximals-1" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-1" name="_maximals[1]" value="" type="text"> 				</dd> 				 			</dl> 		</fieldset> 	</dd> 	<dt id="_states_dg_mag_2-label">&nbsp;</dt> 	<dd id="_states_dg_mag_2-element"> 		<fieldset id="fieldset-_states_dg_mag_2" store_id="2"> 			<legend>Dublin</legend> 			<dl> 				<dt id="22-label"> 					<label for="_minimals-2" class="optional">Minimum</label> 				</dt> 				<dd> 					<input min="0" id="_minimals-2" name="_minimals[2]" value="" type="text"> 				</dd> 			 				<dt id="2-label"> 					<label for="_maximals-2" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-2" name="_maximals[2]" value="500" type="text"> 				</dd> 			</dl> 		</fieldset> 	</dd> 	<dt id="_states_dg_mag_3-label">&nbsp;</dt> 	<dd id="_states_dg_mag_3-element"> 		<fieldset id="fieldset-_states_dg_mag_3" store_id="3"> 			<legend>Cork</legend> 			<dl> 				<dt id="32-label"> 					<label for="_minimals-3" class="optional">Minimum</label> 				</dt> 				<dd> 					<input min="0" id="_minimals-3" name="_minimals[3]" value="" type="text"> 				</dd> 			 				<dt id="3-label"> 					<label for="_maximals-3" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-3" name="_maximals[3]" value="" type="text"> 				</dd> 			</dl> 		</fieldset> 	</dd> </dl>   

Actual output:

<dl class="zend_form"> 	<dt id="_states_dg_mag_1-label">&nbsp;</dt> 	<dd id="_states_dg_mag_1-element"> 		<fieldset id="fieldset-_states_dg_mag_1" store_id="1"> 			<legend>Wrocław</legend> 			<dl> 				<dt id="1-label"> 					<label for="_maximals-1" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-1" name="_maximals[1]" value="" type="text"> 				</dd> 				 			</dl> 		</fieldset> 	</dd> 	<dt id="_states_dg_mag_2-label">&nbsp;</dt> 	<dd id="_states_dg_mag_2-element"> 		<fieldset id="fieldset-_states_dg_mag_2" store_id="2"> 			<legend>Dublin</legend> 			<dl> 				<dt id="2-label"> 					<label for="_maximals-2" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-2" name="_maximals[2]" value="500" type="text"> 				</dd> 			</dl> 		</fieldset> 	</dd> 	<dt id="_states_dg_mag_3-label">&nbsp;</dt> 	<dd id="_states_dg_mag_3-element"> 		<fieldset id="fieldset-_states_dg_mag_3" store_id="3"> 			<legend>Cork</legend> 			<dl> 				<dt id="3-label"> 					<label for="_maximals-3" class="optional">Maximum</label> 				</dt> 				<dd> 					<input min="0" id="_maximals-3" name="_maximals[3]" value="" type="text"> 				</dd> 			</dl> 		</fieldset> 	</dd> </dl>  
 

没有评论: