A lot of people keep asking that. In the meantime...
// From
http://article.gmane.org/gmane.comp.java.tapestry.user/54606/match=hidden+fields
package jumpstart.web.components;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.corelib.base.AbstractTextField;
public class Hidden extends AbstractTextField {
@Override
protected void writeFieldTag(MarkupWriter writer, String value) {
writer.element("input", "type", "hidden", "id", getClientId(),
"name", getClientId(), "value", value);
writer.end();
}
}
Cheers,
Geoff
On 17/12/2008, at 8:43 PM, mraible wrote:
Thanks - that worked great. I'm assuming <t:hidden> is a custom
component?
Are there any plans to add hidden field support to Tapestry 5?
Thanks,
Matt
Geoff Callender-2 wrote:
Try
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/morecontroledit2/1
On 17/12/2008, at 6:48 PM, mraible wrote:
luther.baker wrote:
You can also add parameters to the t:beaneditform.
something like ...
<t:beaneditform ... add="cancel,delete">
<t:parameter name="cancel">
<input type="submit" name="cancel" value="Cancel">
</t:parameter>
<t:parameter name="delete">
<input type="submit" name="delete" value="Delete">
</t:parameter>
</t:beaneditform>
or
<t:beaneditform ... add="both">
<t:parameter name="both">
<t:pagelink page="cancelPage">Cancel</t:pagelink>
<t:actionlink t:id="delete">Delete</t:actionlink>
</t:parameter>
</t:beaneditform>
Generally, you can put most anything you'd like within the
t:parameter
tags.
-Luther
Marcelo Lotif-2 wrote:
You can use the BeanEditor component and wrap it with a form. At
the
bottom,
you can add as many submit buttons as you want.
I heard somewhere in this list that the beaneditform component is
nothing
more than this.
On Mon, Dec 15, 2008 at 2:19 PM, mraible <m...@raibledesigns.com>
wrote:
Is it possible to add Delete and Cancel buttons to the
<t:beaneditform>
component? If so, how?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/-T5--Is-is-possible-to-add-Delete-and-Cancel-buttons-to-BeanEditForm-Component--tp21017894p21017894.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
--
Atenciosamente,
Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do Estado do Ceará
(85) 3421-5910
This works - thanks. Is it possible to add them so they're on the
same row
as the submit button? Or can I override the submit button's
rendering?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/-T5--Is-is-possible-to-add-Delete-and-Cancel-buttons-to-BeanEditForm-Component--tp21017894p21048662.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
--
View this message in context:
http://www.nabble.com/-T5--Is-is-possible-to-add-Delete-and-Cancel-buttons-to-BeanEditForm-Component--tp21017894p21049995.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org