Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5] Customizing BeanEditForm Layout

Marcel Sammut

2008-10-29

Replies: Find Java Web Hosting

Author LoginPost Reply

I've been able to extend and customize the layout and order of a BeF using
the <parameter> element. However, when I try and customize the Submit
button, the <parameter> element doesn't seem to work. I've read/seen that
you can specify the label of the button via the submitlabel parameter of the
BeF, but I need to do more than just the label.
For example, how would I add an ActionLink component right beside the submit
button? Below is my template for the beaneditform (v5.0.15):

<t:beaneditform t:id="loginForm" t:object="loginForm"
submitlabel="message:submit" >
<t:parameter name="password">
  <label t:type="Label" for="password" style="width:110px;"></label>
  <input t:type="PasswordField" t:id="password"
t:value="loginForm.password"></input>
</t:parameter>
<t:parameter name="submit">
  <label t:type="Label" for="submit" style="display:none;"></label>
  <input t:type="Submit" value="message:submit" ></input>
  <t:actionlink t:id="switchDisplay" >${message:label-change}
Link</t:actionlink>
</t:parameter>
</t:beaneditform>

Thanks,
Marcel S.
--
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.