-Igor
igor,I work with Netbeans 5.0 bundled with tomcat 5.5.9so i have uploaded the tinyest netbeans project sample as i copied it code for code in the ajax example
My headache is that most of my applications involving _javascript_ like dojo-contribs works fine under wicket 1.1.1.but when i switch development to wicket 1.2 (excluding all 1.1.1 related contribs) i still get the browser problem.When i deploy the example WAR, the Ajax runs fine but when i deploy my own WAR from Netbeans of my application, the browser gives _javascript_ errors and Even when i use PackageResourceReference object generally to reference _javascript_ or image, i dont get that reference item working inside the browser even though wicket never throws any exception.could it be netbeans?
On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:its been tested on IE6 and worked fine. so must be something weird. can you package a distilled example into a quickstart project so i can start it locally and take a look?
-Igor
On 3/16/06, Ayodeji Aladejebi <[EMAIL PROTECTED] > wrote:well IE6 on Windows 2003 running tomcat 5.5.9
On 3/15/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:what browser/version do you use?
-Igor
On 3/15/06, Ayodeji Aladejebi <[EMAIL PROTECTED] > wrote:i get your point right igor but my headache is is even more of the fact that i always get thisError : Object Expectedfrom browser _javascript_ console even when i reused the example source letter for letter. This is error is common not just with AJAX but also with most other wicket extensions that use _javascript_sOn 3/15/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:you cannot add a new component via an ajax call because wicket will not know where to put its markup. via ajax you can only replace components that have been previously renderered.
so in your case if you wanted to replace the Label you would do something like this
final Label label;
add(label=new Label("a", "A"));
label.setOutputMarkupId (true); <=== this is important if you want to rerender this component via ajax
add(new AjaxLink("link") {
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
Label b = new Label("a","B");label.getparent().replace(b);
ajaxRequestTarget.addComponent (label);
}
});
-Igor
On 3/15/06, Ayodeji Aladejebi <[EMAIL PROTECTED] > wrote:
Please someone should tell me why i can deploy the Ajax examples in Wicket-examples and it runs fine in tomcat and when i repeat the same approach in my own application, the browser gives me error?I have been fighting with these _javascript_ problem for some time but no much progressplease please guys what can be wrong....isnt it as basic asadd(new Label("a", "A"));
add(new AjaxLink("link") {
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
Label b = new Label("a","B");
ajaxRequestTarget.addComponent (b);
}
});is there some configuration i am not putting in place?