Re: 1.5: wicketester with navomatic border: path not found.

2011-09-19 Thread cablepuff
Thanks. Hmm than what should the path be for the formTester. I know i have to add to the body for the new navomaticBorder.addToBody(loginBody); but if the path changes.. how would i get the path for the form tester to work. -- View this message in context:

1.5: wicketeser with navomatic border: path not found.

2011-09-18 Thread cablepuff
Hi iam getting error in my test case. I have the standard navomaticborder file with addToBorder(navigationBorder) and addToBorder(bodyBorder); my test contains: this.tester.startPage(LoginPage.class); final FormTester formTester = this.tester.newFormTester(loginBody:signInPanel:signInForm);

Wicket 1.4.18: Performance of unit test observation.

2011-08-20 Thread cablepuff
Hi can someone explain to me why performance of unit testing is faster using setUp and destory this way. @Before public void setup() { if (this.authenticatedWebApp == null) { this.authenticatedWebApp = new AuthenticatedTestApplication(); } if

Re: org.apache.wicket.WicketRuntimeException: No get method defined for class: class java.lang.String expression: userName;

2011-04-20 Thread cablepuff
final LoadableDetachableModelAccountCommand accountCommand = new AccountDetachableModel(userId, personId); final AccountForm form = new AccountForm(accountForm, accountCommand); My AccountCommand { private Integer userId; private Integer accountId; private String accountName;

Re: org.apache.wicket.WicketRuntimeException: No get method defined for class: class java.lang.String expression: userName;

2011-04-20 Thread cablepuff
Hi Martin, yesterday that was the domain (persistent object was called User). The command object was call Account hence AccountCommand. Anyways I solve my problem by adding a additional parameter. new DropDownChoicePerson(userChoice, new CompoundPropertyModel(selectedUser),

org.apache.wicket.WicketRuntimeException: No get method defined for class: class java.lang.String expression: userName;

2011-04-18 Thread cablepuff
Hi I have the following domain object public class User { private String email; private String firstName; private String lastName; private Account account; public String getUserName() { return this.account.getName(); } public void setUserName(String username) {

Re: wicket 1.4.12 cannot cast to org.apache.wicket.protocol.http.WebApplication

2010-10-20 Thread cablepuff
Thanks anyways, i found out my problem has nothing to do with wicket at all but rather my tomcat class loader and other related stuff. I had to move slf4j , log4j jar file out of standard webapp during deployment and put them in tomcat/lib folder. -- View this message in context:

Re: wicket 1.4.12 cannot cast to org.apache.wicket.protocol.http.WebApplication

2010-10-07 Thread cablepuff
Thanks martin: however all of them unfortuantely is at 1.4.12 wicket-ioc wicket-spring wicket wicket-auth-roles. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-4-12-cannot-cast-to-org-apache-wicket-protocol-http-WebApplication-tp2965438p2967100.html Sent

wicket 1.4.12 cannot cast to org.apache.wicket.protocol.http.WebApplication

2010-10-06 Thread cablepuff
Hi i have the following in my web.xml filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name