[jboss-user] [JBoss Seam] - Handling input too large for an integer field using SEAM...

jkrupka do-not-reply at jboss.com
Thu Jul 27 13:08:27 EDT 2006

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?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961357#3961357

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961357

More information about the jboss-user mailing list