문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top