Martijn Dashorst wrote:
>
> I think you need to resend again, this time escaping the markup. It
> seems like nabble have changed something in their interface, as this
> is a recurring theme lately.
>
No problem.
Home:
<html>
<body>
</body>
</html>
public class Home extends WebPage {
public Home() {
List<ITab> tabs = new ArrayList<ITab>();
tabs.add(new AbstractTab(new Model("tab1")) {
public Panel getPanel(String panelId) {
return new MyPanel(panelId);
}
});
TabbedPanel tabPanel = new TabbedPanel("tabPanel", tabs);
add(tabPanel);
}
}
MyPanel:
<wicket:panel>
<iframe wicket:id="iframe"/>
</wicket:panel>
public class MyPanel extends Panel {
public MyPanel(String id) {
super(id);
WebComponent iframe = new WebComponent("iframe");
iframe.add(new AttributeModifier("src", true, new
AbstractReadOnlyModel()
{
public Object getObject() {
return urlFor(FramedPage.class, null);
}
}));
add(iframe);
}
}
FramedPage:
<html>
<body>
<form wicket:id="form">
<input type="text" wicket:id="f1">
<input type="text" wicket:id="f2">
</form>
</body>
</html>
public class FramedPage extends WebPage {
private String foo = "";
private TextField f2;
public FramedPage() {
Form form = new Form("form");
add(form);
TextField f1 = new TextField("f1", new PropertyModel(this,
"foo"));
f2 = new TextField("f2",
new PropertyModel(this,
"capitalFoo"));
f2.setOutputMarkupId(true);
form.add(f1);
form.add(f2);
f1.add(new OnChangeAjaxBehavior() {
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(f2);
}
});
}
public String getCapitalFoo() {
return foo.toUpperCase();
}
public void setCapitalFoo(String capitalFoo) {
foo = capitalFoo.toLowerCase();
}
}
--
View this message in context:
http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12834657
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]