The wrong codes are:
You can render multiple components with single f:ajax. Just make sure all individual components you want to update have an id. In your sample it would be something like:
Where the IDs need to be separated by just whitespace like linear1 linear2 and not commaseparated like linear1, linear2 (that works only in p:ajax).
See also: