Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty
6.1.6 run from inside Eclipse. Could you elaborate on your environment?
Also give removing and reinstalling all libs a try and make sure that
there aren't multiple versions of the same lib in your classpath.
Uli
Am 29.04.2009 08:56 schrieb zack1403:
Alright this is the simplest setup I could do. This is way simpler than even
the example thats in the nightly docs. I am getting the same error. If
someone could please help me out as to what I am missing here I would be
eternally grateful. This is the complete source, there is no other source
involved in this except what I am pasting.
Tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<t:form>
<t:ajaxformloop source="strings" value="currentString">
<t:textfield t:id="thefield" value="currentString"/>
<t:removeRowLink>Bye!</t:removeRowLink>
</t:ajaxformloop>
</t:form>
</html>
Page:
import java.util.ArrayList;
import java.util.List;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.TextField;
public class Test {
@Property
private List<String> strings;
@Property
private String currentString;
@Component
private TextField theField;
void onActivate() {
strings = new ArrayList<String>();
strings.add("Hello");
strings.add("Heres a tester");
}
String onAddRow() {
return "Added!";
}
void onRemoveRow(String toRemove) {
strings.remove(toRemove);
}
}
Sorry to be posting so much, I've just been pulling out my hair on this and
(as I'm sure you all understand) we have a very tight deadline to meet.
Thank you all again for all the help!
Zack
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org