> But , what is the "custom markup" ??
> Does that look like <wicket:MyDatePicker> ??
> And if it is , is there any implemention example about custom markup ??

No, with custom markup I meant that you can provide the markup of a
custom component - your date picker - by providing a markup file for.
E.g.

public class MyDatePicker extends Panel

  public MyDatePicker(String id) {
    add(new TextField("date", ..));
  }
...

would have

MyDatePicker.html:
<wicket:panel>
...
  <input type="text" wicket:id="date" />
...
</wicket:panel>

You would use this component (in your forms/ pages) like this:

add(new MyDatePicker("datePicker"));

and in HTML:

<span wicket:id="datePicker">[date picker will be rendered here]</span>

Something like that.


Eelco


_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to