> I wish that each form or form element element had a default renderer and
> would render itself without needing to be embedded in some other html file.

Yep, gotcha.

> If layout is a problem - find a solution.

It isn't a problem. It's a core assumption that Wicket works on
markup: 'enabling component-oriented, programmatic manipulation of
markup'.

Also, since you think Click answers what you are looking for, I wonder
how this is so different?

Java:
Form form = new Form();
textField = new TextField("search");
form.add(textField);
Select typeSelect = new Select("type");
typeSelect.addAll(new String[] {"ID", "Name", "Age"});
typeSelect.setValue("Name");
form.add(typeSelect);

Html:
$form.startTag()
 <b>Customer</b> ${form.fields.search}${form.fields.type}${form.fields.go}
$form.endTag()

Besides whether that's better than how Wicket does it or not, you
really are referring to those components in HTML right?

I recommended Echo (and GWT if you like) as there you work with layout
managers rather than with markup. I thought that's what you wanted
being a Swing guy. So I was surpised to learn you thought about Click
now (though there's nothing wrong with that of course).

If you mean that you prefer components to directly spit out HTML,
that's very easy with Wicket, just like:

protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
  getResponse().write("<foo><bar>udududud</bar></foo>");
}

etc. But like we stated before, this wouldn't be the recommended way
of working with Wicket. More of a break out option and optimization.

Eelco

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to