It leaves a somewhat shallow taste about Japanese economical ethics. First provide a flawed product to a bigger project, then abandon it for its competitor because of teething problems.
Bit rich suggesting that JAL should stick with Boeing just becuase a Japanese company supplied the dodgy batteries.
Anyway, JAL's A350 order does not exclude the 777X - they will almost certainly order 777-9X in due course.