Hello, Wicket users,
Please, help me to find the difference between theese two
ComponentPropertyModel's (inside some Panel):
add(new Label("currencyPayed", new
ComponentPropertyModel<String>("currentPriceSumCurrency")));
and this (inside some border):
border.add(new Label("currencyPayed", new
ComponentPropertyModel<String>("currentPriceSumCurrency")));
I ask because the second one brings me to this exception:
WicketMessage: Exception in rendering component: [Component id = currencyPayed]
Root cause:
java.lang.NullPointerException
at
org.apache.wicket.model.ComponentPropertyModel$AssignmentWrapper.getObject(ComponentPropertyModel.java:105)
at org.apache.wicket.Component.getDefaultModelObject(Component.java:1627)
at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1649)
at org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
at org.apache.wicket.Component.render(Component.java:2421)
at
org.apache.wicket.markup.html.border.Border$BorderBodyContainer.resolve(Border.java:398)
Thank you!
-- Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]