problem with a table

Hi!

I hope you can help me with this, I dont see what Im doing wrong, I have this code

[i]
class TableTeclasRapidas extends Table{
private String modelo =“”;
private Hashtable<Integer, TeclasRapidasDetalle> teclasRapidas;

    	TableTeclasRapidas(String caption){
    		super(caption);
    		this.setSelectable(true);
    		this.setWidth("250px");
    		this.addContainerProperty("tecla", Integer.class, 0);
    		this.addContainerProperty("plu", String.class, "");
    		int i =0;
    		while(i<10){
    			this.addItem(new Object[]{i,"123456"},i);
    			i++;
    		}
    	}
    	
		public String getModelo() {
			return modelo;
		}


		public void setModelo(String modelo) {
			this.modelo = modelo;
		}
    	
    	
    	public void deleteTeclasRapidas(){
    		System.out.println(this.getValue());
    	}
    	
    	public void addTeclasRapidas(int tecla, String plu){
    		
    	}
    	
    }

[/i]

When I try to use the method getValue(), this return the value selected on the table, but also this error:



com.vaadin.data.Buffered$SourceException
at com.vaadin.ui.AbstractField.setValue(AbstractField.java:517)
at com.vaadin.ui.AbstractSelect.setValue(AbstractSelect.java:665)
at com.vaadin.ui.AbstractSelect.changeVariables(AbstractSelect.java:474)
at com.vaadin.ui.Table.changeVariables(Table.java:1988)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1094)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:590)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:266)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:476)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.vaadin.data.Property$ConversionException: java.lang.NoSuchMethodException: java.util.Vector.(java.lang.String)
at com.vaadin.data.util.MethodProperty.setValue(MethodProperty.java:716)
at com.vaadin.ui.AbstractField.setValue(AbstractField.java:509)
… 24 more
Caused by: java.lang.NoSuchMethodException: java.util.Vector.(java.lang.String)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at com.vaadin.data.util.MethodProperty.setValue(MethodProperty.java:709)
… 25 more
Tecla seleccionada: 6

can some one tell me whats wriong on my class?

I don’t see any particular problem with the table class at the first look at least. Are you sure that it comes from the table and is not just conincidence? I assume that you have set setImmediate(true) for the table to get selection change events. Such an event could carry a non-immediate event that causes the problem with some other component.

Hi, well It is the table, but I think It was my bad, you see I declare the table inside a formfieldfactory, in my original bean there is a field, and I wanted to the formfieldfactory return that table when it was found, and for some reason I couldnt interact with the table on that way( those errors are the prof), so I fixed moving out the table out of the form and the problem was solved.