click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <>
Subject Re: how to not render the label <td> of some field
Date Wed, 05 Nov 2008 16:27:12 GMT
Hi Ricardo,

As this is a rendering (layout) issue isn't it possible to solve with 
a composite control instead:

public class CoolComposite extends AbstractContainer {

   public CoolComposite(Field field, Submit submit) {

I've left most of the implementation out but hopefully the constructor 
shows the general idea.

Form and FieldSet won't render the <td> since CoolComposite is not a 

Will this work in your case?

kind regards


Ricardo Lecheta wrote:
> Hi all,
> I need to show some button in the side of the textfield, not under the form
> how Click does.
> So I created some custom Submit that doesn´t extend Button, so now Click
> will add it as a simple field in the form.
> But now I need to show this button in the side of some textfield, and I
> don´t want to create the column of the label.
> I did some very simple implementation, so in the Field class I added the
> method "setShowLabelColumn(false)"...
> if showLabelCoumn is false, the Form and FieldSet don´t create the <td>
> column of the label....
> not sure If I´m clear :-) anyone thinks that this can be useful for other
> projects?
> if yes, I could send a patch with my implementation.. it will not impact any
> current application.
> regards,
> Ricardo

View raw message