Am 07.06.2011 15:52, schrieb eugenebalt:
We have two applications, one is a Wicket app with Validator classes, and
another is an Apache POI-HSSF Excel-parsing app that parses Excel
spreadsheets.

We need to apply the same Validators to both the Wicket app (text field
components) and the Excel parser (the cells in the spreadsheet). We already
have the validators attached to the Wicket form, but is there a way to
re-use them for any abstract strings, such as Excel cells?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Validators-Outside-of-Wicket-Components-Pages-tp3579655p3579655.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Separate the validation logic in a class and call it from the validator and the spreedsheet. Validator class acts as a wrapper for logic class. In spreedsheet you could use the logic
class directly.

Hth
Cheers
Per

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to