2 Replies Latest reply on Jul 27, 2006 1:39 PM by jkrupka

    Handling input too large for an integer field using SEAM...

      I've started tweaking the seam app generated by the eclipse/hibernate tools, and feeling out how seam/jsf work. I noticed that if you key in a non integer value, or a number higher than (2^31)-1 into the results per page field and try submitting it the form, either to find the results, clear the form, or switch pages, it just reloads the same page. I believe this is because this is due to the failure to convert that value to an int, but no error is being thrown, to the screen or the logs. That field is tied to the pageSize attribute of the session bean. The method that is called when I hit that button is never hit.

      Granted there is no reason why someone would enter that high of a number, or a non int into a page size field but I've seen people do stupider things. That said, where exactly is the error happening? Is the only solution to treat it as a String variable, and do the conversion and error handling myself?

      Thanks!