Hi,
I seem to be getting a javascript error whenever I try to click on a
submitLink.
For example:
The html markup I'm using is:
<form wicket:id="homepageForm" id="form1" method="post" action="">
<wicket:message key="addmoretext">add more text label</wicket:message>
</form>
Adding the component to the page is done via:
Form form = new Form("homepageForm", new
CompoundPropertyModel(homePageVO));
add(form);
SubmitLink addText = new SubmitLink("addtext", form)
{
public void onSubmit()
{
System.out.println("got to here1");
};
};
form.add(addText);
And the generated html source code when viewing the page for this is:
<form
action="adminhome?x=A8ZiD*C*VTjKiUF8oFByiiyxK2HMKQPwAlBrZQo5tS*Kl1hwQk*bMw"
wicket:id="homepageForm" id="form1" method="post"><div
style="display:none"><input type="hidden" name="form1_hf_0" id="form1_hf_0"
/>
# <wicket:message key="addmoretext">Add more text</wicket:message>
</form>
And the error I get out of firefox 2 is:
Error: ff has no properties
Source File: http://localhost:8080/thepencilroom/app/adminhome?x=mPKc0smezuM
Line: 1
and in IE i get:
Error on page,
Object required.
The same code worked fine in 1.2.5, but I can't get it to work in 1.3
Any ideas?
Cheers
Andrew
--
View this message in context:
http://www.nabble.com/Javascript-Error-using-submit-link-in-1.3-that-didn%27t-happen-in-1.2.5-tf3563824.html#a9954150
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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