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) {
    add(field);
    add(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 field.

Will this work in your case?

kind regards

bob


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


Reply via email to