Pregunta

I am writing an ntier website which contains a table of information. I am using jeditable to make the table editable.

The client wants some fields in the table readonly depending on whether the information they contain is before or after a particular date. Should the readonly logic reside in the business layer or the ui layer?

Regards Si

¿Fue útil?

Solución

Both. Your UI should check those non-editable fields an then no provide controls to modify the fields and also, for security, your business layer should also disable that functionallity.

Otros consejos

Business layer. The before or after date rule could change - it's business logic.

The business layer should execute the rule and communicate the fact to the UI layer. It should be enforcing the immutability on its end regardless of what the client does.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top