tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Chiappone <chiapp...@gmail.com>
Subject Help with @For in a Form
Date Thu, 02 Feb 2006 16:03:58 GMT
I am trying to do something I haven't done yet using tapestry.  I have
a @For component that is in a form with quite a few input fields. 
Here is the page.html so you can see what I'm trying to do:

	 <form jwcid="editCase@Form" listener="listener:editCaseListener">
			 <tr jwcid="@For" source="ognl:processList" value="ognl:process"
index="ognl:index" element="tr">
			    <span jwcid="@If" condition="ognl:process != null">
			 	<td class="tableinfo" style="font-weight: bold;">
			 		<span jwcid="@If" condition="ognl:process.trProcessType != null">
			 			<span jwcid="@Insert" value="ognl:process.trProcessType.processName"/>
			 		</span>
			 		<span jwcid="@Else">
			 			<span jwcid="@Insert" value="ognl:processName">ProcessName</span>
			 		</span>
			 	</td>
			 	<td class="tableinfo">
			 		<span jwcid="statusSelections" />
			 	</td>
			 	<td class="tableinfo">
			 		<span jwcid="scheduled@TextField" value="ognl:process.scheduled"/>
			 	</td>
			 	<td class="tableinfo">
			 		<span jwcid="completed@TextField" value="ognl:process.completed"/>
			 	</td>
			 	<td class="tableinfo">
					<textarea jwcid="notes@TextArea" value="ognl:process.notes"
cols="60" rows="2">
					</textarea>
			 	</td>
			 	<td class="tableinfo">
					<textarea jwcid="inotes@TextArea"
value="ognl:process.internalnotes" cols="60" rows="2">
					</textarea>
			 	</td>
			 	</span>
			 </tr>
			 <tr align="center">
             	<td class="tableFooter" colspan="6"><input
jwcid="@Submit" name="Submit" label="message:submit"/></td>
             </tr>
			 </form>


I'm not quite sure how to know which field is which when I submit the
form in order to save the correct objects.  Does anyone have any
pointers on what my editCaseListener should look like?  Thanks.

--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message