fixed class cast exception. fixed wicket:id error.